LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 08-18-2010, 07:45 PM   #1
Krzyview
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Exclamation Centos 5.5 Two Nic's Only One works at a time


Hey everyone.

First let me say thanx to this forum I have learned to use linux very well lately do to the posts and answers here.

So now I have run into a problem I can't figure out what's going on.

My situation:

Dell Power Edge Server SC440
1GB ECC RAM
Aprox 400 GB in a Raid setup
One On Boad Gigabit Nic Card (will be referred to as eth0 Network 66.x.x.x Netmask 255.255.255.224 Gateway 66.x.x.98)
One PCI 3 Com TX 100MBPS NIC Card (will be referred to as eth1 Network 74.x.x.x Netmask 255.255.255.224 Gateway 74.x.x.98)

I boot machine up and on load Linux show eth0 & eth1 as starting up normal.

Now i go to ping one of the IP's on eth0 and they return a nice connection.

Now I go to ping one of the IP's on eth1 and I do not get a response.

So I run the command ifup eth1

Once this command finishes running I ping an IP on eth1 and I get a nice quick response.

Now I go to ping an IP on eth0 and eth0 gets no response now.

If I run command ifup eth0

The command finishes running and eth0 and all it's IP's are pingable again but eth1 becomes unresponsive once more.

Any suggestions?

NETSTAT -rnv READOUT:

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
66.x.x.96 0.0.0.0 255.255.255.224 U 0 0 0 eth1
74.x.x.96 0.0.0.0 255.255.255.224 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 66.253.119.98 0.0.0.0 UG 0 0 0 eth1
 
Old 08-18-2010, 09:19 PM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 258
Blog Entries: 3

Rep: Reputation: 45
It appears like, the default route of one interface is getting disabled, if you try to enable the other interface. You will need to have multiple routes to solve this problem.

http://www.linuxquestions.org/questi...teways-145635/

http://www.generationip.com/document...teway-on-linux
 
Old 08-18-2010, 09:37 PM   #3
Krzyview
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I look at these explanations and they kind of confuse me.

what is the:

200 eth0
201 eth1

I would be adding to the rt_tables file and am i supposed to add these specific commands to the file to or run these commands at the prompt and they will add themselves.

ip route add 10.2.0.0 dev eth0 src 10.2.0.100 table eth0
ip route add 10.1.0.0 dev eth1 src 10.1.0.10 table eth1

I just need a little more explanation to get the just of what i'm actually doing i don't want to mess this machine up the software built into it is worth 20 g's
 
Old 08-21-2010, 11:57 PM   #4
Krzyview
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Any help on this would be appreciated by anyone. I can't figure out why the second the route drops everytime.

NETSTAT READOUT
Code:
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
66.XXX.XXX.96   0.0.0.0         255.255.255.224 U         0 0          0 eth1
74.XXX.XXX.96   0.0.0.0         255.255.255.224 U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         66.XXX.XXX.98   0.0.0.0         UG        0 0          0 eth1
0.0.0.0         74.XXX.XXX.98   0.0.0.0         UG        0 0          0 eth0
ETHTOOL ETH1 READOUT
Code:
[root@kvrobo ~]# ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 24
        Transceiver: internal
        Auto-negotiation: on
        Current message level: 0x00000001 (1)
        Link detected: yes
ETHTOOL ETH0 READOUT
Code:
[root@kvrobo ~]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: g
        Current message level: 0x000000ff (255)
        Link detected: yes
Eth0 Shows a link is detected but it stays unroutable.

Last edited by Krzyview; 08-21-2010 at 11:59 PM.
 
  


Reply

Tags
centos55, ips, multiple, networking, networks


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS time problem - time goes to fast Stressik Linux - Software 3 03-29-2010 05:23 AM
2 nic's in centos johnmate Linux - Networking 3 09-18-2008 06:48 AM
CentOS 5.2: Only one of eth0 (internet) or eth1 (LAN) works Sinedie Linux - Networking 3 08-20-2008 04:52 AM
CentOS Just Works msound Linux - General 3 11-22-2006 12:42 PM
no signal when starting xorg for the 1st time (but the second time works fine) bungalowbill Linux - Software 0 06-04-2004 09:56 AM


All times are GMT -5. The time now is 05:08 AM.

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