Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding another IP to eth0

Status
Not open for further replies.

YCL

MIS
Nov 12, 1998
13
HK
Hello all,<br><br>I understand that Linux (RH) allows a network card to have multiple IP addresses.&nbsp;&nbsp;But I can't find the command for adding another IP to my ethernet card&nbsp;&nbsp;eth0.&nbsp;&nbsp;I need to do this from the command prompt because for some unknown reason Linuxconf does not work properly in this machine. It often crashed with core dumped suddenly.<br><br>Does anyone know the command for assigning a second IP to eth0?&nbsp;&nbsp;I have looked into&nbsp;&nbsp;ifconfig, but could find the info from the man pages.&nbsp;&nbsp;Any ideas? Has anyone successfully done this before?<br><br>Thanks.<br><br>-YCL<br><br><br>
 
1. Go to /etc/sysconfig/network-scripts.<br>2. 'cp ifcfg-eth0 ifcfg-eth0:0'<br>3. edit ifcfg-eth0:0 and make the needed changes.<br>4. ifconfig -a<br><br>Works for me but still won't show up in linuxconf.<br><br>Emory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top