LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-19-2010, 08:18 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 424

Rep: Reputation: 33
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.
 
Old 08-19-2010, 09:30 PM   #2
joec@home
Member
 
Registered: Sep 2009
Location: Houston Tx
Posts: 89

Rep: Reputation: 29
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
 
Old 08-20-2010, 01:47 AM   #3
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 424

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by joec@home View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RTNETLINK answers: File exists - Error when doing ifup on alias (eth1:1) on RHEL5 MensaWater Linux - Networking 16 08-08-2014 08:32 AM
Debian - eth0 error: no such device on ifup eth0 svancouw Linux - Hardware 4 09-07-2011 04:32 PM
vnStat - if pointed to eth0 will it aggregate eth0 and eth0:1 alias stardotstar Linux - Networking 0 07-20-2010 07:49 PM
ifup eth0 fails.... esi-eric Linux - Hardware 4 07-23-2004 12:11 PM
eth0 ifup warmongr Linux - Networking 2 04-29-2004 04:00 PM


All times are GMT -5. The time now is 01:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration