系统修改eth
cd /etc/udev/rules.d
vi 70-persistent-net.rules
root@linx:/etc/udev/rules.d# vim 70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x1af4:0x1000 (virtio_net)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:4a:53:4d:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
相关检查
查看本机器网关
arp -a是 显示查看高速缓存中的所有项目。
root@linx00:~# arp -a
? (172.50.10.52) at 00:0c:29:77:f8:0e [ether] on eth0
Linx (172.50.10.100) at 00:1e:67:68:5b:af [ether] on eth0
? (172.50.10.254) at 00:e0:67:13:87:d5 [ether] on eth0