LinuxQuestions.org
Visit Jeremy's Blog.
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 01-12-2006, 03:51 AM   #1
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
Can't get my second network card running.


Hi, on my redhat linux enterprise 4 system, i have 2 network cards. both cards are detected, and drivers for these two cards are loaded. the problem is: I can't activate the second card at all.

below are the error message when i try to activate the second card:

Jan 12 16:33:03 localhost ifup: SIOCSIFFLAGS: Cannot allocate memory
Jan 12 16:33:03 localhost ifup: Failed to bring up eth1.
Jan 12 16:33:03 localhost network: Bringing up interface eth1: failed


Please help,

Thanks,
 
Old 01-12-2006, 04:19 AM   #2
cgoerner
Member
 
Registered: Apr 2004
Location: South Australia
Distribution: Ubuntu & Debian Sarge
Posts: 32

Rep: Reputation: 15
Can you post your /etc/network/interfaces file?
 
Old 01-12-2006, 07:26 AM   #3
ajs318
LQ Newbie
 
Registered: Apr 2004
Location: East Midlands
Distribution: Debian SID; Mandrake
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by mrpc_cambodia
Hi, on my redhat linux enterprise 4 system, i have 2 network cards. both cards are detected, and drivers for these two cards are loaded.
Are the cards the same make/model or different? I have had the best experiences when using two different NICs {currently using a 10 meg RJ45/coax to go to the adsl modem, which is fine for just 2Mb broadband, and a 100 meg one to go to the switch and rest-of-house} and the worst experience when using two identical NICs {if just one is plugged into something else at startup, it always gets eth0; if both are plugged into something else it's anyone's guess which gets what}.

My guess is it's something up with your init scripts; but I'm more familiar with the Debian / Ubuntu way of setting up networking than the Red Hat method.
 
Old 01-13-2006, 03:36 AM   #4
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Original Poster
Rep: Reputation: 15
hi cgoerner,

On my system, i can't find the /etc/network/interface file. my two cards are of different model. one is built on board and another one is a pci card.

below is the content of my /etc/sysconfig/network-scripts/ifcfg-eth1 file:

"DEVICE=eth1
BOOTPROTO=none
HWADDR=00:02:E3:51:04:F5
ip=192.168.1.1
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.1.1
USERCTL=no
PEERDNS=yes
IPV6INIT=no
".
 
Old 01-13-2006, 04:24 AM   #5
MikeAtVillage
Member
 
Registered: May 2005
Location: Mid Wales (UK)
Distribution: Slackware 8.0, Suse 10.0/1/2, CentOS (SMEServer7)
Posts: 38

Rep: Reputation: 15
Not sure if this will help.. I'm using slackware 8.0 and I had to manually configure my second card in rc.local

It recognised and configured eth0 OK.

>>>
# Bring up second ethernet interface on 192.168 subnet
ifconfig eth1 192.168.100.4 broadcast 192.168.100.255 netmask 255.255.255.0

# Route all trafic to 192.168.100.0 subnet via eth1
route add -net 192.168.100.0 netmask 255.255.255.0 dev eth1
>>>
 
Old 01-13-2006, 04:38 AM   #6
ajs318
LQ Newbie
 
Registered: Apr 2004
Location: East Midlands
Distribution: Debian SID; Mandrake
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by mrpc_cambodia
hi cgoerner,

On my system, i can't find the /etc/network/interface file.
You won't - that's a Debian/Ubunbtu thing Red hat do it a bit differently ..... Mandrake/Mandriva is similar.

Quote:
Originally Posted by mrpc_cambodia
my two cards are of different model. one is built on board and another one is a pci card.

below is the content of my /etc/sysconfig/network-scripts/ifcfg-eth1 file:
*SNIP*
Now, that looks like about the right sort of thing, judging by my Mandrake experiences.

Did you create that file by hand or did you use some sort of setup tool? Have you a file called ifcfg-eth0 in that directory as well, and can you post its contents too?
 
  


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
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
linux shuts down built in network card then windows tells me network card is unplugge lesmoxhaybaker SUSE / openSUSE 8 08-29-2006 05:10 PM
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM
How to get the network card up&running (zipSlack) EclecticOS Slackware - Installation 5 08-01-2005 03:00 PM
how to set up SMC EZ Card 10/100 ethernet PCI network card mymojo Linux - Networking 2 12-16-2003 02:35 AM

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

All times are GMT -5. The time now is 11:17 PM.

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