local IP via virtual NIC is not function. Print

  • 0

I create vitual NIC for local IP at /etc/sysconfig/networ-scripts/ifcfg-eth0:1

The local IP and subnet mask setting correctly, but it just unable to ping others local IP server in the same subnet mas.

Solution:

Create a static route to route local ip traffic to the vitual NIC

cd /etc/sysconfig/network-scripts/

cp route-eth0 route-eth0:1

nano route-eth0:1

change ip and prefix

change eth0 to eth0:1

change gateway to 192.168.0.1

service network restart

done


Was this answer helpful?

« Back