DEVICE=eth1
HWADDR=00:0c:29:a1:23:1f
TYPE=Ethernet
UUID=4ab76d14-7d79-43ef-8e46-674d58a075d3
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=10.0.10.10
HWADDR=00:0c:29:a1:23:1f
TYPE=Ethernet
UUID=4ab76d14-7d79-43ef-8e46-674d58a075d3
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=10.0.10.10
NETMASK=255.255.255.0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
HWADDR=00:0C:29:68:BA:4F
IPADDR=10.0.10.9
NETMASK=255.255.255.0
分别配置为10.0.10.9和10.0.10.10,无法ping通10.0.10.9
猛然发现trace可达
原来是系统配置禁止了ping
修改/etc/sysctl.conf中net.ipv4.icmp_echo_ignore_all=0
执行sysctl -p使配置生效
原因略坑、记录下