No parameter
|
Displays information about all NICs, including the IP addresses, subnet masks, gateways, MAC addresses, maximum transmission units (MTUs), and running statuses.
|
N/A
|
-a
|
Displays data sent and received by the protocol stack.
|
N/A
|
interface
|
Indicates the NIC name, for example, eth0.
|
N/A
|
address
|
Indicates the IP address, for example, 192.168.1.10. The NIC name must be specified.
|
N/A
|
netmask
|
Indicates the subnet mask, for example, 255.255.255.0.
|
N/A
|
gateway
|
Indicates the gateway, for example, 192.168.1.1.
|
N/A
|
hw ether
|
Indicates the MAC address, for example, 00:11:22:33:44:55. Currently, only the ether hardware type is supported.
|
N/A
|
mtu
|
Indicates the MTU size, for example, 1000.
|
- For IPv4:
[68,1500]
- For IPv6:
[1280, 1500]
|
add
|
Indicates 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
|