匿名用户
1级
2016-08-16 回答
操作系统:RHEL7.0
两个网卡连接在一个交换机下面,本例用vmware模拟都在NAT模式下
1、查看当前网卡 名字 mac地址,确定当前为ens33、ens37
[root@LiuZhen network-scripts]#
[root@LiuZhen network-scripts]# ifconfig
ens33: flags=4163 mtu 1500
inet 192.168.221.222 netmask 255.255.255.0 broadcast 192.168.221.255
inet6 fe80::20c:29ff:fe92:cdde prefixlen 64 scopeid 0x20
ether 00:0c:29:92:cd:de txqueuelen 1000 (Ethernet)
RX packets 476 bytes 44782 (43.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 410 bytes 61722 (60.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens37: flags=4163 mtu 1500
ether 00:0c:29:92:cd:e8 txqueuelen 1000 (Ethernet)
RX packets 39 bytes 2523 (2.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
T