| To add a virtual nic: ifconfig eth0:1 192.168.0.90 netmask 255.255.255.0
To confirm it is working: ifconfig -a
You can (and should!) also give this new address its own name in the /etc/hosts file: nano /etc/hosts 172.16.0.6 howie
To make this permanent in RedHat / Centos. Copy eth0 to eth0:1 as virtual nic and update content as below cd /etc/sysconfig/network-scripts/
Now your eth0:1 interface will start automatically at reboot, just like eth0 itself. |
Powered by WHMCompleteSolution