Operating System - HP-UX
1833187 Members
2695 Online
110051 Solutions
New Discussion

how to add default gateway to ux server is not work

 
Mousa55
Super Advisor

how to add default gateway to ux server is not work

Hello

i have ux server it is divided to npar and vpar the one of vpar i can't connect to it becuase not contain 'default gateway' but i can connect to another server. now how to solve this problem from another server.
thanks and regards
12 REPLIES 12
Rasheed Tamton
Honored Contributor

Re: how to add default gateway to ux server is not work

Hello

If you want to add a default route:

route add default your.gateway.ip


Regards.
Asif Sharif
Honored Contributor

Re: how to add default gateway to ux server is not work

Hi Nejad,

You can add gateway from "set_parms" or from command line.

1. #set_parms addl_netwrk and follow the instructions

2. #route add default

For permanent changes you have to modify this file "/etc/rc.config.d/netconf ".

vi /etc/rc.config.d/netconf
add the following lines

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="Your gw IP"
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""

restart network service.
#/sbin/init.d/net stop
#/sbin/init.d/net start

Regards,
Asif Sharif
Regards,
Asif Sharif
Asif Sharif
Honored Contributor

Re: how to add default gateway to ux server is not work

Hi Nejad,

You can do it simply with SAM also.
#sam >Networking and Communications >Routes>Actions> Add Default Route> give here your IP address.

Your profile show you didn't assign any points.
I have assigned points to 0 of 18 responses to my questions.

If your problem solved please don't forget to assign points.

Regards,
Asif Sharif
Regards,
Asif Sharif
Andrew Young_2
Honored Contributor

Re: how to add default gateway to ux server is not work

Hi Nejad

The easiest way to solve this problem is to set up a second address with the same subnet as the server you cannot access. Then the default gateway need not come into play, and you should be able to access that server and make what changes you need.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Jov
Honored Contributor

Re: how to add default gateway to ux server is not work

Hi,

The issue might not be due to not having a default gateway. If the two addresses are within the same subnet, a default gateway is not required as its on the sam LAN, thus should be communicating.

A default gateway or route is required for a destination subnet is different to the local.


Jov
Pete Randall
Outstanding Contributor

Re: how to add default gateway to ux server is not work

The lack of a default route is *NOT* going to prevent you from getting to the server. It can prevent you from getting *FROM* that server to others. It sounds to me more like your name resolution for that particular server is messed up. Exactly what command are you tryingto use and what kind of error message are you seeing?


Pete

Pete
Mousa55
Super Advisor

Re: how to add default gateway to ux server is not work

i need to add geatway to ux server i am can't to connect it
yours solutions from the same server, i am need solution from the server which i connect to it
Mousa55
Super Advisor

Re: how to add default gateway to ux server is not work

the message
connectng to 10.8.1.63 could not open connection on the host,on port 23
Jov
Honored Contributor

Re: how to add default gateway to ux server is not work

>> connectng to 10.8.1.63 could not open connection on the host,on port 23

This could mean a number of things, e.g. telnetd is disabled.

Can you ping 10.8.1.63? Even better can you traceroute to it?


Jov
Mousa55
Super Advisor

Re: how to add default gateway to ux server is not work

i can't telnet to this ip but i can telnet to another ip of ux server
Jov
Honored Contributor

Re: how to add default gateway to ux server is not work

That could be due to a number of issues. Can you get into the console of the vPar?


Jov
Jov
Honored Contributor

Re: how to add default gateway to ux server is not work

That could be due to a number of issues. Can you get into the console of the vPar?

Please provide use your ip details of the machine you're telnetting from and the vPar HP-UX.

Did you ping it?

Jov