1825693 Members
3313 Online
109686 Solutions
New Discussion

gateway

 
SOLVED
Go to solution
Rene_17
Regular Advisor

gateway

how to configure a gateway in hpux11i
in the net 138.232.81.x is the local workgroup and 138.232.81.62 should be the gateway out of the local net !
15 REPLIES 15
Rene_17
Regular Advisor

Re: gateway

how can i set the hostname ?
how can i config the netadapter in the server ?
T G Manikandan
Honored Contributor

Re: gateway

route add 138.232.81.0 138.232.81.62

0-->local machine as gateway
1--->remote machine as gwy.

like

#route add 138.232.81.0 138.232.81.62 1


Thanks



Robert-Jan Goossens
Honored Contributor
Solution

Re: gateway

Hi Rene,

You can change the default gateway in the /etc/rc.config.d/netconf file.

Hope it helps,

Robert-Jan.
T G Manikandan
Honored Contributor

Re: gateway

The best way would be using

#set_parms initial

which would set all the parameters to you.

Just do a
#set_parms

and look at its arguments


revert
Steven E. Protter
Exalted Contributor

Re: gateway

Actually the best approach is to get it working with the route add command, make sure you can ping the destination and get traffic back and forth.

Then modify the /etc/rc.config.d/netconf file if you want it to be the permanent default route.


If you don't test it first with route add and just modify netconf, if for some reason the route is no good(or if you just make a typo), you machine can hang next time you boot it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rene_17
Regular Advisor

Re: gateway

I made it with set_pars initial.
After that I can??t ping to nothing !!!

Please Help ME
T G Manikandan
Honored Contributor

Re: gateway

Check your present machine ip with

#ifconfig lan0

What is the ip of the server?
to which ip you ar trying to ping?

post the output of
#netstat -nr

revert
Rene_17
Regular Advisor

Re: gateway

iff2:/ # ifconfig lan0
lan0: flags=843
inet 138.232.81.3 netmask ffffffc0 broadcast 138.232.81.63
iff2:/ # netstat -nr
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
138.232.81.3 138.232.81.3 UH 0 lan0 4136
138.232.81.0 138.232.81.3 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 138.232.81.62 UG 0 lan0 0

How can I delete a route ?
T G Manikandan
Honored Contributor

Re: gateway

This should delete the route
#route delete

You routing table looks fine.What ip you are trying to ping

Revert

Rene_17
Regular Advisor

Re: gateway

I wanted to ping to localhost (138.232.81.3)
ping to 127.0.0.1
ping to all don??t work !
Rene_17
Regular Advisor

Re: gateway

iff2:/ # route delete 138.232.81.3 138.232.81.3
delete host 138.232.81.3: gateway 138.232.81.3: Keine Datei und kein Verzeichnis
iff2:/ #

I cannot delete any route !
(I read the manpage of route)
route delete 138.232.81.3 138.232.81.3
route delete -f 138.232.81.3
Rene_17
Regular Advisor

Re: gateway

iff2:/ # cat /etc/rc.config.d/netconf

HOSTNAME="iff2"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=138.232.81.3
SUBNET_MASK[0]=255.255.255.192
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=138.232.81.62
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

GATED=0
GATED_ARGS=""

RDPD=0

RARP=0
Rene_17
Regular Advisor

Re: gateway

I think it is not the netconf file because on a running server is the same configuration.
Mary Ann Lipa
Valued Contributor

Re: gateway

is the gateway responding to ping?
Which is worse, smoking or picking your nose in a public place?
Rene_17
Regular Advisor

Re: gateway

ssh don??t work
ping don??t work
everything with the net don??t work
the networkkart is up !
which deamons i need for the net ?