System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

configuration of two lan card of differnet subnets

 
sarfraz Khan_2
Occasional Advisor

configuration of two lan card of differnet subnets

hi,

is it possible to use two differnet subnets on hp ux server.
i configured two different subnets with following configuation.

lan 0 : 192.168.5.5
subnet mask : 255.255.255.0
gateway : 192.168.5.100

lan3 : 192.168.8.5
subnetmask : 255.255.255.0
gategway : 192.168.8.1

problem is when one ip is communicating in network other is not replying.
any configuration mistake is there.
below is the /etc/rc.config.d/netconf configuation.

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="192.168.5.5"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="192.168.5.255"
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]="0"
INTERFACE_MODULES[0]=""

# ROUTE_DESTINATION[0]=default
# ROUTE_MASK[0]=""
# ROUTE_ARGS[0]=""
# ROUTE_SOURCE[0]=""


#ROUTE_MASK[0]=""
# ROUTE_GATEWAY[0]="192.168.5.100"
#ROUTE_COUNT[0]="1"


DEFAULT_INTERFACE_MODULES=""
INTERFACE_NAME[3]="lan3"
IP_ADDRESS[3]="192.168.8.5"
SUBNET_MASK[3]="255.255.255.0"
BROADCAST_ADDRESS[3]="192.168.8.255"
INTERFACE_STATE[3]="up"
DHCP_ENABLE[0]="0"
INTERFACE_MODULES[3]=""

ROUTE_DESTINATION[3]=default
ROUTE_MASK[3]=""
ROUTE_GATEWAY[3]="192.168.8.1"
ROUTE_COUNT[3]="1"



please help.
sarfraz khan
3 REPLIES
Larry Klasmier
Honored Contributor

Re: configuration of two lan card of differnet subnets

What do mean when one is commuicating the other is not replying?

I also believe that only want to configure a single default gateway
Mikko Niskanen_1
Frequent Advisor

Re: configuration of two lan card of differnet subnets

If the destination IP is reachable via both source IP addresses, you may well have hit an asymmetric routing issue.

I'd suggest following through following docu and determine via p. 12 approach if you're dealing with asymmetric routing

http://mayoxide.com/presentations/Understanding_hpux_routing.pdf
Manix
Honored Contributor

Re: configuration of two lan card of differnet subnets

Looks like a routing issue as there are two mentioned gateways.

There can be multiple subnets under a single gateway ,not sure if it`s a requirement to
have multiple gateways.

Thanks
Manix
HP-UX been always lovable - Mani Kalra