Operating System - HP-UX
1850497 Members
2555 Online
104054 Solutions
New Discussion

Re: Connecting another network , Route ?

 
rveri
Super Advisor

Connecting another network , Route ?

Hi All,
I have a hp-ux 11.11 system , having IP : 10.112.248.37 , And default gateway is specified.

We also have a network 10.112.243.0 , How to make this system to communicate in .243 network.( my ultimate onjective is to reach/ping this IP ,10.112.243.34 )

There is only one network card , in the system .

here is ifconfig output.
# ifconfig lan0
lan0: flags=843
inet 10.112.248.37 netmask ffffff00 broadcast 10.112.248.255

Also # netstat -rn
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.112.248.37 10.112.248.37 UH 0 lan0 4136
10.112.248.0 10.112.248.37 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.112.248.3 UG 0 lan0 0


Pls reply asap.
Thanks,

10 REPLIES 10
Chan 007
Honored Contributor

Re: Connecting another network , Route ?

Hi,

Do you have any routers in the network. Just add to that router your IP address.

I thing you have only one card and the system's IP address is gateway.

You need to have either one more card or you have a network router to work in Layer 3. Where you configure both the networks.

Finally if you destination system 243 has 2 then use that as router instead of this server.

Cheers ...007
Deoncia Grayson_1
Honored Contributor

Re: Connecting another network , Route ?

You will have to add another route to get to the ip addresss in question, you will have to get with your networking group to get the correct ip address.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Geoff Wild
Honored Contributor

Re: Connecting another network , Route ?

One way would be to add a static route to that network...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ninad_1
Honored Contributor

Re: Connecting another network , Route ?

Hi Rveri,

If you have got a single network card then the only way I can see you can reach the network 10.112.243.0 from 10.112.248.0 will through a router. The router should have connections to both the networks.The default gateway for the server should be the address of the router.
e.g if router address is 10.112.248.5

delete existing default gateway
route delete -net default 10.112.248.3

add the new route
route add default 10.112.248.5

Regs,
Nad
rveri
Super Advisor

Re: Connecting another network , Route ?

Geoff ,
how to add a static route.

The IP 10.112.248.3 is belongs to the router on this network , and using for default gateway.

Thanks.
Chan 007
Honored Contributor

Re: Connecting another network , Route ?

to add a static one,
use /etc/rc.config.d/netconf
Oviwan
Honored Contributor

Re: Connecting another network , Route ?

Hi,

can you ping the network 10.112.243.0 from an other machine in network 10.112.248.0?

if there are two routers between the both networks try to add a route on your router (10.112.248.3) to the 10.112.243.0 network

Regards
Geoff Wild
Honored Contributor

Re: Connecting another network , Route ?

On command line try:

route add net 10.112.243.0 netmask 255.255.255.0 10.112.243.1 1

To make it permanet, add to bottom of /etc/rc.config.d/netconf try:

ROUTE_DESTINATION[1]="net 10.112.243.0"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.112.243.1"
ROUTE_COUNT[1]="0"
ROUTE_ARGS[1]=""

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
guna_1
Advisor

Re: Connecting another network , Route ?

No need to add a new route ,

Default gateway addr is 10.112.248.3 ( router's ip addr ).

if your above router have connectivity with n/w 10.112.243.34 , then nothing to do.

because packets having ip addr other than 10.112.248.* , will forwarded to 10.112.248.3 , so it is router's responsibility to deliver the packets.


Whether you tried to ping this IP ?

if not , what is the error ?

REgds,
Guna
Sivakumar TS
Honored Contributor

Re: Connecting another network , Route ?


Hi,

Execute this command,

#route add

usage: add destination [netmask mask] gateway [metric]

destination --> 10.112.243.0

gateway --> the router IP in the .248 network which connects to .243 network

NOW

try pinging to the other network.

Add the line in any rc scripts, so that it gets executed during every boot.

HtH,

Siva.
Nothing is Impossible !