No parameter
|
Displays all NIC information, which includes the IP address, network mask, gateway, MAC address, maximum transmission unit (MTUs), and running status of each NIC.
|
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 MTU size, for example, 1000.
|
- IPv4:
[68,1500]
- 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. You need to specify the NIC name and add the inet6 option. For details, see the example.
|
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
|