I have two NIC on my system with centos 7 as OS. One interface is public with ip 172.68.122.120 (em1)
and second with ip 10.11.15.20 (p4p1)
. Now When I reboot my system, bydefault, public ip is not going to ping while private ip can be ping within the subnet. Then I make my private interface down and then up again. Now both IPs are going to ping. What is the problem ? I think there is some priority issue in NICs. If I run netstat -rn
command I get following output at boot time.
0.0.0.0 10.11.15.1 0.0.0.0 UG 0 0 0 p4p1
0.0.0.0 172.68.122.10 0.0.0.0 UG 0 0 0 em1
After resetting my private interface. Above output for command netstat -rn
is changed to following
0.0.0.0 172.68.122.10 0.0.0.0 UG 0 0 0 em1
0.0.0.0 10.11.15.1 0.0.0.0 UG 0 0 0 p4p1
what is the problem and how I can solve it ?
/etc/sysconfig/network-scripts/ifcfg-*
of both interfaces.