02-IP Services Volume

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Series Ethernet Switches Command Manual(Release 6300 series V1.03)02-IP Services Volume
01-IP Addressing Commands
Title Size Download
01-IP Addressing Commands 35.41 KB

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.

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 1.1.1.1/8 Primary

Broadcast address : 1.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

DHCP packet deal mode:  global

Table 1-1 display ip interface command output description

Field

Description

current state

Current physical state of an interface

Line protocol current state

Current state of the network layer protocol

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

input packets : 0, bytes : 0, multicasts : 0

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

Unicast packets, bytes, and multicast packets received on an interface

Unicast packets, bytes, and multicast packets sent on an interface

ARP packet input number:           0

  Request packet:                  0

  Reply packet:                    0

  Unknown packet:                  0

Total number of ARP packets received on an interface, including

l      ARP request packets

l      ARP reply packets

l      Unknown packets

TTL invalid packet number

Number of TTL-invalid packets received on an interface

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 ICMP packets received on an interface, 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

DHCP packet deal mode

DHCP packet processing mode. This field appears on a DHCP-supported device and can be one of the following values:

l      global: The DHCP server with the global address pool is enabled on the interface.

l      relay: The DHCP relay agent is enabled on the interface.

 

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.

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 the 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.

up: Indicates that both the administrative and physical states of the interface are up.

Protocol

Link layer protocol state of the 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. Currently, up to seven secondary IP addresses are supported on an 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 from the interface.

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 cannot assign a secondary IP address to the interface that is configured to obtain an IP address through DHCP.

Related commands: display ip interface.

Examples

# Assign VLAN-interface 1 a primary IP address 129.12.0.1 and a secondary IP address 202.38.160.1, 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

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网