新装机CentOS系统网络配置
[root@localhost ~]
[root@localhost ~]
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
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=ens33
UUID=0c427605-de9d-4694-8842-7840f13713f4
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.0.200
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
DNS1=192.168.0.1
DNS2=8.8.8.8
[root@localhost ~]
[root@localhost network-scripts]
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:75:5c:75 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.37/24 brd 192.168.100.255 scope global noprefixroute dynamic ens33
valid_lft 690767sec preferred_lft 690767sec
inet6 fe80::a654:c5a6:60a3:cfe9/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[-bash: ifconfig: 未找到命令]解决方案:
[root@localhost ~]
-bash: ifconfig: 未找到命令
[root@localhost ~]
[root@localhost ~]
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.37 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::a654:c5a6:60a3:cfe9 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:75:5c:75 txqueuelen 1000 (Ethernet)
RX packets 33180 bytes 33050809 (31.5 MiB)
RX errors 0 dropped 52 overruns 0 frame 0
TX packets 30491 bytes 2904460 (2.7 MiB)
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 1000 (Local Loopback)
RX packets 320 bytes 27840 (27.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 320 bytes 27840 (27.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0