Name
ipconfig
Syntax
ipconfig getifaddrinterfaceipconfig getoption {interface| "" } {option_name|option_code} ipconfig getpacketinterfaceipconfig ifcount ipconfig setinterface{ BOOTP | DHCP } ipconfig setinterface{ INFORM | MANUAL }IP_addrnetmaskipconfig waitall
Description
Interacts with the IP Configuration Agent of configd to manage network configuration changes.
Options/Usage
- getifaddr
Prints the specified network interface’s IP address to standard output.
- getoption
Prints the value of the specified DHCP option to standard output. If
interfaceis specified, the option is interface-specific. If empty quotes are used instead, the option is global. Option names and numeric codes are DHCP-standard (such ashost_name,domain_name,netinfo_server_address, etc.).- getpacket
Prints DHCP transaction packets to standard output.
- ifcount
Prints the number of network interfaces to standard output.
- set
Sets the method by which the specified network interface is assigned an IP address. Using BOOTP or DHCP causes the system to attempt to contact a server of the appropriate type to obtain IP configuration information. Using INFORM sets the IP address locally, but initiates a DHCP request to obtain additional IP configuration information (DNS servers, default gateway, etc.). Using MANUAL indicates that all IP configuration information is set locally.
- waitall
Sets the configurations of all network interfaces according to the specifications in /etc/iftab.
Location
| /usr/sbin |
Operating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access