Operating System - Linux
1833756 Members
2547 Online
110063 Solutions
New Discussion

Re: HP-UX netconf question

 
NonGuru
Advisor

HP-UX netconf question

I'm trying to configure a statis route without much luck (lack of knowledge I guess). I have two lan cards. The default gateway (192.168.58.254) (WAN) is on lan1(192.168.50.10). lan0(10.230.3.1) has a gateway(10.230.3.15) (DSL Internet connection). All trafic thru the WAN (lan1) works fine. I am trying to setup a static route to an Internet Mail server (196.28.61.130) via the DSL connection on lan0. With my current configuration, the traceroute to the email server goes thru the lan1 card instead of lan0. I can ping the lan0 gateway fine.

Here is my current config.

lan0:
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
lan1:
IP_ADDRESS[1]=192.168.58.10
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0

ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.168.58.254"
ROUTE_COUNT[0]="1"
ROUTE_DESTINATION[1]="196.28.61.130"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.230.3.15"
ROUTE_COUNT[1]=0
ROUTE_ARGS[1]=""
4 REPLIES 4
NonGuru
Advisor

Re: HP-UX netconf question

# netstat -rn
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 420 lo0 4136
192.168.58.10 192.168.58.10 UH 0 2 lan1 4136
10.230.3.1 10.230.3.1 UH 0 0 lan0 4136
10.230.3.0 10.230.3.1 U 2 0 lan0 1500
192.168.58.0 192.168.58.10 U 2 0 lan1 1500
196.28.68.130 10.230.3.15 UGH 0 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 192.168.58.254 UG 0 0 lan1 1500

Eric SAUBIGNAC
Honored Contributor

Re: HP-UX netconf question

Bonjour,

You miss ROUTE_DESTINATION[1]="host 196.28.61.130" and ROUTE_COUNT[1]=1

I suppose that ROUTE_ROUTE_DESTINATION[0]="default" ?

Eric
Mel Burslan
Honored Contributor

Re: HP-UX netconf question

according to the ip addresses you have given for your routers, your netconf file's routes section should look like this:

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]=""


after you update your route lines, run these commands:

/sbin/init.d/net stop
/sbin/init.d/net start

make sure you do it from the console as your telnet/ssh session might most probably get disconnected when you stop networking.

hope this helps
________________________________
UNIX because I majored in cryptology...
NonGuru
Advisor

Re: HP-UX netconf question

That did it. Thanks.