1833866 Members
2343 Online
110063 Solutions
New Discussion

Routing Table problem!

 
SOLVED
Go to solution

Routing Table problem!

HI !

I have a question of routing table.
My system have the two LAN card.
After rebooting, I see the routing table.
#netstat -rn
But I disappear the sentence the meaning of localhost.
127.0.0.0 127.0.0.1 U 0 lo0 0
Without rebooting, do you appear the upper line?
My system would like to communication the certain IP Zone through selected LAN card.
I teach the method of cofiguration?
thanks!!
5 REPLIES 5
Michael Tully
Honored Contributor
Solution

Re: Routing Table problem!

Hi,

You can define a routing table to each lan
card should you choose, but there is only
one default route.

For example I want to add a route for my
second lan card of which the IP address is
10.20.30.40 to a router 10.20.30.1 and the
number of hops to your router.

# route add 10.20.30.40 10.20.30.1 1

If you have a problem with your loopback, make
sure you can ping the host itself. Please post
the output of your 'netstat -rn' output

The man page of 'route' has some good information.

Cheers
~Michael~


Anyone for a Mutiny ?

Re: Routing Table problem!

Regard to question!!

I have a problem.
My system connect to two router of other network IP zone.
But I try to ping. all traffic flow the one LAN card (lan1).
all two LAN card live.
I used the command of "traceroute xxx.xxx.xxx.xx"
All traffic is flowed the LAN1.
I would like to communicate the seperate network by other LAN Card.
I attach the file of name "netstat -rn".
I would like to communicate LAN0 so that the network zone 128.134.98.xx.

Solve me!!
thanks
Michael Tully
Honored Contributor

Re: Routing Table problem!

Hi,

Because you are using a default gateway, and
your IP address from lan0 is usually binded to
your server name you need to specify the source
address as to which your going to use.

# /usr/contrib/bin/traceroute -s 10.20.30.40 10.20.30.5 (router you wish to use as your first start point)
You can get a copy of the man page here from traceroute:
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/traceroute-991603/man.html

HTH
~Michael~

Anyone for a Mutiny ?
Kevin O'Donovan
Regular Advisor

Re: Routing Table problem!

Hi,

I think I see your problem, it sounds like your routing table either doesn't have an entry for the network you're trying to contact or has 2, one for each lan card and is using the entry for lan1 first.

Maybe if you post your routing table and the 2 networks you want to setup the lan cards for it would be the quickest way to help you with it. If you're concerned about security, just change the IP addresses (IP A.A.A.A make B.B.B.B in all cases, D.D.D.D make E.E.E.E in all cases for example) when you're posting.

regards,
Kevin.
Steven Sim Kok Leong
Honored Contributor

Re: Routing Table problem!

Hi,

>> But I disappear the sentence the meaning of localhost.
>> 127.0.0.0 127.0.0.1 U 0 lo0 0
>> Without rebooting, do you appear the upper line?

I gather that you lost the above route in your routing table upon rebooting.

You are not supposed to add this route manually in the right sense.

# route delete 127.0.0.0 127.0.0.1
delete net 127.0.0.0: gateway 127.0.0.1: cannot update loopback route
# route add 127.0.0.0 127.0.0.1
add net 127.0.0.0: gateway 127.0.0.1: cannot update loopback route

Thus, I don't think manual addition without rebooting will work.

Hope this helps. Regards.

Steven Sim Kok Leong