Reconfigures the Internet instance.
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.
Item | Description |
---|---|
-a"Attribute=Value ..." | Specifies the customized attributes of the Internet
instance. The following are valid attributes:
|
-d | Specifies that changes are made only in the configuration database. Changes take effect with the next IPL. |
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.
This example specifies a new route. The new route is being set to host 192.9.200.5 with hopcount 2, interface en0, and the bcroom gateway.
chginet -a"route=host,-hopcount,2,-if,en0,192.9.200.5,bcroom"
This example deletes the route added in the previous example.
chginet -a"delroute=host,-hopcount,2,-if,en0,192.9.200.5,bcroom"