TYPE="Ethernet"
BOOTPROTO="static"
INADDR="192.168.9.100"
NETMASK="255.255.255.0"
NM-CONTROLLED="no"
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens33"
UUID="07cc83a1-5c77-42e8-9e5b-f4111c9ce923"
DEVICE="ens33"
ONBOOT="yes"网络也重启了systemctl restart network.service可还是没变ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:0c:29:fc:99:d4 txqueuelen 1000 (Ethernet)
RX packets 5384 bytes 6336210 (6.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3229 bytes 287127 (280.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 140 bytes 53935 (52.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 140 bytes 53935 (52.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:97:1b:94 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
1 回答
Gaiokane
TA贡献20条经验 获得超5个赞
配置文件第三行是IPADDR="192.168.9.100" 不是INADDR="192.168.9.100"
少一行GATEWAY="192.168.9.1"
- 1 回答
- 0 关注
- 2059 浏览
添加回答
举报
0/150
提交
取消