Re: Setting the default gateway..???

bloodymary_at_bloodytea.com
Date: 07/23/03


Date: Wed, 23 Jul 2003 14:54:56 -0000

Hi,

I see that the method you describe looks like it will work, but I can figure out how to use it.
I'm not all that familiar with AIX, but I tried running that command from the command line
(yes... like it said not to... LOL...) and it didn't work.

Can you please give me some more pointers.

Thank you again.

lsattr -El inet0

try this:

chginet Method

Purpose
Reconfigures the Internet instance.

Syntax
chginet [ -d ] [ -a"Attribute=Value ..." ]

Description
The chginet method reconfigures the Internet instance, and can also change
the HostName variable and any static routes that are defined. The chginet
method calls the hostname command to change the host name. The chginet
method also calls the route command to change any static routes. The chdev
command calls method.

Note: The chginet method is a programming tool and should not be entered
from the command line.
Flags

-a"Attribute=Value ..." Specifies the customized attributes of the Internet
instance. The following are valid attributes:
hostname
Specifies the name of the host.
gateway
Specifies the default gateway.
route
Specifies the route. The format of the Value variable of the Route attribute
is: route=destination, gateway, [metric].
delroute
Specifies the route to delete. The format of the value is:
route=destination, gateway, [metric].
-d Specifies that changes are made only in the configuration database.
Changes take effect with the next IPL.

Examples
To change an Internet instance and specify a route, enter a method in the
following format:

chginet -a"route=192.9.200.0,bcroom"

This example specifies a new route. The new route is being set to network
192.9.200.0, the bcroom gateway.

Użytkownik <bloodymary@bloodytea.com> napisał w wiadomości
news:vhqufp779eqa3a@corp.supernews.com...
> Hi,
> I'm tottaly new to this group. I have a question about setting the
default gateway on our AIX system.
> The problem is that every time I reboot the gateway is set for
192.168.10.10, and I have to manual
> change it through the command
> route delete 0, then add the correct gateway in
> using
> route add 0 192.168. 10.8
>
>
>



Relevant Pages

  • Re: IP FORWARDING IPTABLES
    ... I choose to configure my firewall to route packets in a different ... want to specify the IP of the gateway, ... the command might be more accurate ... but has a "-I" option to use ICMP echos. ...
    (comp.security.firewalls)
  • Re: Routing with windows 2000
    ... netmask Specifies a subnet mask value for this route entry. ... gateway Specifies gateway. ... ie. cost for the destination. ...
    (microsoft.public.win2000.general)
  • Re: Keep routing table
    ... netmask Specifies a subnet mask value for this route entry. ... gateway Specifies gateway. ... > route PRINT ...
    (microsoft.public.win2000.networking)
  • Re: Setting the default gateway..???
    ... The chginet method reconfigures the Internet instance, ... method also calls the route command to change any static routes. ... Specifies the name of the host. ... Specifies the default gateway. ...
    (comp.unix.aix)
  • Re: Setting the default gateway..???
    ... > I'm not all that familiar with AIX, but I tried running that command from ... > method also calls the route command to change any static routes. ... > Specifies the name of the host. ... > Specifies the default gateway. ...
    (comp.unix.aix)