How to change the default router on HP-UX 11.11

  • Follow


Hello,

Can someone tell me how to change the default router on an HP-UX 11.11
machine ? I changed the name from a network to other, and I need to
set the default router ??

Thanks,

Juan
0
Reply guart 11/4/2003 3:58:17 PM

G P wrote:

> Hello,
> 
> Can someone tell me how to change the default router on an HP-UX 11.11
> machine ? I changed the name from a network to other, and I need to
> set the default router ??

Just recently, I did it on a 11.0 machine, using `sam`. It was a huge tour 
around most of the options but I found it...

`sam` -> NetworkingAndCommunicaitons -> Hosts -> LocalHostFile -> Actions -> 
ModifyDefaultGateway.

I must admid, it took a long way to find it. I expected to find it with a 
routing option or with the network cards or such


CBee

0
Reply ISO 11/4/2003 4:29:34 PM


G P wrote:

> Hello,
> 
> Can someone tell me how to change the default router on an HP-UX 11.11
> machine ? I changed the name from a network to other, and I need to
> set the default router ??
> 
> Thanks,
> 
> Juan

SAM is your friend.

- Greg
-- 
Greg Cagle
gregc at gregcagle dot com
0
Reply Greg 11/4/2003 4:30:13 PM

Greg Cagle <news@removethisgregcagle.com> wrote:
> G P wrote:

> SAM is your friend.

Bugger that! SAM is a crutch!

// If you're trying to do this remotely, make sure you put both 
// route commands on the same line!!
# route delete default ${gw}; route add default ${gw} 1

// Update appropriate stanza of /etc/rc.config.d/netconf
# vi /etc/rc.config.d/netconf
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="172.30.20.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

Doug O'Leary

--------
Senior UNIX Admin
O'Leary Computer Enterprises
dkoleary@attbi.com (w) 630-904-6098 (c) 630-248-2749
resume:  http://home.attbi.com/~dkoleary/resume.html
0
Reply dkoleary 11/4/2003 6:02:01 PM

"G P" <guart@hotmail.com> schreef in bericht
news:c3c6c30c.0311040758.25027f41@posting.google.com...
> Hello,
>
> Can someone tell me how to change the default router on an HP-UX 11.11
> machine ? I changed the name from a network to other, and I need to
> set the default router ??
>
> Thanks,
>
> Juan

Juan,


vi /etc/rc.config.d/netconf

The default router is the gateway for route 0.0.0.0 or the route default.


Kind regards,


Jan Gerrit Kootstra


0
Reply Jan 11/4/2003 6:03:10 PM

4 Replies
2593 Views

(page loaded in 0.292 seconds)

Similiar Articles:













7/21/2012 2:31:18 AM


Reply: