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

Commands Reference, Volume 1


chgif Method

Purpose

Reconfigures an instance of a network interface.

Syntax

chgif-d  | -T ] -l InterfaceInstance -a "Attribute=Value ..."

Description

The chgif method first modifies the database and then reconfigures the specified network interface instance (InterfaceInstance) by issuing a call to the ifconfig command. Only one interface can be changed per command invocation, and at least one attribute must be specified. This method is not normally used on the command line. Rather, it is called by high-level commands.

Note: The chgif method is a programming tool and should not be executed from the command line.

Flags


-a"Attribute=Value ..." Specifies pairs of attributes and values that configure the Interface instance. The AttributeValue pairs must be surrounded by quotes.

Valid attribute values are as follows:

netaddr
Specifies the Internet address of the network interface.

state (up/down)
Marks the interface as up or down.

trailers (on/off)
Turns the trailer link-level encapsulation on or off.
 

arp (on/off)
Enables or disables the use of the Address Resolution Protocol.

allcast (on/off)
Specifies whether to broadcast packets to all token-ring networks or just the local token-ring network. This attribute applies only to token-ring networks.

hwloop (on/off)
Enables or disables hardware loopback mode.

 

netmask
Specifies the network mask in dotted-decimal format.

security SecurityLevelKeyword
(inet only) Specifies the security level associated with the interface. The value of the SecurityLevelKeyword variable can be one of the following:

  • none
  • unclassified
  • confidential
  • secret
  • top_secret

When the level of security is defined as none or unclassified, no IP Option header is added to the IP header.

 

authority AuthorityLevelKeyword
(inet only) Specifies the security authority level associated with the interface. The value of the AuthorityLevelKeyword variable can be one or more of the following:

genser
Defense Communications Agency

siop
Department of Defense Organization of the Joint Chiefs of Staff

 

dsccs-spintcom
Defense Intelligence Agency

dsccs-criticom
National Security Agency

When more than one level of authority is specified, the values are separated by commas without embedded spaces.

 

mtu
Maximum IP packet size for this system.

broadcast
Specifies the address to use for representing broadcasts to networks.

dest
Specifies the destination address on a point-to-point link.

-d Specifies that changes are made only in the configuration database. Changes take effect at the next system restart.
-l InterfaceInstance Specifies the instance of the network interface to be reconfigured.
-T Makes a temporary change in the device without the change being reflected in the database. It is temporary in that the device reverts to the characteristics described in the database when the system is restarted.

Related Information

The chdev command, ifconfig command.

The chginet method.

The odm_run_method subroutine.

TCP/IP Protocols, TCP/IP Addressing, TCP/IP Network Interfaces in AIX 5L Version 5.1 System Management Guide: Communications and Networks.

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

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


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