130
C
15: IP A
HAPTER
DDRESS
Displaying IP Address
Configuration
IP Address
Configuration
Example
Troubleshooting
C
ONFIGURATION
After the above configuration, you can execute the display command in any view
to display the operating status and configuration on the interface to verify your
configuration.
Table 75 Display IP address configuration
Operation
Display VLAN
interface information
Network requirements
Set the IP address and subnet mask of VLAN interface 1 to 129.2.2.1 and
255.255.255.0 respectively.
Network diagram
Figure 39 IP address configuration
Console Cable
PC
Configuration procedure
# Configure an IP address for VLAN interface 1.
<Switch> system-view
[Switch] interface Vlan-interface 1
[Switch-Vlan-interface1] ip address 129.2.2.1 255.255.255.0
Symptom: The switch cannot ping the host directly-connected to a port.
Solution: You can perform troubleshooting as follows:
Check the configuration of the switch, and then use the display arp
■
command to check whether the host has an corresponding ARP entry in the
ARP table maintained by the Switch.
Check the VLAN that includes the switch port connecting the host. Check
■
whether the VLAN has been configured with the VLAN interface. Then check
whether the IP addresses of the VLAN interface and the host are on the same
network segment.
If the configuration is correct, enable ARP debugging on the switch, and check
■
whether the switch can correctly send and receive ARP packets. If it can only
send but cannot receive ARP packets, errors may occur at the Ethernet physical
layer.
Command
display ip interface [ brief ]
[ interface-type
interface-number ]
Switch
Description
You can execute the display
command in any view