IP Alias

Johannes Kolde j.kolde at gmx.de
Mon Jan 22 04:16:52 UTC 2007


IsomerX schrieb:
> James Gray wrote:
>> On Monday 22 January 2007 09:00, IsomerX wrote:
>>   
>>> I'm trying to create an IP address alias for the network card on one of
>>> y servers.  It is running Ubuntu 6.9.
>>>
>>> I have the following lines in my /etc/network/interfaces:
>>>
>>> auto eth1
>>>
>>> iface eth0 inet static
>>> address 192.168.0.98
>>> netmask 255.255.255.0
>>> gateway 192.168.0.1
>>>
>>> iface eth1:0 inet static
>>> address 192.168.1.100
>>>
>>>
>>> When I issue the command ifconfig eth1:0 up I get the following error:
>>> SIOCSIFFLAGS: Cannot assign requested address
>>>     
>> Do you have an "eth1" interface?  If not, then of course you wont be able to 
>> add a virtual interface to a non-existent interface :P
>>   
> Yes, I have an eth1, I miss-typed the one line, it should be:
> 
> iface eth1 inet static
> 
> though, oddly enough... I do -not- have an eth0, though it doesn't work 
> if rename the card as eth0...
> 
> Since that came up... how do I change this card to be eth0?  I had 
> another card at install time, that was named eth0, though I later 
> removed it.
> 
> IsomerX
> 
look at /etc/iftab






More information about the ubuntu-users mailing list