Operating System - HP-UX
1838471 Members
2728 Online
110126 Solutions
New Discussion

Routing table for the second NIC

 
Andrej Vavro
Frequent Advisor

Routing table for the second NIC

Hi all,

I need help with this: I need to setup routing for second NIC. I am using the first one with default gateway to connect computers on our LAN and also corporate WAN. The same I want to setup with the second card - to be able to connect box from LAN & WAN. But routed via another gateway; the default gateway would not be accessible in case the first NIC fails.

1. How does the syntax look like?
route add ...

2. How does the netconf look like?

Attached is my configuration.

I believe it's simple for you. Thanks in advance
Andrej
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: Routing table for the second NIC

netconf file



IP_ADDRESS[1]=10.250.29.1
SUBNET_MASK[1]=
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=
INTERFACE_STATE[1]=up
ROUTE_GATEWAY[1]=10.250.29.254
ROUTE_COUNT[1]=1
ROUTE_DESTINATION[1]=default


The [1] indicates lan1.

Thanks
Bernhard Mueller
Honored Contributor

Re: Routing table for the second NIC

Andrej

the line is
ROUTE_DESTINATION[1]="net 10.250.29.0"

Regards
Bernhard
T G Manikandan
Honored Contributor

Re: Routing table for the second NIC

oops,


ROUTE_DESTINATION[1]
=10.xx.xx.xx


Thanks
Andrej Vavro
Frequent Advisor

Re: Routing table for the second NIC

This is a production system, so I cannot do net stop & net start. And then I cannot check your answers whether they are correct. Can you advice me the syntax for route add to solve my problem?

May be more details might help you:
lan0 100Mb
lan1 10Mb
I prefer communication via lan0 (faster). I just need to have remote access to the box in case of any failure (CISCO swicth port, lan0) of primary line. Also I want to PC's on subnet 29 to communicate via 28 with the box.
Is this possible?

Andrej