LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-22-2011, 06:06 PM   #1
imran.rentia
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Help with a simple routing Issue


Hi Everyone,
The linux server has two ethernet adapters eth0 and eth1 and both of them have IPs on it. I am using eth0 for all traffic. I want to use the eth1 ONLY for the TSM server backup. So for that i added a static route as follows:

Code:
route add -net <TSM Servers IP> netmask 255.255.255.255 dev eth1
But after doing that i cannot ping the <TSM server IP>. Is there something wrong that i am doing?
 
Old 04-22-2011, 08:36 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
You don't tell us the details about your networks. Assuming that the
network for eth0 does not overlap with the network for eth1 and assuming
that eth1 is on the same network as the TSM Server, you don't need to
add a route.

Try removing the route you added and see if you can ping the TSM Server.
If you can't, post the output of "route -n".
 
Old 04-22-2011, 11:19 PM   #3
imran.rentia
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Carltm, Thank you for replying

when i am pinging the TSM server from my server without the static route its pinging perfectly fine. But its using the default interface eth0. I want to use the backup interface that is eth1 when connecting to the TSM server.(I have setup different ips on both eth0 and eth1). As its weekend already i cant go to the office so i will paste the output of route -n on Monday.
Thank you.
 
Old 04-23-2011, 05:20 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Hi,

Give us the output from ifconfig and route from both boxes. i.e. all status for all 4 ports that are involved. The output of ethtool or mii-tool (you should have one of the two) would not go amiss either.

Cheers

Pete

Last edited by baldy3105; 04-23-2011 at 05:21 AM. Reason: correcting stupid spelling mistakes
 
Old 04-23-2011, 05:45 AM   #5
crwdawg
LQ Newbie
 
Registered: Jul 2004
Posts: 21

Rep: Reputation: 1
Quote:
Originally Posted by imran.rentia View Post

when i am pinging the TSM server from my server without the static route its pinging perfectly fine. But its using the default interface eth0. I want to use the backup interface that is eth1 when connecting to the TSM server.(I have setup different ips on both eth0 and eth1). As its weekend already i cant go to the office so i will paste the output of route -n on Monday.
Thank you.
Since you are sure that the Linux server is routing correctly, check the return route from TSM to it. If the Linux server sends a ping out eth1, the TSM sends it back and the Linux server receives the reply on eth0 it will ignore the reply.
Open 2 connections to linux server
on 1 of the connections run tcpdump host <ip of TSM> (or just tcpdump but that will have alot of traffic info)
on the 2nd send a ping to TSM and watch for the traffic to show up on your first connection.
 
Old 04-25-2011, 12:54 PM   #6
imran.rentia
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Guys I am Sorry, according to my company policies, i was not given permission to copy paste any outputs which might have ip information, but before adding the route i was able to ping from A to B , and also B to A. But after adding the route i can neither ping from A to B nor B to A
.
Below are the outputs:

[root@linuxserver ~]# ethtool eth0
Settings for eth0:
Link detected: yes
[root@linuxserver ~]# ethtool eth1
Settings for eth1:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
2500baseX/Full
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
2500baseX/Full
Advertised auto-negotiation: No
Speed: Unknown!
Duplex: Unknown! (255)
Port: FIBRE
PHYAD: 2
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: no



[root@linuxserver ~]# mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
eth1: 10 Mbit, half duplex, no link
SIOCGMIIPHY on 'eth2' failed: Resource temporarily unavailable
SIOCGMIIPHY on 'eth3' failed: Resource temporarily unavailable
[root@linuxserver ~]#


Below are the outputs from the TSM server which is an AIX server:


root@tsmserver:/>lsattr -El ent1
alt_addr 0x000000000000 Alternate ethernet address True
busintr 196696 Bus interrupt level False
busmem 0xc0100000 Bus memory address False
chksum_offload yes Enable hardware transmit and receive checksum True
compat_mode no Gigabit Backward compatability True
copy_bytes 2048 Copy packet if this many or less bytes True
delay_open no Enable delay of open until link state is known True
failback yes Enable auto failback to primary True
failback_delay 15 Failback to primary delay timer True
failover disable Enable failover mode True
flow_ctrl yes Enable Transmit and Receive Flow Control True
intr_priority 3 Interrupt priority False
intr_rate 10000 Max rate of interrupts generated by adapter True
jumbo_frames yes Transmit jumbo frames True
large_send yes Enable hardware TX TCP resegmentation True
media_speed 1000_Full_Duplex Media speed True
rom_mem 0xc0040000 ROM memory address False
rx_hog 1000 Max rcv buffers processed per rcv interrupt True
rxbuf_pool_sz 2048 Rcv buffer pool, make 2X rxdesc_que_sz True
rxdesc_que_sz 1024 Rcv descriptor queue size True
slih_hog 10 Max Interrupt events processed per interrupt True
tx_que_sz 8192 Software transmit queue size True
txdesc_que_sz 512 TX descriptor queue size True
use_alt_addr no Enable alternate ethernet address True
root@tsmserver:/>lsattr -El en1
alias4 IPv4 Alias including Subnet Mask True
alias6 IPv6 Alias including Prefix Length True
arp on Address Resolution Protocol (ARP) True
authority Authorized Users True
broadcast Broadcast Address True
mtu 9000 Maximum IP Packet Size for This Device True
netaddr xx.xx.xx.xx Internet Address True
netaddr6 IPv6 Internet Address True
netmask 255.255.252.0 Subnet Mask True
prefixlen Prefix Length for IPv6 Internet Address True
remmtu 576 Maximum IP Packet Size for REMOTE Networks True
rfc1323 Enable/Disable TCP RFC 1323 Window Scaling True
security none Security Level True
state up Current Interface Status True
tcp_mssdflt Set TCP Maximum Segment Size True
tcp_nodelay Enable/Disable TCP_NODELAY Option True
tcp_recvspace Set Socket Buffer Space for Receiving True
tcp_sendspace Set Socket Buffer Space for Sending True
 
  


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
Simple routing question zang Linux - Networking 4 04-28-2008 05:55 PM
another simple routing question crm Linux - Networking 3 03-29-2005 01:45 AM
Simple Routing - not working jsinfcva Linux - Networking 5 12-15-2004 09:08 PM
routing issue :- have a simple private LAN, with.... inode100 Linux - Newbie 4 02-23-2004 03:52 PM
routing issue :- have a simple private LAN, with.... inode100 Linux - Networking 10 02-22-2004 02:06 PM

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

All times are GMT -5. The time now is 01:49 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