Multiple IPs to a single NIC

postmaster at ronno.nl postmaster at ronno.nl
Wed Mar 2 11:27:16 UTC 2011


Hi Monty,

ifcfg-eth0
BOOTPROTO=static

Rename device ifcfg-eth0:1 to ifcfg-eth0:0
Device=eth0:0
NM_CONTROLLED=no (NetworkManager is mostly conflicting)

kind regards,
Ronno
________________________________________
From: redhat-list-bounces at redhat.com [redhat-list-bounces at redhat.com] On Behalf Of Monty wig [montywig at gmail.com]
Sent: Tuesday, March 01, 2011 18:27
To: General Red Hat Linux discussion list
Subject: Multiple IPs to a single NIC

Experts,

I am trying to assign multiple IP address to a machine with a single NIC and
I did follow the instructions from RH. Below are my network files from
/etc/sysconfig/network-scripts...

ifcfg-eth0
============
DEVICE=eth0
NM_CONTROLLED=yes
ONBOOT=yes
HWADDR=00:1C:25:70:06:89
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
PEERDNS=no
IPADDR=192.168.1.103
NETMASK=255.255.255.0
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
USERCTL=no


ifcfg-eth0:1
==============
DEVICE=eth0:1
ONPARENT=yes
BOOTPROTO=static
IPADDR=192.168.1.119
NETMASK=255.255.255.0
TYPE=Ethernet
IPV6INIT=no
USERCTL=no

Now when I try to bring up the NIC using "ifup eth0:1" - It brings eth0:1 up
but brings down eth0. Basically it brings only one of them at a time and no
matter which IP is up, "ip addr show" output shows only eth0 even if IP of
eth0:1 is up!! I am on RH6...Has anyone seen this behavior?

Thanks
Monty
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list