[root@yangyangtest ~]# ifconfig
eno1: flags=4163 mtu 1500
inet6 fe80::7a2b:cbff:fe9a:739b prefixlen 64 scopeid 0x20
ether 78:2b:cb:9a:73:9b txqueuelen 1000 (Ethernet)
RX packets 2917661 bytes 4290309688 (3.9 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1387312 bytes 98157662 (93.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xe1a00000-e1a20000
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 0 (Local Loopback)
RX packets 196 bytes 16616 (16.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 196 bytes 16616 (16.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
switch: flags=4163 mtu 1500
inet 10.66.4.201 netmask 255.255.252.0 broadcast 10.66.7.255
ether 4a:e8:de:c3:8a:98 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 2052 (2.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099 mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:e9:5b:c4 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 144 (144.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
If you find that you ipaddr is configured on switch, do the following to configure ip on interface eno1.
rm -f /etc/sysconfig/network-scripts/ifcfg-br0
vim /etc/sysconfig/network-scripts/ifcfg-eno1 as follows:
DEVICE="eno1"
ONBOOT=yes
NETBOOT=yes
UUID="a4be212f-4b57-4b04-8a1a-dfd16fd78d35"
DHCPV6C=yes
BOOTPROTO=dhcp
HWADDR="78:2b:cb:9a:73:9b"
TYPE=Ethernet
NAME="Boot Disk"
#NAME="eno1"
#BRIDGE=switch
Then reboot the machine.
阅读(1096) | 评论(0) | 转发(0) |