Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux中配置静态IP #4

Open
ys17513628804 opened this issue Sep 10, 2020 · 0 comments
Open

linux中配置静态IP #4

ys17513628804 opened this issue Sep 10, 2020 · 0 comments

Comments

@ys17513628804
Copy link

进入 /etc/sysconfig/network-scripts
vi ifcfg-ens192

配置信息:
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens192"
UUID="9e13cd48-1afc-495a-bf20-f14d0bbfd1c1"
DEVICE="ens192"
ONBOOT="yes"
IPADDR=192.168.3.125
GATEWAY=192.168.3.1
DNS1=192.168.3.1
NETMASK=255.255.255.0

然后重启网络服务:
service network restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant