Operating System - HP-UX
1753511 Members
5272 Online
108795 Solutions
New Discussion юеВ

Re: Network Routing problem.,,

 
SOLVED
Go to solution
Kannandgl_1
Frequent Advisor

Network Routing problem.,,

Greetings Friends,

We are plan to migrate N/W on our production.

For the test purpose one of the server make it 2 no's IP Address and 2 different G/W.

For ex:

1.IP:10.x.x.51
netmask:255.255.255.0
G/W :10.x.x.201 its running primary lan card.
-----------------------------------------------
I am planning to configure the second Lan card new IP and netmask , G/W
For ex :
1.IP:10.x.x.236
netmask:255.255.255.224
G/W :10.x.x.221
How can i make 2 G/W in single server.Please advice to me any one.For the testing purpose i want access both IP address from remote location.

Regards
Rajamani
14 REPLIES 14
Steven Schweda
Honored Contributor

Re: Network Routing problem.,,

> [...] 10.x.x.51 [...]

> [...] 10.x.x.236 [...]

Are these "xx.xx" values the same or
different? Why hide such potentially
important information? Are you afraid that
the Dread Pirate Roberts will attack your
systems if he learns your real (non-routable)
IP addresses?

> For the testing purpose i want access both
> IP address from remote location.

How do you do that now?
Kannandgl_1
Frequent Advisor

Re: Network Routing problem.,,

Steven Schweda,

Ok, this is testing only.


lan0 IP :10.37.12.51
subnet :255.255.255.0
G/W :10.37.12.201

lan1 IP :10.39.17.224
subnet :255.255.255.224
G/W :10.37.12.225


Regards
Rajamani
AnthonySN
Respected Contributor
Solution

Re: Network Routing problem.,,

vi /etc/rc.config.d/netconf and add the below lines to it.

ROUTE_DESTINATION[0]="10.37.12.51"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.37.12.201"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

ROUTE_DESTINATION[1]="10.39.17.224"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.37.12.225"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

then
/sbin/init.d/net start
AnthonySN
Respected Contributor

Re: Network Routing problem.,,

you should see the routes when you give the command
netstat -rn

ping the gw to check the connectivity
Kannandgl_1
Frequent Advisor

Re: Network Routing problem.,,

Dear SASJ,

I am trying to edit the /etc/rc.netconf.d/netcof as per your replay.
Still i can't reach my new G/W .


# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.40.10.51
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""


INTERFACE_NAME[1]=lan1
IP_ADDRESS[0]=10.39.17.226
SUBNET_MASK[0]=255.255.255.224
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
INTERFACE_MODULES[0]=""

# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

ROUTE_DESTINATION[0]="110.40.10.51"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.40.10.211"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[0]=""

ROUTE_DESTINATION[1]="10.39.17.236"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.39.17.225"
ROUTE_COUNT[1]=""
ROUTE_ARGS[1]=""

Can any one advise how to resolve in this issue...
Kannandgl_1
Frequent Advisor

Re: Network Routing problem.,,

Dear SASJ,

I am trying to edit the /etc/rc.netconf.d/netcof as per your replay.
Still i can't reach my new G/W .


# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.40.10.51
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""


INTERFACE_NAME[1]=lan1
IP_ADDRESS[0]=10.39.17.226
SUBNET_MASK[0]=255.255.255.224
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
INTERFACE_MODULES[0]=""

# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

ROUTE_DESTINATION[0]="110.40.10.51"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.40.10.211"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[0]=""

ROUTE_DESTINATION[1]="10.39.17.236"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.39.17.225"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

Can any one advise how to resolve in this issue...

I am getting this error:
/sbin/init.d/net start
WARNING: Missing ROUTE_DESTINATION for corresponding ROUTE_GATEWAY
or ROUTE_COUNT in the file /etc/rc.config.d/netconf.
Excess variables will be ignored.

Regards
Rajamani
AnthonySN
Respected Contributor

Re: Network Routing problem.,,

check your file
you have given the wrong IP

ROUTE_DESTINATION[0]="110.40.10.51"

it should read 10.40.10.51
Kannandgl_1
Frequent Advisor

Re: Network Routing problem.,,

Dear SASJ,

# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.40.10.51 10.40.10.51 UH 0 lan0 4136
10.39.17.236 10.39.17.236 UH 0 lan1 4136
10.39.17.224 10.39.17.236 U 2 lan1 1500
10.40.10.0 10.40.10.51 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.40.10.211 UG 0 lan0 0

Here second G/W is not taking ...
AnthonySN
Respected Contributor

Re: Network Routing problem.,,

post the output of

/sbin/init.d/net start