[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

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 5L Version 5.2 System Management Guide: Communications and Networks.

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

Writing a Device Method in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]