LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP alias fails when using ifup eth0:1 (https://www.linuxquestions.org/questions/linux-networking-3/ip-alias-fails-when-using-ifup-eth0-1-a-827342/)

MrUmunhum 08-19-2010 08:18 PM

IP alias fails when using ifup eth0:1
 
Hi group,
I having a problem with my network. I'm trying to assign an IP alias of eth0:1 to eth0. If I use ifup eth0:1 is fails and corrupts the network.
Making the network useless.
But if I just enter 'ifconfig eth0:1 10.1.1.51', it work fine?
My scripts look like these:
Code:

:network-scripts; cat ifcfg-eth0

NAME="System eth0"
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
IPV4_FAILURE_FATAL=no
IPV6INIT=no
USERCTL=yes
IPADDR=10.1.1.55
NETMASK=255.255.255.0
GATEWAY=10.1.1.3
DNS1=10.1.1.3
NM_CONTROLLED=no
PREFIX=24
network-scripts; cat ifcfg-eth0:1

NAME="System eth0:1"
DEVICE=eth0:1
BRIDGE=br1
BOOTPROTO=none
IPV4_FAILURE_FATAL=no
IPV6INIT=no
USERCTL=yes
IPADDR=10.1.1.51
ONBOOT=no

Any ideas on what I'm doing wrong??

Thanks for your time.

joec@home 08-19-2010 09:30 PM

I would follow the KISS rule and get a basic configuration running on ifcfg-eth0:1 Since it is an additional IP address it really only needs a name, label, boot permissions, IP address and netmask. I am not certain why you would even need a bridge. After that figure out if you even need any of the other information and add them one at a time.

Code:

NAME="System eth0:1"
DEVICE=eth0:1
IPADDR=10.1.1.51
NETMASK=255.255.255.0
ONBOOT=yes


MrUmunhum 08-20-2010 01:47 AM

Quote:

Originally Posted by joec@home (Post 4071884)
I would follow the KISS rule and get a basic configuration running on ifcfg-eth0:1 Since it is an additional IP address it really only needs a name, label, boot permissions, IP address and netmask. I am not certain why you would even need a bridge. After that figure out if you even need any of the other information and add them one at a time.

Code:

NAME="System eth0:1"
DEVICE=eth0:1
IPADDR=10.1.1.51
NETMASK=255.255.255.0
ONBOOT=yes


That did it. The reason for the bridge is for a virtualized domain.
But that is another story.


All times are GMT -5. The time now is 10:06 AM.