H3C XE 200 2000 IP PBX Command Manual(V3.01)

DownLoad Chapters Download(138 KB)

06-IP Performance and Application Command


Chapter 1  IP Performance Configuration Commands

1.1  IP Performance Configuration Commands

1.1.1  debugging ip

Syntax

debugging ip { icmp | packet | error }

undo debugging ip { icmp | packet | error }

View

User view

Parameter

icmp: ICMP debugging.

packet: IP connection debugging.

error: Error information debugging.

Description

Use the debugging ip icmp command to enable ICMP debugging.

Use the undo debugging ip icmp command to disable ICMP debugging.

Use the debugging ip packet command to enable IP connection debugging.

Use the undo debugging ip packet command to disable IP connection debugging.

Use the debugging ip error command to enable error information debugging.

Use the undo debugging ip error command to disable error information debugging.

Example

# Enable IP connection debugging.

<XE> debugging ip packet

*0.13259300 XE2000 IP/8/debug_case:

Receiving, interface = GigabitEthernet0/0, version = 4, headlen = 20, tos = 0,

pktlen = 84, pktid = 3670, offset = 0, ttl = 255, protocol = 1,

checksum = 35761, s = 192.168.80.30, d = 192.168.80.50

prompt: Receiving IP packet from GigabitEthernet0/0

<XE> debugging ip icmp

  PING 192.168.80.30: 56  data bytes, press CTRL_C to break

*0.13372110 XE2000 IP/8/debug_icmp:

ICMP Send: echo(Type=8, Code=0), Dst = 192.168.80.30

 

    Reply from 192.168.80.30: bytes=56 Sequence=1 ttl=255 time=1 ms

*0.13372110 XE2000 IP/8/debug_icmp:

ICMP Receive: echo-reply(Type=0, Code=0), Src = 192.168.80.30, Dst = 192.168.80.

50

1.1.2  debugging tcp event

Syntax

debugging tcp event [ task_id socket_id ]

undo debugging tcp event [ task_id socket_id ]

View

User view

Parameter

task_id: Task ID.

socket_id: Socket ID.

Description

Use the debugging tcp event command to enable TCP event debugging.

Use the undo debugging tcp event command to disable TCP event debugging.

When executing this command to enable the debugging, the number of debugging you can enable is limited, that is, you can enable debugging of fixed number (the combination of task ID and socket ID) at one time, besides, a new socket will be created to establish connection if TCP is passively opened or receives connection request, and some applications such as Telnet server will create a new task to process the connection. So you must not use parameters task_id and socket_id if you want to get information on connection establishment.

Example

# Enable TCP event debugging.

<XE> debugging tcp event

*0.13467370 XE2000 SOCKET/8/TCP EVENT:

1112118213: task = co0(8), socketid = 0,

TCPCB 0x239b1c04 created

 

*0.13467370 XE2000 SOCKET/8/TCP EVENT:

1112118213: task = co0(8), socketid = 1,

state Closed changed to Syn_Sent

 

*0.13467370 XE2000 SOCKET/8/TCP EVENT:

1112118213: task = co0(8), socketid = 1,

sending SYN, seq = 1724422400,

LA = 192.168.80.50:1033, FA = 192.168.80.30:23

 

*0.13467370 XE2000 SOCKET/8/TCP EVENT:

1112118213: task = co0(8), socketid = 1,

advertising MSS = 1460,

LA = 192.168.80.50:1033, FA = 192.168.80.30:23

 

Connected to 192.168.80.30 ...

*0.13467380 XE2000 SOCKET/8/TCP EVENT:

1112118213: task = co0(8), socketid = 1,

received MSS = 1460,

LA = 192.168.80.50:1033, FA = 192.168.80.30:23

 

*0.13467380 XE2000 SOCKET/8/TCP EVENT:

1112118213: task = co0(8), socketid = 1,

state Syn_Sent changed to Established 

1.1.3  debugging tcp md5

Syntax

debugging tcp md5

undo debugging tcp md5

View

User view

Parameter

None

Description

Use the debugging tcp md5 command to enable TCP connection md5 authentication debugging.

Use the undo debugging tcp md5 command to disable TCP connection md5 authentication debugging.

Example

# Enable TCP connection md5 authentication debugging.

<XE> debugging tcp md5

1.1.4  debugging tcp packet

Syntax

debugging tcp packet [ task_id socket_id ]

undo debugging tcp packet [ task_id socket_id ]

View

User view

Parameter

task_id: Task ID.

socket_id: Socket ID.

Description

Use the debugging tcp packet command to enable TCP connection packet debugging. The number of debugging you can enable is limited, that is, you can enable debugging of fixed number (the combination of task ID and socket ID) at one time.

Use the undo debugging tcp packet command to disable TCP connection debugging.

Example

# Enable TCP connection debugging.

<XE> debugging tcp packet

1.1.5  debugging udp packet

Syntax

debugging udp packet [ task_id socket_id ]

undo debugging udp packet [ task_id socket_id ]

View

User view

Parameter

task_id: Task ID.

socket_ID: Socket ID.

Description

Use the debugging udp packet command to enable UDP connection debugging. The number of debugging you can enable is limited, that is, you can enable debugging of fixed number (the combination of task ID and socket ID) at one time.

Use the undo debugging udp packet command to disable UDP connection debugging.

Example

# Enable UDP connection debugging.

<XE> debugging udp packet

1.1.6  display fib

Syntax

display fib

View

Any view

Parameter

None

Description

Use the display fib command to view the summary of the forward information base (FIB).

This command exports the FIB in a table. Each line represents a route, where the following information is included:

l           Destination address/mask length

l           Next hop

l           Current flag, combination of G, H and U, where G represents Gateway, H represents Host (host route), and U to UP (available).

l           Timestamp

l           Output interface

Example

# Display the summary of the FIB table.

<XE> display fib

Destination/Mask   Nexthop         Flag TimeStamp     Interface

192.168.80.50/32   127.0.0.1       GHU  t[0]          InLoopBack0

192.168.80.0/24    192.168.80.50   U    t[0]          GigabitEthernet0/0

127.0.0.0/8        127.0.0.1       U    t[0]          InLoopBack0

1.1.7  display fib begin

Syntax

display fib | [ { begin | include | exclude } text ]

View

Any view

Parameter

text: A string.

Description

Use the display fib command to export lines that relate to string text in the buffer according to regular expression.

The display fib | begin text command displays all lines from the first line containing the string text to the end of the buffer.

The display fib | include text command displays lines containing the string text.

The display fib | exclude text command displays lines that do not contain the string text.

Example

# Display all lines from the first line containing the string 169.254.0.0 to the end of the buffer.

<XE> display fib | begin 169.254.0.0

Destination/Mask     Nexthop     Flag        TimeStamp   Interface

169.254.0.0/16       2.1.1.1     U       t[0]            Ethernet1/0

2.0.0.0/16           2.1.1.1     U       t[0]            Ethernet1/0

127.0.0.0/8          127.0.0.1   U       t[0]            InLoopBack0

# Display all lines containing the string Ethernet0.

<XE> display fib | include Ethernet1/0

Destination/Mask     Nexthop Flag        TimeStamp       Interface

169.254.0.0/16       2.1.1.1 U       t[0]                Ethernet1/0

2.0.0.0/16           2.1.1.1 U       t[0]                Ethernet1/0

# Display all lines that do not contain the string 169.254.0.0.

<XE> display fib | exclude 169.254.0.0

Destination/Mask     Nexthop     Flag        TimeStamp   Interface

2.0.0.0/16           2.1.1.1     U       t[0]            Ethernet1/0

127.0.0.0/8          127.0.0.1   U       t[0]            InLoopBack0

1.1.8  display fib longer

Syntax

display fib dest-addr1 [ dest-mask1 ] [ longer ]

display fibdest-addr1 dest-mask1 dest-addr2 dest-mask2

View

Any view

Parameter

dest-addr1: Destination IP address 1, in dotted decimal notation.

dest-mask1: Subnet mask of dest-addr1, in dotted decimal notation, or an integer representing the length of the subnet mask.

dest-addr2: Destination IP address 2, in dotted decimal notation.

dest-mask2: Subnet mask of dest-addr2, in dotted decimal notation, or an integer representing the length of the subnet mask.

Description

For this command, how the FIB table entries will be matched depends on how the parameters are set.

Use the display fib dest-addr command to display all the subnets if the destination address can find corresponding FIB table entry in the range of natural mask, otherwise displays the FIB table entry that best matches the destination address.

Use the display fib dest-addr dest-mask command to display the FIB table entries that exactly match the destination address and mask.

Use the display fib dest-addr longer command to display all the destination address FIB table entries that match the IP address of destination address in the range of natural mask.

Use the display fib dest-addr dest-mask longer command to display all the destination address FIB table entries that match the IP address in the range of the entered mask .

Use the display fib dest-addr1 dest-mask1 dest-addr2 dest-mask2 command to display FIB table entries whose destination address within the range determined by the entered parameters dest-addr1 dest-mask1 and dest-addr2 dest-mask2 and the entries with the destination address matching the dest-addr1 dest-mask1 and dest-addre2 dest-mask2.

Example

# Display matched FIB table entries or best matched FIB table entries that are in the range of natural mask with destination address of 169.253.0.0.

[XE] display fib 192.168.80.30

  Route Entry Count: 1

Destination/Mask   Nexthop         Flag TimeStamp     Interface

192.168.80.0/24    192.168.80.40   U    t[0]          Ethernet0/0

# Display FIB table entries whose destinations ranges from 169.254.0.0/16 to 169.254.0.6/16.

<XE> display fib 169.254.0.0 255.255.0.0 169.254.0.6 255.255.0.0

Destination/Mask     Nexthop     Flag        TimeStamp   Interface

169.254.0.1/16       2.1.1.1     U       t[0]            Ethernet1/0

1.1.9  display fib statistics

Syntax

display fib statistics

View

Any view

Parameter

None

Description

Use the display fib statistics command to display the total number of the FIB table entries.

Example

# Display the total number of the FIB table entries.

<XE> display fib statistics

Route Entry Count : 30

1.1.10  display ip interface

Syntax

 display ip interface [ interface-type interface-number | brief interface-type interface-number ]

View

Any view

Parameter

interface-type: Type of the interface.

interface-number: Number of the interface.

brief: Displays summary information.

Description

Use the display ip interface command to display information of IP interface.

By default, information of all IP interfaces will be displayed if no interface is specified.

Running this command will display all IP related information of the specified interface, which can help error diagnosing.

Related command: display interface.

Example

# Display IP related information of interface GigabitEthernet 0/0.

<XE> display ip interface GigabitEthernet 0/0

GigabitEthernet0/0 current state :UP

Line protocol current state :UP

Internet Address is 192.168.80.50/24

Broadcast address : 192.168.80.255

The Maximum Transmit Unit : 1500 bytes

ip fast-forwarding incoming packets state is Enabled

ip fast-forwarding outgoing packets state is Enabled

input packets : 1635, bytes : 255090, multicasts : 3

output packets : 625, bytes : 26409, multicasts : 0

ARP packet input number:         114

  Request packet:                111

  Reply packet:                    3

  Unknown packet:                  0

TTL invalid packet number:         0

ICMP packet input number:         13

  Echo reply:                     10

  Unreachable:                     0

  Source quench:                   0

  Routing redirect:                0

  Echo request:                    0

  Router advert:                   0

  Router solicit:                  3

  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

DHCP packet deal mode:  global

Table 1-1 Descriptions on the fields of the display ip interface command

Field

Description

GigabitEthernet0/0 current state :

Current status of the interface

Link layer protocol current state :

Link layer protocol status of the interface

Internet Address is 192.168.80.50/24

IP address of the interface, where /24 means that the length of the mask is 24.

Broadcast address :

The broadcast address of the interface.

The Maximum Transmit Unit :

The maximum transmit unit.

input packets : bytes : multicasts :

The number of the received packets, bytes, and multicast packets.

output packets :bytes : multicasts :

The number of the sent packets, bytes, and multicast packets.

Directed-broadcast packets:

l      Received packets: The number of the received broadcast packets that belong to local interface broadcast domain.

l      Sent packets: The number of the sent broadcast packets that belong to local interface broadcast domain.

l      Forwarded packets: The number of broadcast packets forwarded by the interface, 0 means the broadcast forwarding of the interface is not enabled.

l      Dropped packets: The number of broadcast packets dropped by the interface.

ARP packet input number:

Statistics of the received ARP packets, including the following:

l      Total number of ARP packets

l      The number of ARP request packets

l      The number of ARP response packets,

l      The number of ARP packets of unknown types

As for non-Ethernet interfaces, the ARP statistics information is zero

TTL is invalid packet input number:

The number of the received packets with invalid TTL value. A TTL packet is regarded as invalid when its TTL value is 0 or 1.

ICMP packet input number:

The statistics of the received ICMP packets, including the following:

l      Total number of packets

l      ECHO response packets

l      Packets with unreachable destination

l      Packets with source address suppressed

l      Packets with route redirected

l      ECHO request packets

l      Route broadcasting packets

l      Route request packets

l      Timeout packets

l      Packets with wrong IP header

l      Timestamp request packets

l      Time tamp response packets

l      Information request packets

l      Information response packets

l      Mask request packets

l      Mask response packets

l      Packets of unknown types

 

1.1.11  display ip socket

Syntax

display ip socket [ socktype sock_type ] [ task_id socket_id ]

View

Any view

Parameter

sock_type: Type of the socket, 1 for tcp, 2 for udp, and 3 for raw ip.

task_id: Task ID.

socket_id: Socket ID.

Description

Use the display ip socket command to display information of all current system sockets.

Example

# Display socket information of TCP type.

<XE> display ip socket socktype 1

SOCK_STREAM:

Task = VTYD(9), socketid = 1, Proto = 6,

LA = 0.0.0.0:23, FA = 0.0.0.0:0,

sndbuf = 4096, rcvbuf = 4096, sb_cc = 0, rb_cc = 0,

socket option = SO_ACCEPTCONN

socket state = SS_PRIV  SS_ASYNC

SOCK_DGRAM:

Task = ROUT(6), socketid = 1, Proto = 17,

LA = 0.0.0.0:0, FA = 0.0.0.0:0,

sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,

socket option = SO_UDPCHECKSUM

socket state = SS_PRIV  SS_ASYNC

SOCK_RAW:

Task = ROUT(6), socketid = 2, Proto = 2,

LA = 0.0.0.0, FA = 0.0.0.0,

sndbuf = 32767, rcvbuf = 32767, sb_cc = 0, rb_cc = 0,

socket option = 0,

socket state = SS_PRIV  SS_NBIO  SS_ASYNC

Following are the descriptions of the displayed information.

SOCK_STREAM: Type of the socket.

Proto: The protocol number used by the socket.

sndbuf: The size of the send buffer of the socket.

rcvbuf: The size of the receive buffer of the socket.

sb_cc: The size of current data in the send buffer. This value is useful only when TCP buffers data.

rd_cc: The size of current data in the receive buffer.

# Display information of the socket with whose task ID is 8 and socket ID is 4.

<XE> display ip socket 8 4

Task = VTYD(8), socketid = 4, Proto = 6,

LA = 0.0.0.0:23, FA = 0.0.0.0:0,

sndbuf = 4096, rcvbuf = 4096, sb_cc = 0, rb_cc = 0,

socket option = SO_ACCEPTCONN

socket state = SS_PRIV  SS_ASYNC

1.1.12  display ip statistics

Syntax

display ip statistics

View

Any view

Parameter

None

Description

Use the display ip statistics command to display IP traffic statistics, IP sending and receiving, and packet encapsulating and decapsulating, which can help error diagnosing.

Related command: display interface, display ip interface, reset ip statistics.

Example

# Display IP traffic statistics.

<XE> display ip statistics

  Input:   sum            7120             local             112

           bad protocol   0                bad format        0

           bad checksum   0                bad options       0

  Output:  forwarding     0                local             27

           dropped        0                no route          2

           compress fails 0

  Fragment:input          0                output            0

           dropped        0

           fragmented     0                couldn't fragment 0

  Reassembling:sum        0                timeouts          0

 

1.1.13  display tcp statistics

Syntax

display tcp statistics

View

Any view

Parameter

None

Description

Use the display tcp statistics command to display TCP traffic statistics.

This command displays traffic statistics of all current TCP connections. Statistics is composed of two parts: the sending part and the receiving part. Each part can be divided into different types of packets, such as repeatedly received packets, checking packets, error packets and so on. The command can also display statistics closely related to the connection, such as the number of connection received, number of packets retransferred, number of keepalive probe packets and so on. Most of them are counted in packets; a few of them are in bytes.

Related command: display tcp status.

Example

# Display TCP traffic statistics.

<XE> display tcp statistics

Received packets:

Total: 0

packets in sequence: 0 (0 bytes)

window probe packets: 0, window update packets: 0

checksum error : 0, bad offset : 0, too short : 0

duplicate packets : 0 (0 bytes),  partially duplicate packets : 0(0 bytes)

out-of-order packets : 0 (0 bytes)

packets with data after window : 0 (0 bytes)

packets after close : 0

ack packets:0 (0 bytes), duplicate ack packets:0, ack packets with unsend data:0

Sent packets:

Total: 0

urgent packets: 0

control packets: 0 ( 0 RST)

window probe packets: 0, window update packets: 0

data packets : 0 (0 bytes), data packets retransmitted: 0 (0 bytes)

ack only packets : 0(0 delayed)

Total  retransmit timeout: 0, connections dropped in retransmit timeout: 0

Keepalive timeout: 0, keepalive probe: 0, dropped connections in keepalive: 0

Initiated connections: 0,  accepted connections: 0,established connections: 0

Closed connections: 0,( dropped: 0, embryonic dropped: 0)

Dropped packets with MD5 authentication : 0

Permitted packets with MD5 authentication : 0

1.1.14  display tcp status

Syntax

display tcp status

View

Any view

Parameter

None

Description

Use the display tcp status command to display the TCP connection status, through which you can monitor a TCP connection at any time.

Related command: display local-user.

Example

# Display the TCP connection status.

[XE-ps] display tcp status

TCPCB     Local Add:port         Foreign Add:port       State

23a4ae04  192.168.80.50:2452     192.168.80.50:13579    Established

2399de44  192.168.80.50:13579    0.0.0.0:0              Listening

23a47404  192.168.80.50:13579    192.168.80.50:2451     Time_Wait

The output indicates that one TCP connection is set up, where the TCP control block number is 23a4ae04, the local IP address is 192.168.80.50, the local port is 2452, the remote IP address is 192.168.80.50, and the remote port is 13579.

1.1.15  display udp statistics

Syntax

display udp statistics

View

Any view

Parameter

None

Description

Use the display udp statistics command to display UDP traffic statistics.

This command displays traffic statistics of all current UDP connections. Statistics is composed of two parts: the sending part and the receiving part. Each part can be divided into different types of packets, such as checking packets, error packets, and so on. The command can also display statistics information closely related to the connection, such as the number of broadcast packets and so on. The information is counted in packets.

Related command: reset udp statistics.

Example

# Display UDP traffic statistics.

<XE> display udp statistics

Received packet:

Total:0

checksum error:0

shorter than header:0, data length larger than packet:0

no socket on port:0

broadcast:0

not delivered, input socket full:0

input packets missing pcb cache:0

Sent packet:

Total:0

1.1.16  mtu

Syntax

mtu mtu-size

undo mtu

View

Interface view

Parameter

mtu-size: The maximum transmission unit (MTU) size of packets an interface can transmit without the need to fragment, ranging from 46 to 1500 bytes.

Description

Use the mtu command to set the MTU size of packets an interface can transmit.

Use the undo mtu command to remove the MTU setting of an interface.

By default, the MTU size is 1500 bytes.

Example

# Set an MTU to 800.

[XE-Ethernet1/0] mtu 800

# Restore to the default MTU value.

[XE-Ethernet1/0] undo mtu

1.1.17  reset ip statistics

Syntax

reset ip statistics

View

User view

Parameter

None

Description

Use the reset ip statistics command to clear IP statistics. It is necessary to clear IP statistics to perform a new calculating in some special cases.

Related command: display ip interface, display ip statistics.

Example

# Clear IP statistics.

<XE> reset ip statistics

1.1.18  reset tcp statistics

Syntax

reset tcp statistics

View

User view

Parameter

None

Description

Use the reset tcp statistics command to clear TCP traffic statistics. The system displays nothing upon executing the command.

Related command: display tcp statistics.

Example

# Clear TCP traffic statistics.

<XE> reset tcp statistics

1.1.19  reset udp statistics

Syntax

reset udp statistics

View

User view

Parameter

None

Description

Use the reset udp statistics command to clear UDP traffic statistics. The system displays nothing upon executing the command.

Example

# Clear UDP traffic statistics.

<XE> reset udp statistics

1.1.20  tcp mss

Syntax

tcp mss value

undo tcp mss

View

Interface view

Parameter

value: The maximum size of a TCP packet fragment, in the range from 128 to 2048.

Description

Use the tcp mss command to configure TCP packet fragmentation.

Use the undo tcp mss to remove TCP packet fragmentation.

Because the default MTU size is 1500 bytes, the sum of the encrypted packet header, overhead of link layer, IP header and the TCP packet should be less than 1500 bytes, so it is ideal to set the TCP packet fragment to 1200.

By default, TCP packets are not fragmented.

Example

# Set the maximum size of a TCP packet fragment to 300.

[XE-Ethernet1/0] tcp mss 300

1.1.21  tcp timer fin-timeout

Syntax

tcp timer fin-timeout time-value

undo tcp timer fin-timeout

View

System view

Parameter

time-value: The value of TCP finwait timer, in seconds, in the range from 76 to 3600.

Description

Use the tcp timer fin-timeout command to set the TCP finwait timer.

Use the undo tcp timer fin-timeout command to restore the TCP finwait timer to its default value.

By default, the TCP finwait timer is set to 675 seconds.

When the TCP connection status changes from FIN_WAIT_1 to FIN_WAIT_2, the finwait timer is started. If no FIN packet is received before finwait timer times out, the TCP connection will be terminated.

It is recommended that you configure this parameter under the guidance of technicians.

Related command: tcp timer syn-timeout, tcp window.

Example

# Set the value of the Tcp finwait timer to 600.

[XE] tcp timer fin-timeout 600

1.1.22  tcp timer syn-timeout

Syntax

tcp timer syn-timeout time-value

undo tcp timer syn-timeout

View

System view

Parameter

time-value: The value of the TCP synwait timer, in seconds, in the range from 2 to 600.

Description

Use the tcp timer syn-timeout command to set the TCP synwait timer.

Use the undo tcp timer syn-timeout command to restore the TCP synwait timer to its default value.

By default, the TCP synwait timer is set to 75 seconds.

When sending syn packets, the synwait timer is started. If no response packet is received before synwait times out, the TCP connection will be terminated.

It is recommended that you configure this parameter under the guidance of technicians.

Related command: tcp timer fin-timeout, tcp window.

Example

# Set the value of the TCP synwait timer to 70.

[XE] tcp timer syn-timeout 70

1.1.23  tcp window

Syntax

tcp window window-size

undo tcp window

View

System view

Parameter

window-size: The size of the receive/send buffer of a connection oriented socket, in kilobytes, in the range from 1 to 32,.

Description

Use the tcp window command to set the size of the receive/send buffer of a connection oriented socket.

Use the undo tcp window command to restore the size of socket receive/send buffer to its default value.

By default, the receive/send buffer size of a connection-oriented socket is 8 KB.

It is recommended that you configure this parameter under the guidance of technicians.

Related command: tcp timer fin-timeout, tcp timer syn-timeout.

Example

# Set the receive/send buffer size of a connection oriented socket to 4 KB.

[XE] tcp window 4


Chapter 2  IP Application Configuration Commands

2.1  IP Application Configuration Commands

2.1.1  arp static

Syntax

arp static ip-address mac-address

undo arp ip-address

View

System view

Parameter

ip-address: IP address of the ARP mapping entry, in dotted decimal notation.

mac-address: Ethernet MAC address of ARP mapping entry. Its format is H-H-H, where H is a hexadecimal number in the range of 1 digit to 4 digits.

Description

Use the arp static command to configure the ARP mapping table.

Use the undo arp command to delete the mapping entry corresponding to an address in the ARP mapping table.

By default, the ARP mapping table of the system is empty and the address mapping can be obtained through dynamic ARP.

Normally, ARP mapping table is maintained by dynamic ARP protocol, and manual configuration is needed in some special cases. Besides, ARP mapping table is used for LAN only.

Related command: reset arp, display arp.

Example

# Configure the Ethernet MAC address corresponding to the IP address 129.102.0.1 to e0-fc01-0.

[XE] arp static 129.102.0.1 e0-fc01-0

# Configure the Ethernet MAC address corresponding to the IP address 11.0.0.1 to aa-fcc-12.

[XE] arp static 11.0.0.1 aa-fcc-12

2.1.2  debugging arp packet

Syntax

debugging arp packet

undo debugging arp packet

View

User view

Parameter

None

Description

Use the debugging arp packet command to enable ARP packets debugging.

Use the undo debugging arp packet command to disable ARP packets debugging.

Example

# Enable ARP packets debugging.

<XE> debugging arp packet

2.1.3  display arp

Syntax

display arp [ static | dynamic | all | | { begin text | exclude text | include text } ]

View

Any view

Parameter

static: Indicates to display the static ARP entries.

dynamic: Indicates to display the dynamic ARP entries.

all: Indicates to display all the ARP entries.

|: Indicates to display the entries that match the string text.

begin: Indicates to display the entries that start with the string text.

exclude: Indicates to display the entries that do not contain the string text.

include: Indicates to display the entries that contain the string text.

text: Regular expression.

Description

Use the display arp command to display the ARP mapping table.

By default, all ARP entries are displayed.

Related command: arp static, reset arp.

Example

# Display all the ARP entries.

<XE> display arp

            Type: S-Static   D-Dynamic

IP Address      MAC Address    Type             Interface

192.168.80.30   00e0-fc20-2180 D                GE0/0

192.168.80.100  00b0-d0bc-f323 D                GE0/0

There are two mapping entries in the example above. Take the first entry as an example. It displays the IP address 192.168.80.30 and MAC address 00e0-fc20-2180, which is acquired through configuring static ARP.

2.1.4  display ip interface

Syntax

display ip interface  interface-type interface-number

View

Any view

Parameter

interface-type: Interface type.

interface-number: Interface number.

Description

Use the display ip interface command to display the current health of all interfaces.

Example

# Display the health of the interface Ethernet1/0.

<XE> display ip interface Ethernet1/0

Ethernet1/0 current state : UP

Line protocol current state : UP

Internet Address : 5.5.5.5/8

Broadcast address : 0.0.0.0

The Maximum Transmit Unit : 1500 bytes

input packets : 1231, bytes : 57557, multicasts : 1177

output packets : 0, bytes : 0, multicasts : 0

2.1.5  ip host

Syntax

ip host hostname ip-address

undo ip host hostname [ ip-address ]

View

System view

Parameter

hostname: Name of a host, a character string in the range from 1 to 20.

ip-address: IP address corresponding to the host name, can be class A,B,C or D.

Description

Use the ip host command to configure the entries of the static domain name resolution table, that is, the host names and their corresponding IP addresses.

Use the undo ip host command to remove the mapping between a host name and an IP address.

Each hostname can have only one corresponding IP address.

The hostname can be comprised of lower and upper letters a to z and A to Z, number 0 to 9, hyphen (-) and dot (.). Note that at least an English letter should be in the hostname.

By default, the static domain name table is empty, that is, there is no host name corresponding to any IP address.

Example

# Configure the IP address corresponding to the host name router1 to 10.110.0.1.

[XE] ip host router1 10.110.0.1

# Configure the IP address corresponding to the host name router2 to 10.110.0.2.

[XE] ip host router2 10.110.0.2

# Configure the IP address corresponding to the host name router3 to 10.110.0.3.

[XE] ip host router3 10.110.0.3

# Remove the mapping between the host name router2 and the IP address 10.110.0.2.

[XE] undo ip host router2 10.110.0.2

2.1.6  reset arp

Syntax

reset arp [ all | dynamic | static | interface interface-type interface-number]

View

User view

Parameter

static: Indicates to clear the static ARP entries.

dynamic: Indicates to clear the dynamic ARP entries.

all: Indicates to clear all the ARP entries.

interface: Indicates the selected interface.

interface-type: Interface type.

interface-number: Interface number.

Description

Use the reset arp command to clear the ARP entries in the ARP mapping table.

By default, if slot-number is not specified, all ARP entries are cleared.

When the operation is performed on the interface with specified interface, the interface type can only be Ethernet or virtual Ethernet, and only the dynamic entries of the interface can be deleted.

Related command: arp static, display arp.

Example

# Delete the dynamic entries in the ARP mapping table of the interface Ethernet1/0.

<XE> reset arp interface Ethernet1/0

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.