Operating System - HP-UX
1825025 Members
3203 Online
109678 Solutions
New Discussion юеВ

Re: i need to add gateway

 
Mousa55
Super Advisor

i need to add gateway

Wellcome and Hello
i need to add gateway to specific ip address in hpux server


thanks and best regards
14 REPLIES 14
Wouter Jagers
Honored Contributor

Re: i need to add gateway

Hi,

Welcome to the forums !

Do you want to add a default gateway, or do you need to route traffic for one specific host to a particular place ?

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
V. Nyga
Honored Contributor

Re: i need to add gateway

Hi,

you can use/test with 'route add '
Check 'man route' for detailed infos.
for example you have to set if you have a remote gateway instead of a local.

To make it permanent (after a reboot) you have to edit /etc/rc.config.d/netconf

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Mousa55
Super Advisor

Re: i need to add gateway

wellcome to all
the problems
i am need to connect from ux server to windows server, two servers in the same network.
the windows server can to telnet to ux server but on the contrary no.
therefore i need to add gateway of windows server to ux server to solution my proplem.
V. Nyga
Honored Contributor

Re: i need to add gateway

hi,

can you ping the ip-address of the windows server? If yes, then you don't have a route problem!

How do you want to connect? telnet?
Do you have the rights to connect?

V.
*** Say 'Thanks' with Kudos ***
Asif Sharif
Honored Contributor

Re: i need to add gateway

Hi Nejad,

If you need to add default gateway..do it simply with SAM.
#sam>Networking and Communications ->Routes>Actions> Add Default Route> give here your IP address.


Regards,
Asif Sharif
Regards,
Asif Sharif
Wouter Jagers
Honored Contributor

Re: i need to add gateway

Hi,

Two servers in the same network usually don't need routing information to connect to each other.

As Volkmar said, try to ping both ways. If that works, you don't need to meddle with routes.

Also, it might be worth to try 'telnet localhost' on the windows machine to check whether the service is running ok.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Rasheed Tamton
Honored Contributor

Re: i need to add gateway

ping the windows server (if you can ping it)
telnet windows server (what message you get)

Did you start the telnet server on windows server. If the telnet server is not started you will not be able to telnet to a windows server.

Just give us the correct error message.

Regards.
Mousa55
Super Advisor

Re: i need to add gateway

i can ping ip-address of the ux server from windows server.
but i can't ping from ux server to windows server
the two server in the same network and don't need to meddle with routes.
ip of ux server:10.8.1.63
ip of windows server: 10.8.1.108
the gateway of windows server 10.8.1.1

in sam i can't add gateway

by using #route add 10.8.1.108 10.8.1.1

i am not try to use >MP co
V. Nyga
Honored Contributor

Re: i need to add gateway

Hi again,

if you use this gateway, you've to add the '1' at the end - route add 10.8.1.108 10.8.1.1 1

Is ping working now?

V.
*** Say 'Thanks' with Kudos ***
Wouter Jagers
Honored Contributor

Re: i need to add gateway


If you want the unix box to have the same default gateway than the windows box:

# route add default 10.8.1.1 1

Strange your ping is only working one way, though..

Cheers
an engineer's aim in a discussion is not to persuade, but to clarify.
Mousa55
Super Advisor

Re: i need to add gateway

the ping from ux server by using the ip address of windows server it is ok but i need ping the hostname of windows server (ruhfile) from ux server now??

thanks and best regards
Wouter Jagers
Honored Contributor

Re: i need to add gateway

Aha, there's our problem :-)

Option one: add the IP address of the windows server into your DNS system (or have it done).

Option two: put the windows server into /etc/hosts on your unix, like this:

10.8.1.108 windowshostname.yourplace.com windowshostname

After saving the /etc/hosts with the above line in it, you should be able to ping the windows hostname.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
V. Nyga
Honored Contributor

Re: i need to add gateway

Hi,

well - pinging the ip-address is the first thing!

As Wout said, you have to tell the hp ws to resolve the win server's name with an ip-address.
For Wout's first option you have to configure DNS at your hp - shorter is to add the win server to the hp hosts file.

Volkmar
*** Say 'Thanks' with Kudos ***
Wouter Jagers
Honored Contributor

Re: i need to add gateway

Any luck ?

Thanks for letting us know how it works out, it's always nice to know how a story ends :-)

Cheers,
Wout


PS - Thanks for also checking out http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward points to useful answers.
an engineer's aim in a discussion is not to persuade, but to clarify.