Syntax
description text
undo description
View
VLAN view, VLAN interface view
Parameter
text: Description
string to be assigned to the current VLAN or current VLAN interface.
l
The description string of a VLAN comprises 1 to
32 characters and defaults to the ID of the VLAN (for example, VLAN 0001).
l
The description string of a VLAN interface comprises
1 to 80 characters and defaults to the name of the VLAN interface (for example,
Vlan-interface1 Interface).
Description
Use the description command to assign
a description string to a VLAN or a VLAN interface.
Use the undo description command to
restore the default description string.
Related command: display vlan, display
interface Vlan-interface.
Example
# Configure VLAN 2 to be the management
VLAN and specify the description string of the VLAN 2 interface to be RESEARCH.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] vlan 2
[H3C-vlan2] quit
[H3C] management-vlan 2
[H3C] interface Vlan-interface 2
[H3C-Vlan-interface2] description
RESEARCH
Syntax
display interface
Vlan-interface [ vlan-id ]
View
Any view
Parameter
vlan-id: ID of
the management VLAN interface the information about which is to be displayed.
Description
Use the display interface Vlan-interface
command to display the information about the management VLAN interface,
including the physical and link status, the format of the sent frames, the MAC
address, IP address (and subnet mask), description string and MTU (maximum
transmit unit) of the management VLAN.
Related command: interface Vlan-interface.
Example
# Display the information
about the management VLAN interface. (Assume that VLAN 1 is the management
VLAN.)
<H3C> display interface Vlan-interface
1
Vlan-interface1 current state : DOWN
Line protocol current state : DOWN
IP Sending Frames' Format is
PKTFMT_ETHNT_2, Hardware address is 000f-e20f-4101
Internet Address is 192.168.0.39/24
Primary
Description : Vlan-interface1
Interface
The Maximum Transmit Unit is 1500
Table 1-1
Description on the fields of the display
interface Vlan-interface command
|
Field
|
Description
|
|
Vlan-interface current state
|
Current state of Vlan-interface1
|
|
Line protocol current state
|
Current state of the line protocol
|
|
IP Sending Frames' Format
|
Format of the sent IP packets
|
|
Hardware address
|
MAC address corresponding to the
management VLAN interface
|
|
Internet Address Primary
|
Primary IP address
|
|
Description
|
Description string assigned to the VLAN
interface
|
|
The Maximum Transmit Unit
|
The maximum transmit unit (MTU)
|
1.1.3 display
ip interface Vlan-interface
Syntax
display ip interface [ brief [ Vlan-interface [ vlan-id ] ] | [ Vlan-interface
vlan-id ] ]
View
Any view
Parameter
vlan-id:
ID of the management VLAN interface, in the range of 1 to 4094.
brief:
Displays the configuration of a specified VLAN interface in brief.
Description
Use the display ip interface Vlan-interface
command to display the information about a specified VLAN interface.
Example
# Display the information
about Vlan-interface1.
<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: 7420, bytes:
557679, multicasts: 1
IP packets output number: 7509,
bytes: 385809, 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-2
Description on the fields of the display ip
interface command
|
Field
|
Description
|
|
Vlan-interface1 current state
|
Current state of Vlan-interface1
|
|
Line protocol current state
|
Current state of the line protocol
|
|
Internet Address
|
IP address
|
|
Broadcast address
|
Broadcast address
|
|
The Maximum Transmit Unit
|
The maximum transmit unit (MTU)
|
|
IP input packets : 0, bytes : 0,
multicasts : 0
IP output packets : 0, bytes : 0,
multicasts : 0
|
The number of input/output unicast
packets, the corresponding bytes, and the number of multicast packets are all
0.
|
|
TTL invalid packet number
|
Number of received packets with TTL
errors
|
|
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
|
The statistics on different types of ICMP
packets received, including:
l
Echo reply packets
l
Unreachable packets
l
Source quench packets
l
Routing redirect packets
l
Echo request packets
l
Router advert packets
l
Router solicit packets
l
Time exceed 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
|
Syntax
display ip routing-table
View
Any view
Parameter
None
Description
Use the display ip routing-table
command to display the summary information about the routing table.
This command displays the summary information
about a routing table, with the items of a routing entry contained in one line.
The information displayed includes destination IP address/mask length,
protocol, preference, cost, next hop and outbound interface.
The display ip routing-table command
only displays the routes currently in use, that is, the optimal routes.
Example
# Display the summary information about the
routing table.
<H3C> display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0. InLoopBack0
192.168.0.0/24 DIRECT 0 0 192.168.0.91 Vlan-interface1
192.168.0.91/32 DIRECT 0 0 127.0.0.1 InLoopBack0
Table 1-3 Description on the fields of
the display ip routing-table command
|
Field
|
Description
|
|
Destination/Mask
|
Destination IP address/mask length
|
|
Protocol
|
Routing protocol that discovers the route
|
|
Pre
|
Route preference
|
|
Cost
|
Route cost
|
|
Nexthop
|
Next hop IP address of the route
|
|
Interface
|
Outbound interface, through which packets
destined for the destination network segment are to be transmitted
|
Syntax
display ip routing-table ip-address [ mask ] [ longer-match ] [ verbose
]
View
Any view
Parameter
ip-address:
Destination IP address, in dotted decimal notation.
mask: Mask
of the destination IP address, which can be in dotted decimal notation or be an
integer ranging from 0 to 32.
longer-match:
Displays all the routes leading to the destination coupled with the default
mask.
verbose: Displays
the detailed information about the active and inactive routes leading to the
destination. If this keyword is not specified, only the summary information about
the active routes is displayed.
Description
Use the display ip routing-table ip-address
command to display the information about the routes leading to a specified destination.
The output information of this command differs
with the arguments/keywords specified as follows:
l
display ip routing-table ip-address
For the destination address ip-address,
if there are some routes matched within the natural mask range, all the subnet
routes are displayed. Otherwise, only the active routes which best match ip-address
are displayed.
l
display ip routing-table ip-address mask
Only the routes which match exactly the
specified destination address and mask are displayed.
l
display ip routing-table ip-address longer-match
All routes with their destination addresses
matched within the natural mask range are displayed.
l
display ip routing-table ip-address mask longer-match
All routes with their destination addresses
matched within the specified mask range are displayed.
Example
# Display the summary information of the routes
with their destination addresses matched within the natural mask range.
<H3C> display ip routing-table
169.0.0.0
Destination/Mask Protocol Pre Cost
Nexthop Interface
169.0.0.0/16 Static 60 0 2.1.1.1 LoopBack1
Refer to Table 1-3for the description on the output fields.
# Display the summary information about the
routes that best match the specified IP address (assuming that no route in the
natural subnet mask range matches the specified IP address).
<H3C> display ip routing-table
169.253.0.0
Destination/Mask Protocol Pre Cost
Nexthop Interface
169.0.0.0/8 Static 60 0 2.1.1.1 LoopBack1
# Display the detailed information of the
routes with their destination addresses matched within the natural mask range.
<H3C> display ip routing-table
169.0.0.0 verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, #
= Both * = Next hop in use
Summary count:2
**Destination: 169.0.0.0 Mask:
255.0.0.0
Protocol: #Static Preference:
60
*NextHop: 2.1.1.1 Interface:
2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Cost: 0/0 Tag: 0
**Destination: 169.0.0.0 Mask:
255.254.0.0
Protocol: #Static Preference:
60
*NextHop: 2.1.1.1 Interface:
2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Cost: 0/0 Tag: 0
# Display the detailed information of the
routes that best match the specified IP address (assuming that no route in the
natural subnet mask range matches the specified IP address).
<H3C> display ip routing-table
169.253.0.0 verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, #
= Both * = Next hop in use
Summary count:1
**Destination: 169.0.0.0 Mask:
255.0.0.0
Protocol: #Static Preference:
-60
*NextHop: 2.1.1.1
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Cost: 0/0 Tag: 0
Syntax
display ip routing-table ip-address1 mask1 ip-address2 mask2 [ verbose
]
View
Any view
Parameter
ip-address1,
ip-address2: Destination IP addresses in dotted decimal notation. ip-address1
and mask1, together with ip-address2 and mask2,
determine an IP address range. The starting address of the IP address range is determined
by the ip-address1 and mask1 arguments; and the end address of
the IP address range is determined by the ip-address2 and mask2 arguments.
mask1, mask2:
IP address masks. These two arguments can be in dotted decimal notation or two
integers ranging from 0 to 32.
verbose: Displays
the detailed information about the active and inactive routes. If you do not
specify this keyword, only the summary information about the active routes is
displayed.
Description
Use the display ip routing-table ip-address1
ip-address2 command to display the information about the routes with their
destinations within the specified destination IP address range.
Example
# Display the information about the routes
with their destinations within the range of 1.1.1.0 to 2.2.2.0.
<H3C> display ip routing-table
1.1.1.0 24 2.2.2.0 24
Routing tables:
Summary count: 1
Destination/Mask Protocol Pre
Cost Nexthop Interface
1.1.1.0/24 DIRECT 0 0
1.1.1.1 Vlan-interface1
Refer to Table 1-3for the description on the output fields.
Syntax
display ip routing-table protocol protocol [ inactive | verbose ]
View
Any view
Parameter
protocol:
This argument can be one of the following:
l
direct: Displays
the information about the direct routes.
l
ospf: Displays
the information about OSPF routes.
l
ospf-ase:
Displays the information about ASE routes.
l
ospf-nssa:
Displays the information about NSSA routes.
l
rip: Displays the
information about RIP routes.
l
static: Displays
the information about the static routes.
inactive:
Displays the information about the inactive routes. If you do not specify this
keyword, the information about both active and inactive routes is displayed.
verbose: Displays
the detailed route information. If you do not specify this keyword, only the
summary route information is displayed.
Description
Use the display ip routing-table protocol
command to display the information about specified type of routes.
The OSPF-related information
cannot be displayed on S3600-SI series switches.
Example
# Display the summary information about all
the direct routes.
<H3C> display ip routing-table
protocol direct
DIRECT Routing tables:
Summary count: 4
DIRECT Routing tables
status:<active>:
Summary count: 3
Destination/Mask Protocol Pre
Cost Nexthop Interface
20.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
DIRECT Routing tables
status:<inactive>:
Summary count: 1
Destination/Mask Protocol Pre Cost
Nexthop Interface
210.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
# Display the summary information about the
static routing table.
<H3C> display ip routing-table
protocol static
STATIC Routing tables:
Summary count: 1
STATIC Routing tables
status:<active>:
Summary count: 0
STATIC Routing tables
status:<inactive>:
Summary count: 1
Destination/Mask Protocol Pre
Cost Nexthop Interface
1.2.3.0/24 STATIC 60
0 1.2.4.5 Vlan-interface1
Refer to Table 1-3for the description on the output fields.
Syntax
display ip routing-table radix
View
Any view
Parameter
None
Description
Use the display ip routing-table radix
command to display the information about the routes in a routing table in a hierarchical
way.
Example
<H3C> display ip routing-table
radix
Radix tree for INET (2) inodes 2
routes 2:
+--8+--{127.0.0.0
+-32+--{127.0.0.1
Table 1-4 Description on the fields of the display ip routing-table radix
command
|
Field
|
Description
|
|
INET
|
Address family
|
|
inodes
|
Number of nodes
|
|
routes
|
Number of routes
|
1.1.9 display ip routing-table statistics
Syntax
display ip routing-table statistics
View
Any view
Parameter
None
Description
Use the display ip routing-table
statistics command to display the statistics of a routing table.
The statistics information displayed by
this command includes:
l
The total number of the routes
l
The number of the active routes
l
The number of the added routes
l
The number of the routes with deleted flags
Example
# Display the statistics information about the
routing table.
<H3C> display ip routing-table
statistics
Routing tables:
Proto route active
added deleted
DIRECT 4 4
20 16
STATIC 2 2 2
0
RIP 0 0 0
0
OSPF 0 0 0
0
O_ASE 0 0 0
0
O_NSSA 0 0 0
0
Total 6 6
22 16
Table 1-5 Description
on the fields of the display ip routing-table statistics command
|
Field
|
Description
|
|
Proto
|
Routing protocol
|
|
route
|
Total number of routes
|
|
active
|
Number of the active routes that are currently
in use
|
|
added
|
Number of the routes that are added to
the routing table after the switch starts or the routing table is cleared last
time
|
|
deleted
|
Number of the routes with deleted flags (this
type of routes will be removed after a period of time)
|
|
Total
|
Total numbers of various routes
|
Syntax
display ip routing-table verbose
View
Any view
Parameter
None
Description
Use the display ip routing-table verbose
command to display the detailed information about a routing table.
This command displays the detailed information
about the routing table, in the order of route state, statistics of the routing
table, and the information about each route.
You can use this command to display all the
routes, including the inactive and invalid routes.
Example
# Display the detailed information about the
routing table.
<H3C> display ip routing-table
verbose
Routing Tables:
+ = Active Route, - = Last Active,
# = Both * = Next hop in use
Destinations: 2 Routes: 2
Holddown: 0 Delete: 0
Hidden: 0
**Destination: 127.0.0.0 Mask:
255.0.0.0
Protocol: #DIRECT
Preference: 0
*NextHop: 127.0.0.1
Interface: 127.0.0.1(InLoopBack0)
State: <NoAdvise Int ActiveU
Retain Unicast>
Age: 57:12 Cost: 0/0
**Destination: 127.0.0.1 Mask:
255.255.255.255
Protocol: #DIRECT
Preference: 0
*NextHop: 127.0.0.1
Interface: 127.0.0.1(InLoopBack0)
State: <NotInstall NoAdvise
Int ActiveU Retain Gateway Unicast>
Age: 57:12 Cost: 0/0
The statistics of the routing table are
displayed first, and then the detailed descriptions of each route. Table 1-5 describes the route states and Table 1-6 describes the statistics information about the routing table.
Table 1-6 Description
on the fields of the display ip routing-table verbose command
|
Field
|
Description
|
|
Holddown
|
Number of the routes that are held down
|
|
Delete
|
Number of the deleted routes
|
|
Hidden
|
Number of the hidden routes
|
Syntax
interface Vlan-interface vlan-id
undo interface Vlan-interface vlan-id
View
System view
Parameter
vlan-id: ID
of the management VLAN, in the range of 1 to 4094.
Description
Use the interface Vlan-interface
command to create a management VLAN interface and enter management VLAN
interface view.
Use the undo interface Vlan-interface
command to remove the management VLAN interface.
Before creating a management VLAN
interface, make sure the VLAN identified by the vlan-id argument is
created and is configured as the management VLAN.
Note that:
To create the VLAN interface for the
management VLAN on a switch operating as the management device in a cluster,
make sure the ID of the management VLAN is consistent with that of the cluster
management VLAN, that is, the vlan-id argument in the management-vlan
vlan-id command when you configure the cluster management VLAN.
Example
# Create VLAN 10 and configure it as the
management VLAN. Create VLAN 10 interface and enter VLAN 10 interface view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] vlan 10
[H3C-vlan10] quit
[H3C] management-vlan 10
[H3C] interface Vlan-interface 10
[H3C-Vlan-interface10]
Syntax
ip address
ip-address mask [ sub ]
undo ip address [ ip-address mask [ sub ] ]
View
VLAN interface view
Parameter
ip-address:
IP address to be assigned to the management VLAN interface.
mask: Mask
of the IP address to be assigned to the management VLAN interface. The mask can
be in dotted decimal notation or an integer in the range of 0 to 32.
sub:
Specifies the IP address is to be configured as a secondary IP address of the
VLAN interface.
Description
Use the ip address command to assign
an IP address (and mask) to a management VLAN interface.
Use the undo ip address command to remove
the IP address assigned to a management VLAN interface.
Related command: display interface Vlan-interface.
Example
# Assign an IP address (and the mask) to the
management VLAN interface. (Assume that VLAN 1 is the management VLAN.)
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Vlan-interface 1
[H3C-Vlan-interface1] ip address 192.168.0.39
255.255.255.0
Syntax
ip route-static ip-address mask { NULL null-interface-number
| next-hop } [ preference preference-value ] [ reject
| blackhole ] [ detect-group detect-group-id ] [ description
text ]
undo ip route-static ip-address mask [ NULL null-interface-number
| next-hop ] [ preference preference-value ]
View
System view
Parameter
ip-address:
Destination IP address, in dotted decimal notation.
mask: IP
address mask, which can be in dotted decimal notation or an integer in the
range of 0 to 32.
NULL null-interface-number: Specifies a null interface. A null
interface is a virtual interface. Packets destined for a null interface is
discarded. Null interface helps to reduce system load.
next-hop: IP
address of the next hop of this route, in dotted decimal notation.
preference-value: Preference of this route, in the range of 1 to 255.
reject:
Specifies the route as an unreachable route.
blackhole:
Specifies the route as a black hole route.
detect-group:
Specifies a detect group for the route.
detect-group-id: Detect group number, in the range of 1 to 25.
description text: Specifies a descriptive string
for the static route. The text argument is a string comprising 1 to 60
characters.
Description
Use the ip route-static command to
configure a static route.
Use the undo ip route-static command
to remove a static route.
By default, the system can obtain the
routes to the subnets directly connected to a router. If you do not specify the
preference when configuring a static route, the default value is 60. Note that
routes with the same destinations, the same next hops, but different
preferences are different routes. Among these routes, the one with least
preference (which means the highest preference) is chosen to be the current
route. A route configured using the ip route-static command is a
reachable route if neither of the reject and blackhole keywords is
specified.
Note the following when configuring a
static route:
l
The next hop address of a static route cannot be
the VLAN interface address of the local switch.
l
A static route with both its destination IP
address and mask both being 0.0.0.0 is the default route. When no matched entry
is found in the routing table, a received packet is forwarded according to the
default route.
Related command: display ip
routing-table.
Example
# Configure the next hop of the default
route to be 129.102.0.2.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] ip route-static 0.0.0.0 0.0.0.0
129.102.0.2
Syntax
management-vlan vlan-id
undo management-vlan
View
System view
Parameter
vlan-id: ID
of the management VLAN, in the range of 1 to 4094.
Description
Use the management-vlan command to configure
a VLAN as the management VLAN.
Use the undo management vlan command
to restore the default management VLAN.
VLAN 1 is the default management VLAN.
Example
# Configure VLAN 2 as the management VLAN.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] management-vlan 2
Syntax
shutdown
undo shutdown
View
VLAN interface view
Parameter
None
Description
Use the shutdown command to shut
down a management VLAN interface.
Use the undo shutdown command to
bring up a management VLAN interface.
By default, a management VLAN interface is
down if all the Ethernet ports in the management VLAN are down, and the
management VLAN interface is up if one or more Ethernet ports in the management
VLAN are up.
Example
# Bring up the management VLAN interface.
(Assume that VLAN 1 is the management VLAN.)
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Vlan-interface 1
[H3C-Vlan-interface1] undo shutdown