one NIC & two ipaddress ?

Alexander Dalloz ad+lists at uni-x.org
Sat Nov 13 21:40:52 UTC 2004


Am Sa, den 13.11.2004 schrieb Raghu Vadapalli um 22:15:

> Is it possible to configure the same with two ipaddresses ?
> some thing like 192.169.1.1 & 172.16.1.1 assuming that both networks
> are reachable.

> Raghu

cp -a /etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth0:0

Change the settings in ifcfg-eth0:0 according to your needs/wishes and
do a

service network restart

A different way would be to use iproute2 and no aliased ethernet device:

ip addr add 172.16.1.1/24 brd 172.16.1.255 dev eth0 label eth0

This is not stored by default and will have to be saved at a proper
place to be executed at each network start.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.8-1.521smp 
Serendipity 22:34:24 up 24 days, 20:13, load average: 0.25, 0.34, 0.37 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041113/3103f79e/attachment-0001.sig>


More information about the fedora-list mailing list