- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-IP Addressing Commands | 38.7 KB |
l Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.
l The interface types and the number of interfaces vary by AP model.
l The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.
IP Addressing Configuration Commands
display ip interface
Syntax
display ip interface [ interface-type interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Description
Use the display ip interface command to display information about a specified or all Layer 3 interfaces.
Without the interface-type interface-number argument specified, the information about all Layer 3 interfaces is displayed
Examples
# Display information about interface VLAN-interface 1.
<Sysname> display ip interface vlan-interface 1
Vlan-interface1 current state :DOWN
Line protocol current state :DOWN
Internet Address is 20.1.1.11/8 Primary
Broadcast address : 20.255.255.255
The Maximum Transmit Unit : 1500 bytes
input packets : 0, bytes : 0, multicasts : 0
output packets : 0, bytes : 0, multicasts : 0
ARP packet input number: 0
Request packet: 0
Reply packet: 0
Unknown packet: 0
TTL invalid packet number: 0
ICMP packet input number: 0
Echo reply: 0
Unreachable: 0
Source quench: 0
Routing redirect: 0
Echo request: 0
Router advert: 0
Router solicit: 0
Time exceed: 0
IP header bad: 0
Timestamp request: 0
Timestamp reply: 0
Information request: 0
Information reply: 0
Netmask request: 0
Netmask reply: 0
Unknown type: 0
Table 1-1 display ip interface command output description
Field |
Description |
current state |
Current physical state of an interface, which can be l Administrative DOWN: Indicates that the interface is administratively down; that is, the interface is shut down with the shutdown command. l DOWN: Indicates that the interface is administratively up but its physical state is down, which may be caused by a connection or link failure. l UP: Indicates that both the administrative and physical states of the interface are up. |
Line protocol current state |
Current state of the link layer protocol, which can be l DOWN: Indicates that the protocol state of the interface is down, which is usually because that no IP address is assigned to the interface. l UP: Indicates that the protocol state of the interface is up. |
Internet Address |
IP address of an interface followed by: l Primary: Identifies a primary IP address, or l Sub: Identifies a secondary IP address. |
Broadcast address |
Broadcast address of the subnet attached to an interface |
The Maximum Transmit Unit |
Maximum transmission units on an interface, in bytes |
input packets, bytes, multicasts output packets, bytes, multicasts |
Unicast packets, bytes, and multicast packets received on an interface (the statistics start at the AP startup) |
ARP packet input number: Request packet: Reply packet: Unknown packet: |
Total number of ARP packets received on the interface (the statistics start at the AP startup), including l ARP request packets l ARP reply packets l Unknown packets |
TTL invalid packet number |
Number of TTL-invalid packets received on the interface (the statistics start at the AP startup) |
ICMP packet input number: Echo reply: Unreachable: Source quench: Routing redirect: Echo request: Router advert: Router solicit: Time exceed: IP header bad: Timestamp request: Timestamp reply: Information request: Information reply: Netmask request: Netmask reply: Unknown type: |
Total number of ICMP packets received on the interface (the statistics start at the AP startup), including the following packets: l Echo reply packet l Unreachable packets l Source quench packets l Routing redirect packets l Echo request packets l Router advertisement packets l Router solicitation packets l Time exceeded packets l IP header bad packets l Timestamp request packets l Timestamp reply packets l Information request packets l Information reply packets l Netmask request packets l Netmask reply packets l Unknown type packets |
display ip interface brief
Syntax
display ip interface brief [ interface-type [ interface-number ] ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type: Interface type.
interface-number: Interface number.
Description
Use the display ip interface brief command to display brief information about a specified or all Layer 3 interfaces.
Note that without the interface type and interface number specified, the information about all Layer 3 interfaces is displayed; with only the interface type specified, the information about all Layer 3 interfaces of the specified type is displayed; with both the interface type and interface number specified, only the information about the specified interface is displayed.
Related commands: display ip interface.
Examples
# Display brief information about VLAN interfaces.
<Sysname> display ip interface brief vlan-interface
*down: administratively down
(s): spoofing
Interface Physical Protocol IP Address Description
Vlan-interface1 up up 6.6.6.6 Vlan-inte...
Vlan-interface2 up up 7.7.7.7 VLAN2
Table 1-2 display ip interface brief command output description
Field |
Description |
*down: administratively down |
The interface is administratively shut down with the shutdown command. |
(s) : spoofing |
Spoofing attribute of the interface. It indicates that an interface whose network layer protocol is displayed up may have no link present or the link is set up only on demand. |
Interface |
Interface name |
Physical |
Physical state of interface , which can be l *down: Indicates that the interface is administratively down; that is, the interface is shut down with the shutdown command. l down: Indicates that the interface is administratively up but its physical state is down, which may be caused by a connection or link failure. l up: Indicates that both the administrative and physical states of the interface are up. |
Protocol |
Link layer protocol state of interface, which can be l down: Indicates that the protocol state of the interface is down, which is usually because that no IP address is assigned to the interface. l up: Indicates that the protocol state of the interface is up. |
IP Address |
IP address of interface (If no IP address is configured, “unassigned” is displayed.) |
Description |
Interface description information, for which at most 12 characters can be displayed. If there are more that 12 characters, only the first nine characters are displayed. |
ip address
Syntax
ip address ip-address { mask | mask-length } [ sub ]
undo ip address [ ip-address { mask | mask-length } [ sub ] ]
View
Interface view
Default Level
2: System level
Parameters
ip-address: IP address of interface, in dotted decimal notation.
mask: Subnet mask in dotted decimal notation.
mask-length: Subnet mask length, the number of consecutive ones in the mask.
sub: Secondary IP address for the interface.
Description
Use the ip address command to assign an IP address and mask to the interface.
Use the undo ip address command to remove all IP addresses.
Use the undo ip address ip-address { mask | mask-length } command to remove the primary IP address.
Use the undo ip address ip-address { mask | mask-length } sub command to remove a secondary IP address.
By default, no IP address is assigned to any interface.
When assigning IP addresses to an interface, consider the following:
l You can assign only one primary IP address to an interface.
l The primary and secondary IP addresses can be located in the same network segment.
l Before removing the primary IP address, remove all secondary IP addresses.
l You can assign a secondary IP address only when the interface is not configured to borrow an IP address through IP unnumbered or obtain one through DHCP.
Related commands: display ip interface.
Examples
# Assign VLAN-interface 1 a primary IP address and a secondary IP address, with subnet masks being 255.255.255.0.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip address 129.12.0.1 255.255.255.0
[Sysname-Vlan-interface1] ip address 202.38.160.1 255.255.255.0 sub