[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 1

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=destinationgateway[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.

Related Information

The chdev command, hostname command, mkdev command, route command.

The odm_run_method subroutine.

TCP/IP Network Interfaces in AIX Version 4.3 System Management Guide: Communications and Networks.

Object Data Manager (ODM) Overview for Programmers in AIX General Programming Concepts: Writing and Debugging Programs.

Writing a Device Method in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Glossary | Home | Search ]