[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] (Raq4) 2 IP Addresses for 1 nic



> 
> I don't see that the Raq supports 2 IPs for 1 nic, how would I do 
this?

The way I do it on our RaQ3 is run the following at the command prompt 
and also put the line at the bottom of your /etc/rc.d/rc.local file to 
make sure it runs each time you reboot.

/sbin/ifconfig eth?:? <ipaddress> netmask <subnet mask>

The first '?' in eth?:? is the existing ethernet port you want to 
assign the IP. The second '?' is what you need to replace with with 
the next sequential number. Run /sbin/ifconfig to see what you have 
now. For instance, if you have eth0 without any entries with ':?' at 
the end, and want to add two more IP's to that ethernet port, then do 
the following:

/sbin/ifconfig eth0:1 <ipaddress1> netmask <subnet mask>
/sbin/ifconfig eth0:2 <ipaddress2> netmask <subnet mask>

Hope that helps:)

--
Robert