LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-14-2002, 07:55 PM   #1
dgenne
LQ Newbie
 
Registered: Mar 2002
Posts: 1

Rep: Reputation: 0
ifcfg-eth0:X alias problem


Hi everyone,
I'm running into a problem adding more than a couple aliased interfaces to my eth0 interface. I'm running Mandrake 8.1 and I've copied my /etc/sysconfig/network-scripts/ifcfg-eth0 to ifcfg-eth0:0 ifcfg-eth0:1 ifcfg-eth0:2 and they come up fine after I change the DEVICE and IPADDR lines. but when I tried to create ifcfg-eth0:3 and ifcfg-eth0:4 entries them will not start at all. If I reboot, they don't show up.

here's what I get from ifup eth0:4

[root@la2fire network-scripts]# ifup eth0:4
Device "eth0:4" does not exist.
Cannot find device "eth0:4"
Error adding address x.y.z.39 for eth0:4. (I changed the x.y.z)
WARNING: interface is ignored: No such device
[root@la2fire network-scripts]#

here is the text of the the ifcfg-eth0:4 file:

[root@la2fire network-scripts]# more ifcfg-eth0:4
DEVICE=eth0:4
BOOTPROTO=static
IPADDR=x.y.z.39
NETMASK=255.255.255.224
NETWORK=x.y.z.32
BROADCAST=x.y.z.63
ONBOOT=yes
[root@la2fire network-scripts]#

I can manually issue a "ifconfig eth0:4 x.y.z.39 broadcast x.y.z.63 netmask 255.255.255.224"
and the interface comes up fine. There was no problem creating the first bunch of aliases (eth0:0-eth0:2)
Any idea what's going on?
Thanks!
 
Old 03-17-2002, 01:43 AM   #2
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
hi

hi ,

at the fron it does seems that there migt be limitation to the number of limitation to the number of aliases that one can have .... but well i cant recollect to any such limitation ....
Do u have firewall (such as iptables or ipchains ) installed on ur machine ? if so is the script being exec from ifup script ?

It looks like a ROUTING problem to me. Check out ur ifup script and u will see a line that reads like below :

echo $"Error adding address ${IPADDR} for ${DEVICE

if u know basic shell scripting i think u will be able to trace the error mesage to the actual culprit

NOTE: since iam a RedHat person i maybe be wrong with the above solution but u see a few other mandrake users have had similar complaints.
 
  


Reply



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
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 03:25 PM
RH9 ignoring /etc/.../.../ifcfg-eth0 eccles23 Linux - Networking 12 07-16-2005 02:14 PM
editing ifcfg-eth0 nkeever Linux - Newbie 4 05-05-2005 02:46 PM
Eth0 IP Alias Problem assyrian47 Slackware 1 04-20-2005 11:50 AM
ifcfg-eth0 configuration problem shyam Linux - Networking 2 08-06-2003 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration