1753384 Members
5743 Online
108792 Solutions
New Discussion юеВ

Routing and netconf

 
NonGuru
Advisor

Routing and netconf

I have a an HP box running 11.00 and one running 11.11. Both have identical netconf files. One can see hosts on internet (lan0 10.230.3.1 throught gateway 10.230.3.15) and the 11.11 can't, seems to route everything on the default gateway(192.168.58.254 on Lan1(192.168.58.10).

Any ideas?

Config from 11.11
$ traceroute prtc
traceroute: Warning: Multiple interfaces found; using 192.168.58.10 @ lan1
traceroute to prtc (196.28.61.130), 30 hops max, 40 byte packets

Hosts entry
196.28.61.130 prtc mail.prtc.net

Netconf
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.230.3.1
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=" "
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0

RARP=0
IP_ADDRESS[1]=192.168.58.10
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]="192.168.58.255"
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0


ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.168.58.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]="196.28.61.130"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.230.3.15"
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
ROUTE_DESTINATION[2]="196.28.61.214"
ROUTE_MASK[2]=""
ROUTE_GATEWAY[2]="10.230.3.15"
ROUTE_COUNT[2]=1
ROUTE_ARGS[2]=""

# netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Interface Pmtu
127.0.0.1/255.255.255.255 127.0.0.1 UH 0 lo0 4136
192.168.58.10/255.255.255.255 192.168.58.10 UH 0 lan1 4136
10.230.3.1/255.255.255.255 10.230.3.1 UH 0 lan0 4136
74.125.93.111/255.255.255.255 10.230.3.1 UH 0 lan0 0
74.125.93.111/255.255.255.255 10.230.3.15 UGH 0 lan0 0
12.154.55.50/255.255.255.255 10.230.3.15 UGH 0 lan0 0
196.28.61.130/255.255.255.255 10.230.3.15 UGH 0 lan0 0
196.28.61.214/255.255.255.255 10.230.3.15 UGH 0 lan0 0
10.230.3.0/255.255.255.0 10.230.3.1 U 2 lan0 1500
192.168.58.0/255.255.255.0 192.168.58.10 U 2 lan1 1500
127.0.0.0/255.0.0.0 127.0.0.1 U 0 lo0 0
default/0.0.0.0 192.168.58.254 UG 0 lan1 0

Netstat тАУin
# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan1 1500 192.168.58.0 192.168.58.10 2049135 0 2055700 0 0
lan0 1500 10.230.3.0 10.230.3.1 244845 0 160586 0 0
lo0 4136 127.0.0.0 127.0.0.1 453 0 453 0 0

4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Routing and netconf

Unless I misunderstand your routing statements, the behavior you see on the 11.11 server appears to be normal.

Basically, from what I can tell:

1) You must use router 10.230.3.15 to get to hosts 196.28.61.130 & 196.28.61.214

2) All other traffic goes through 192.168.58.254.

I'm not sure why you would expect to get to the Internet via 10.230.3.15 when you only have specific host routes that use that gateway.

Any traffic that is **NOT** to 196.28.61.130 & 196.28.61.214 and needs to go through a gateway will use the default gateway (192.168.58.254).

If the 11.0 server is routing traffic to the Internet via the 10.230.3.15, and your routing is actually identical, then I believe that is the server that is actually misbehaving and not the 11.11 server.
NonGuru
Advisor

Re: Routing and netconf

I guess I used the term Internet badly. The two hosts (static routes) are internet mail servers. The 10.230.3.15 router/gateway is the Internet DSL modem/router. I can't ping the two hosts (or send mail for that matter), as it routes them (I beleive) throught the default gateway which is a WAN with n Internet access.
Works like a charm on the 11.00 box connected to the same LAN/WAN.
Patrick Wallek
Honored Contributor

Re: Routing and netconf

Can you ping the 196.28.61.130 & 214 hosts?

When doing a tracertoue, try this:

# traceroute -i lan0 192.28.61.130

This will tell traceroute to use the lan0 interface rather than the one it perceives to be on the same subnet as your default gateway.
NonGuru
Advisor

Re: Routing and netconf

From 11.11
$ traceroute -i lan0 10.230.3.15
traceroute to 10.230.3.15 (10.230.3.15), 30 hops max, 40 byte packets
1 10.230.3.15 (10.230.3.15) 7.918 ms 5.914 ms 5.920 ms
CPU1(admin)@/etc/rc.config.d [1005]
$ traceroute -i lan0 192.28.61.130
traceroute to 192.28.61.130 (192.28.61.130), 30 hops max, 40 byte packets
1 * * *
2 * * *
3 * * *
4 * * *

From 11.00
CPU1:Admin>traceroute 196.28.61.130
traceroute to 196.28.61.130(196.28.61.130), 30 hops max, 20 byte packets
1 10.230.3.15 (10.230.3.15) 3 ms 3 ms 3 ms
2 10.0.0.138 (10.0.0.138) 97 ms 100 ms 100 ms
3 196.28.53.94 (196.28.53.94) 55 ms 55 ms 55 ms
4 66.50.255.169 (66.50.255.169) 56 ms 55 ms 56 ms
5 66.50.242.238 (66.50.242.238) 56 ms 55 ms 55 ms
6 66.50.242.230 (66.50.242.230) 57 ms 55 ms 55 ms
7 66.50.167.70 (66.50.167.70) 56 ms 56 ms 56 ms
8 66.50.101.129 (66.50.101.129) 56 ms 56 ms 56 ms
9 * *CPU1:Admin>ping prtc
PING prtc: 64 byte packets
64 bytes from 196.28.61.130: icmp_seq=0. time=56. ms
64 bytes from 196.28.61.130: icmp_seq=1. time=58. ms

----prtc PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss