06-IP Address-IP Performance-IPX Command

Download

Table of Contents

Chapter 1 IP Address Configuration Commands. 1-1

1.1 IP Address Configuration Commands. 1-1

1.1.1 display ip interface. 1-1

1.1.2 ip address. 1-3

Chapter 2 IP Performance Configuration Commands. 2-1

2.1 IP Performance Configuration Commands. 2-1

2.1.1 display fib. 2-1

2.1.2 display icmp statistics. 2-3

2.1.3 display ip socket 2-4

2.1.4 display ip statistics. 2-6

2.1.5 display tcp statistics. 2-7

2.1.6 display tcp status. 2-10

2.1.7 display udp statistics. 2-11

2.1.8 ip. 2-12

2.1.9 ip forward-broadcast 2-13

2.1.10 reset ip statistics. 2-13

2.1.11 reset tcp statistics. 2-14

2.1.12 reset udp statistics. 2-14

2.1.13 tcp timer fin-timeout 2-15

2.1.14 tcp timer syn-timeout 2-15

2.1.15 tcp window. 2-16

Chapter 3 IPX Configuration Commands. 3-1

3.1 IPX Configuration Commands. 3-1

3.1.1 display ipx interface. 3-1

3.1.2 display ipx routing-table. 3-3

3.1.3 display ipx service-table. 3-5

3.1.4 display ipx statistics. 3-7

3.1.5 ipx enable. 3-9

3.1.6 ipx encapsulation. 3-10

3.1.7 ipx netbios-propagation. 3-10

3.1.8 ipx network. 3-11

3.1.9 ipx rip import-route static. 3-12

3.1.10 ipx rip mtu. 3-12

3.1.11 ipx rip multiplier 3-13

3.1.12 ipx rip timer update. 3-14

3.1.13 ipx route load-balance-path. 3-14

3.1.14 ipx route max-reserve-path. 3-15

3.1.15 ipx route-static. 3-16

3.1.16 ipx sap disable. 3-17

3.1.17 ipx sap gns-disable-reply. 3-17

3.1.18 ipx sap gns-load-balance. 3-18

3.1.19 ipx sap max-reserve-servers. 3-19

3.1.20 ipx sap mtu. 3-19

3.1.21 ipx sap multiplier 3-20

3.1.22 ipx sap timer update. 3-21

3.1.23 ipx service. 3-21

3.1.24 ipx split-horizon. 3-23

3.1.25 ipx tick. 3-23

3.1.26 ipx update-change-only. 3-24

3.1.27 reset ipx routing-table statistics protocol 3-24

3.1.28 reset ipx statistics. 3-25

 


Chapter 1  IP Address Configuration Commands

1.1  IP Address Configuration Commands

1.1.1  display ip interface

Syntax

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

View

Any view

Parameter

interface-type interface-number: interface-type indicates a port type and interface-number indicates a port number. For details, refer to the description of the interface command in Port Basic Configuration Command Manual.

brief: Displays the basic interface configuration information.

Description

Use the display ip interface command to display information about one specific or all interfaces.

Example

# Display information about VLAN interface 1.

<H3C> display ip interface Vlan-interface 1

Vlan-interface1 current state :UP

Line protocol current state :UP

Internet Address is 192.168.0.39/24 Primary

Broadcast address : 192.168.0.255

The Maximum Transmit Unit : 1500 bytes

IP packets input number: 9678, bytes: 475001, multicasts: 7

IP packets output number: 8622, bytes: 391084, multicasts: 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 Description on the fields of the display ip interface command

Field

Description

Vlan-interface1 current state

Current state of VLAN interface 1

Line protocol current state

Current state of the Line protocol

Internet Address

IP address

Broadcast address

Broadcast address

The Maximum Transmit Unit

Max transmit unit

IP packets input number: 9678, bytes: 475001, multicasts: 7

IP packets output number: 8622, bytes: 391084, multicasts: 0

Number of input/output unicast packets, bytes, and multicast packets

TTL invalid packet number

Number of received invalid TTL packets

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

Total number of received ICMP packets, including:

Echo reply packet, unreachable packet, source quench packet, routing redirect packet, Echo request packet, router advert packet, router solicit packet, time exceed packet, IP header bad packet, timestamp request packet, timestamp  reply packet, information request packet, information reply packet, netmask request packet, netmask reply packet, and unknown types of packets.

 

1.1.2  ip address

Syntax

ip address ip-address { mask | mask-length } [ sub ]

undo ip address [ ip-address { mask | mask-length } [ sub ] ]

View

VLAN interface view, loopback interface view

Parameter

ip-address: IP address, in dotted decimal notation.

mask: Subnet mask, in dotted decimal notation.

mask-length: Length of a subnet mask.

sub: Secondary IP address of a VLAN or loopback interface.

Description

Use the ip address command to specify an IP address and mask for a VLAN or loopback interface.

Use the undo ip address command to remove an IP address and mask of a VLAN or loopback interface.

By default, a VLAN or loopback interface has no IP address.

Generally, it is enough to configure one IP address for a VLAN/LoopBack interface. However, you can configure up to eight IP addresses for a VLAN/LoopBack interface so that it can be connected to several subnets. Among these IP addresses, one is the primary IP address and all the others are secondary ones. The relationship between the primary address and the secondary addresses is as follows:

l           When you configure a primary IP address for an interface which already has a primary IP address, the new address will replace the old one.

l           If you execute the undo ip address command without any parameter, the switch deletes both primary and secondary IP addresses of the interface. The undo ip address ip-address { mask | mask-length } command is used to delete the primary IP address. The undo ip address ip-address { mask | mask-length } sub command is used to delete secondary IP addresses.

Related command: display ip interface.

Example

# Specify the IP address and subnet mask of VLAN interface 1 as 129.12.0.1 and 255.255.255.0 respectively.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Vlan-interface 1

[H3C-Vlan-interface1] ip address 129.12.0.1 255.255.255.0

 


Chapter 2  IP Performance Configuration Commands

2.1  IP Performance Configuration Commands

2.1.1  display fib

Syntax

display fib fib-rule

View

Any view

Parameter

fib-rule: Specifies FIB entries that conform to specific rules. It can be a combination of multiple rules. The following table describes the combinations.

Table 2-1 Display combination of specified FIB entries

Description

Form of fib-rule

Display FIB entries of the specified slot

slot-number

Display FIB entries matching the specified destination IP address/mask pair and all the FIB entries matching the specified IP address/mask (in the natural mask range) pair

ip-address1 [ { mask1 | mask-length1 } [ ip-address2 { mask2 | mask-length2 } | longer ] | longer ]

Display FIB statistics

statistics

Display the FIB entries that are output from the buffer according to the regular expression and are related to the specific character string

| { begin | exclude | include } text

Display the FIB entries matching a specific ACL

acl { number | name }

Display the FIB entries matching the specific prefix list

ip-prefix listname

 

Description

Use the display fib command to view the entries of the forwarding information base (FIB). Each line indicates an FIB entry. The information includes: destination address/mask length, next hop, current flag, timestamp, and output interface. For the ACL configuration, refer to the ACL module of this manual.

Example

# View all FIB entries.

<H3C> display fib

Destination/Mask   Nexthop         Flag TimeStamp     Interface

211.71.75.0/24     1.1.1.2         GSU  t[250763]     Vlan-interface2

1.1.2.1/32         127.0.0.1       GHU  t[37]         InLoopBack0

127.0.0.1/32       127.0.0.1       GHU  t[37]         InLoopBack0

127.0.0.0/8        127.0.0.1       U    t[37]         InLoopBack0

1.1.1.1/32         127.0.0.1       GHU  t[37]         InLoopBack0

1.1.1.0/24         1.1.1.1         U     t[37]          Vlan-interface2

Table 2-2 Description on the fields of the display fib command

Field

Description

Destination/Mask

Destination address/mask length

Nexthop

Next hop address

Flag

Flags:

U: A route is up and available.

G: Gateway route

H: Local host route

B: Blackhole route

D: Dynamic route

S: Static route

R: Rejected route

E: Multi-path equal-cost route

L: Route generated by ARP or ESIS

TimeStamp

Timestamp

Interface

Forwarding interface

 

# View ACL 2001.

<H3C> display acl config 2001

Basic ACL  2001, 1 rule

rule 0 permit source 211.71.75.0 0.0.0.255 (0 times matched)

# View the FIB entries that pass the filtering by ACL 2001.

<H3C> display fib acl 2001

Route Entry matched by access-list 2001

  Summary Counts :1

Destination/Mask   Nexthop         Flag TimeStamp     Interface

211.71.75.0/24     1.1.1.2         GSU  t[250763]     Vlan-interface2

# View all the lines from the line containing the string 1.1.1.1.

<H3C> display fib | begin 1.1.1.1

1.1.1.1/32         127.0.0.1       GHU  t[37]         InLoopBack0

1.1.1.0/24         1.1.1.1         U    t[37]         Vlan-interface2

# View the total number of FIB entries.

<H3C> display fib statistics

Route Entry Count : 30

2.1.2  display icmp statistics

Syntax

display icmp statistics

View

Any view

Parameter

None

Description

Use the display icmp statistics command to view the statistics about ICMP packets.

Related commands: display ip interface and reset ip statistics.

Example

# View the statistics about ICMP packets.

<H3C> display icmp statistics

  Input: bad formats   0                   bad checksum            0

          echo          5                   destination unreachable 0

          source quench 0                   redirects               0

          echo reply    10                  parameter problem       0

          timestamp     0                   information request     0

          mask requests 0                   mask replies            0

          time exceeded 0

  Output:echo          10                  destination unreachable 0

          source quench 0                   redirects               0

          echo reply    5                   parameter problem       0

          timestamp     0                   information reply     0

          mask requests 0                   mask replies            0

          time exceeded 0

Table 2-3 Description on the fields of the display icmp statistics command

Field

Description

bad formats

Number of input packets in bad formats

bad checksum

Number of input packets with bad checksum

echo

Number of input/output echo request packets

destination unreachable

Number of input/output packets with unreachable destination

source quench

Number of input/output source quench packets

redirects

Number of input/output redirected packets

echo reply

Number of input/output echo reply packets

parameter problem

Number of input/output packets with parameter problem

timestamp

Number of input/output timestamp packets

information request

Number of input information request packets

mask requests

Number of input/output mask request packets

mask replies

Number of input/output mask reply packets

information reply

Number of output information reply packets

time exceeded

Number of time-exceeded packets

 

2.1.3  display ip socket

Syntax

display ip socket [ socktype sock-type ] [ task-id socket-id ]

View

Any view

Parameter

sock-type: Type of a socket, ranging from 1 to 3. These values correspond to SOCK_STREAM (TCP socket), SOCK_DGRAM (UDP socket or socket based on the link layer), and SOCK_RAW (RAW IP socket).

task-id: ID of a task, with the value ranging from 1 to 100.

socket-id: ID of a socket, with the value ranging from 0 to 3,072.

Description

Use the display ip socket command to display the information of the current socket.

Example

# Display the information about the socket of the TCP type.

<H3C> display ip socket socktype 1

SOCK_STREAM:

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

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

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_SENDVPNID SO_SETKEEPALIVE,

socket state = SS_PRIV SS_ASYNC

 

Task = VTYD(18), socketid = 2, Proto = 6,

LA = 10.153.17.99:23, FA = 10.153.17.56:1161,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE,

socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC

 

Task = VTYD(18), socketid = 3, Proto = 6,

LA = 10.153.17.99:23, FA = 10.153.17.82:1121,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE,

socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC

Table 2-4 Description on the fields of the display ip socket command

Field

Description

SOCK_STREAM

Type of a socket. Three types are available: SOCK_STREAM (TCP socket), SOCK_DGRAM (UDP socket or socket supporting link layer access), and SOCK_RAW (RAW IP socket).

Task

Task ID

socketid

Socket ID

Proto

Protocol number used by the socket

sndbuf

Sending buffer size of the socket

rcvbuf

Receiving buffer size of the socket

sb_cc

Current data size in the sending buffer. The value makes sense only for the socket of TCP type, because only TCP is able to cache data.

rb_cc

Current data size in the receiving buffer

socket option

Option of a socket

socket state

State of a socket

 

2.1.4  display ip statistics

Syntax

display ip statistics

View

Any view

Parameter

None

Description

Use the display ip statistics command to view the statistics about IP packets.

Related commands: display ip interface and reset ip statistics.

Example

# View the statistics about IP packets.

<H3C> 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

Table 2-5 Description on the fields of the display ip statistics command

Field

Description

Input:

sum

Sum of input packets

Local

Number of received packets whose destination address is the local device

bad protocol

Number of packets with wrong protocol number

bad format

Number of packets in bad format

bad checksum

Number of packets with bad checksum

bad options

Number of packets with wrong options

Output:

forwarding

Number of forwarded packets

local

Number of packets sent by the local device

dropped

Number of dropped packets during transmission

no route

Number of packets that cannot be routed

compress fails

Number of packets that cannot be compressed

Fragment:

input

Number of input fragments

output

Number of output fragments

dropped

Number of dropped fragments

fragmented

Number of packets that are fragmented

couldn't fragment

Number of packets that cannot be fragmented

Reassembling:

sum

Number of reassembled packets

timeouts

Number of timeout fragment packets

 

2.1.5  display tcp statistics

Syntax

display tcp statistics

View

Any view

Parameter

None

Description

Use the display tcp statistics command to view the statistics about TCP packets.

Related commands: display tcp status and reset tcp statistics.

Example

# View the statistics about TCP packets.

<H3C> display tcp statistics

Received packets:

Total: 753

packets in sequence: 412 (11032 bytes)

window probe packets: 0, window update packets: 0

checksum error: 0, offset error: 0, short error: 0

duplicate packets: 4 (88 bytes), partially duplicate packets: 5 (7 bytes)

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

packets of data out of window: 0 (0 bytes)

packets received after close: 0

ACK packets: 481 (8776 bytes)

duplicate ACK packets: 7, too much ACK packets: 0

 

Sent packets:

Total: 665

urgent packets: 0

control packets: 5 (including 1 RST)

window probe packets: 0, window update packets: 2

data packets: 618 (8770 bytes) data packets retransmitted: 0 (0 bytes)

ACK-only packets: 40 (28 delayed)

 

Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0

Keepalive timeout: 0, keepalive probe: 0, Keepalive timeout, so connections disconnected : 0

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

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

Packets dropped with MD5 authentication: 0

Packets permitted with MD5 authentication: 0

Table 2-6 Description on the fields of the display tcp statistics command

Field

Description

Received packets

Total

Total number of received packets

packets in sequence

Number of packets in sequence

window probe packets/ window update packets

Number of window probe packets/number of window update packets

checksum error/ offset error/ short error

Number of checksum errors/number of offset errors/number of short errors

duplicate packets/ partially duplicate packets

Number of duplicate packets/number of partially duplicate packets

out-of-order packets

Number of out-of-order packets

packets of data out of window

Number of packets out of window

packets received after close

Number of received packets after close

ACK packets

Number of ACK packets

duplicate ACK packets/ too much ACK packets

Number of duplicate ACK packets/number of ACK packets for data not sent.

Sent packets

Total

Total number of sent packets

urgent packets

Number of urgent packets

control packets (including 1 RST)

Number of control packets, including one retransmitted packet

window probe packets/ window update packets

Number of window probe packets/number of window update packets

data packets/ data packets retransmitted

Number of data packets/number of retransmitted packets

ACK-only packets

Number of ACK packets (28 delay ACK packets)

Retransmitted timeout/ connections dropped in retransmitted timeout

Times of retransmission timer timeout/number of dropped connections because retransmission times exceed the limit

Keepalive timeout/ keepalive probe/ Keepalive timeout, so connections disconnected

Times of keepalive timer timeout/number of transmitted keepalive probe packets/number of dropped connections due to keepalive probe failure

Initiated connections/ accepted connections/ established connections

Number of initiated connections/number of accepted connections/number of established connections

Closed connections (dropped:\ initiated dropped: )

Number of closed connections (number of dropped connections\number of failed connection attempts)

Packets dropped with MD5 authentication

Number of dropped packets with MD5 authentication

Packets permitted with MD5 authentication

Number of permitted packets with MD5 authentication

 

2.1.6  display tcp status

Syntax

display tcp status

View

Any view

Parameter

None

Description

Use the display tcp status command to view the state of all TCP connections so that you can monitor TCP connections in real time.

Example

# View the state of all TCP connections.

<H3C> display tcp status

TCPCB        Local Add:port      Foreign Add:port        State

03e37dc4     0.0.0.0:4001            0.0.0.0:0           Listening

04217174     100.0.0.204:23      100.0.0.253:65508   Established

Table 2-7 Description on the fields of the display tcp status command

Field

Description

TCPCB

Address of the TCP control block

Local Add:port

Local IP address; port number

Foreign Add:port

Remote IP address; port number

State

TCP connection state

 

2.1.7  display udp statistics

Syntax

display udp statistics

View

Any view

Parameter

None

Description

Use the display udp statistics command to view the statistics about UDP packets.

Related command: reset udp statistics.

Example

# View the statistics about UDP packets.

<H3C>display udp statistics

Received packets:

     Total: 26320

     checksum error: 0

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

     no socket on port: 0

     total broadcast or multicast packets : 25006

     no socket broadcast or multicast packets: 24989

     not delivered, input socket full: 0

     input packets missing pcb cache: 1314

Sent packets:

     Total: 7187

Table 2-8 Description on the fields of the display udp statistics command

Field

Description

Received packets:

Total

Total number of received UDP packets

checksum error

Number of packets with checksum errors

shorter than header,

Number of packets that are shorter than their headers