No parameter
|
Displays the IP addresses, network masks, gateway, MAC addresses, MTU, and running status of all NICs.
|
N/A
|
-a
|
Displays data sent and received by the protocol stack.
|
N/A
|
interface
|
Specifies the NIC name, for example, eth0.
|
N/A
|
address
|
Specifies the IP address, for example, 192.168.1.10. The NIC name must be specified.
|
N/A
|
netmask
|
Specifies the subnet mask, for example, 255.255.255.0.
|
N/A
|
gateway
|
Specifies the gateway, for example, 192.168.1.1.
|
N/A
|
hw ether
|
Specifies the MAC address, for example, 00:11:22:33:44:55. Currently, only the ether hardware type is supported.
|
N/A
|
mtu
|
Specifies the maximum transmission unit (MTU) size, for example, 1000.
|
- For IPv4:
[68,1500]
- For IPv6:
[1280, 1500]
|
add
|
Specifies the IPv6 address, for example, 2001:a:b:c:d:e:f:d. The NIC name and inet6 must be specified.
|
N/A
|
del
|
Deletes an IPv6 address. The NIC name and inet6 must be specified.
|
N/A
|
up
|
Enables the data processing function of the NIC. The NIC name must be specified.
|
N/A
|
down
|
Disables the data processing function of the NIC. The NIC name must be specified.
|
N/A
|