Adding Network Interface alias from command line
How do I add a network alias interface from the command line? With system-config-network I can just click new and have a virtual interface added but how can I do it from the command line? This is a fedora core 3 box.
|
Code:
ifconfig eth0:2 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 up if you want them to be permanent (persist through reboots, network service restarts, etc) you can create the file with appropriate information located in /etc/sysconfig/network-scripts to get a start use the ifcfg-eth0 file. cp ifcfg-eth0 ifcfg-eth0:1 and then edit it appropriately being sure to change DEVICE=eth0 to DEVICE=eth0:1 hope this helps |
I got it figured out. Thanks!
|
All times are GMT -5. The time now is 10:03 AM. |