Sie sind auf Seite 1von 22

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Table of Contents

Table of Contents
Chapter 1 Management VLAN Configuration Commands......................................................... 1-1 1.1 Management VLAN Configuration Commands ................................................................. 1-1 1.1.1 description ............................................................................................................... 1-1 1.1.2 display interface Vlan-interface ............................................................................... 1-2 1.1.3 display ip interface Vlan-interface ........................................................................... 1-3 1.1.4 display ip routing-table ............................................................................................ 1-5 1.1.5 display ip routing-table ip-address .......................................................................... 1-6 1.1.6 display ip routing-table ip-address1 ip-address2 .................................................... 1-8 1.1.7 display ip routing-table protocol .............................................................................. 1-9 1.1.8 display ip routing-table radix ................................................................................. 1-10 1.1.9 display ip routing-table statistics ........................................................................... 1-11 1.1.10 display ip routing-table verbose .......................................................................... 1-12 1.1.11 interface Vlan-interface ....................................................................................... 1-13 1.1.12 ip address............................................................................................................ 1-14 1.1.13 ip route-static....................................................................................................... 1-15 1.1.14 management-vlan ............................................................................................... 1-16 1.1.15 shutdown ............................................................................................................. 1-17 Chapter 2 DHCP/BOOTP Client Configuration ........................................................................... 2-1 2.1 DHCP/BOOTP Client Configuration Commands............................................................... 2-1 2.1.1 display bootp client.................................................................................................. 2-1 2.1.2 display dhcp client................................................................................................... 2-2 2.1.3 ip address bootp-alloc ............................................................................................. 2-3 2.1.4 ip address dhcp-alloc .............................................................................................. 2-3

Huawei Technologies Proprietary i

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

Chapter 1 Management VLAN Configuration Commands


1.1 Management VLAN Configuration Commands
1.1.1 description
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.
!

The description string of a VLAN comprises 1 to 32 characters and defaults to the ID of the VLAN (for example, VLAN 0001). 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.
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] vlan 2 [Quidway-vlan2] quit [Quidway] management-vlan 2 [Quidway] interface Vlan-interface 2 [Quidway-Vlan-interface2] description RESEARCH

Huawei Technologies Proprietary 1-1

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

1.1.2 display interface Vlan-interface


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.)
<Quidway> 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

00e0-000f-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 Vlan-interface current state Line protocol current state IP Sending Frames' Format Hardware address Internet Address Primary Description Current state of Vlan-interface1 Current state of the line protocol Format of the sent IP packets MAC address corresponding to the management VLAN interface Primary IP address

Huawei Technologies Proprietary 1-2

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

Field Description The Maximum Transmit Unit

Description Description string assigned to the VLAN interface 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.
<Quidway> 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: ICMP packet input number: Echo reply: Unreachable: Source quench: Routing redirect: Echo request: Router advert: Router solicit: 0 0 0 0 0 0 0 0 0

Huawei Technologies Proprietary 1-3

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510
Time exceed: IP header bad: Timestamp request: Timestamp reply: Information request: Information reply: Netmask request: Netmask reply: Unknown type: 0 0 0 0 0 0 0 0 0

Chapter 1 Management VLAN Configuration Commands

Table 1-2 Description on the fields of the display ip interface command Field Vlan-interface1 current state Line protocol current state Internet Address Broadcast address The Maximum Transmit Unit IP input packets : 0, bytes : 0, multicasts : 0 IP output packets : 0, bytes : 0, multicasts : 0 TTL invalid packet number ICMP packet input number: Echo reply: Unreachable: Source quench: Routing redirect: Echo request: Router advert: Router solicit: Time exceed: IP header bad: Timestamp request: Timestamp reply: Information request: Information reply: Netmask request: Netmask reply: Unknown type: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 The statistics on different types of ICMP packets received, including:
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

Description Current state of Vlan-interface1 Current state of the line protocol IP address Broadcast address The maximum transmit unit (MTU) The number of input/output unicast packets, the corresponding bytes, and the number of multicast packets are all 0. Number of received packets with TTL errors

Echo reply packets Unreachable packets Source quench packets Routing redirect packets Echo request packets Router advert packets Router solicit packets Time exceed packets IP header bad packets Timestamp request packets Timestamp reply packets Information request packets Information reply packets Netmask request packets Netmask reply packets Unknown type packets

Huawei Technologies Proprietary 1-4

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

1.1.4 display ip routing-table


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.
<Quidway> display ip routing-table Routing Table: public net Destination/Mask 127.0.0.0/8 127.0.0.1/32 192.168.0.0/24 192.168.0.91/32 Protocol DIRECT DIRECT DIRECT DIRECT Pre Cost 0 0 0 0 0 0 0 0 Nexthop 127.0.0.1 127.0.0. Interface InLoopBack0 InLoopBack0

192.168.0.91 Vlan-interface1 127.0.0.1 InLoopBack0

Table 1-3 Description on the fields of the display ip routing-table command Field Destination/Mask Protocol Pre Cost Nexthop Interface Description Destination IP address/mask length Routing protocol that discovers the route Route preference Route cost Next hop IP address of the route Outbound interface, through which packets destined for the destination network segment are to be transmitted

Huawei Technologies Proprietary 1-5

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

1.1.5 display ip routing-table ip-address


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:
!

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

display ip routing-table ip-address mask

Only the routes which match exactly the specified destination address and mask are displayed.
!

display ip routing-table ip-address longer-match

All routes with their destination addresses matched within the natural mask range are displayed.
!

display ip routing-table ip-address mask longer-match

All routes with their destination addresses matched within the specified mask range are displayed.

Huawei Technologies Proprietary 1-6

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

Example
# Display the summary information of the routes with their destination addresses matched within the natural mask range.
<Quidway> display ip routing-table 169.0.0.0 Destination/Mask 169.0.0.0/16 Protocol Pre Cost Static 60 0 Nexthop 2.1.1.1 Interface LoopBack1

Refer to Table 1-3 for 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).
<Quidway> display ip routing-table 169.253.0.0 Destination/Mask 169.0.0.0/8 Protocol Pre Static 60 Cost 0 Nexthop 2.1.1.1 Interface LoopBack1

# Display the detailed information of the routes with their destination addresses matched within the natural mask range.
<Quidway> 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 Protocol: #Static *NextHop: 2.1.1.1 Vlinkindex: 0 State: <Int ActiveU Static Unicast> Age: 3:47 Cost: 0/0 Tag: 0 Mask: 255.254.0.0 Preference: 60 Interface: 2.1.1.1(LoopBack1) Mask: 255.0.0.0 Preference: 60 Interface: 2.1.1.1(LoopBack1)

**Destination: 169.0.0.0 Protocol: #Static *NextHop: 2.1.1.1 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).
<Quidway> 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

Huawei Technologies Proprietary 1-7

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510
**Destination: 169.0.0.0 Protocol: #Static *NextHop: 2.1.1.1 Vlinkindex: 0 State: <Int ActiveU Static Unicast> Age: 3:47 Cost: 0/0 Tag: 0 Mask: 255.0.0.0 Preference: -60

Chapter 1 Management VLAN Configuration Commands

1.1.6 display ip routing-table ip-address1 ip-address2


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.
<Quidway> display ip routing-table 1.1.1.0 24 2.2.2.0 24 Routing tables: Summary count: 1 Destination/Mask 1.1.1.0/24 Protocol DIRECT Pre Cost 0 0 Nexthop 1.1.1.1 Interface Vlan-interface1

Refer to Table 1-3 for the description on the output fields.

Huawei Technologies Proprietary 1-8

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

1.1.7 display ip routing-table protocol


Syntax
display ip routing-table protocol protocol [ inactive | verbose ]

View
Any view

Parameter
protocol: This argument can be one of the following:
! ! ! ! ! !

direct: Displays the information about the direct routes. ospf: Displays the information about OSPF routes. ospf-ase: Displays the information about ASE routes. ospf-nssa: Displays the information about NSSA routes. rip: Displays the information about RIP routes. 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.

" Note: The OSPF-related information cannot be displayed on S3900-SI series switches.

Example
# Display the summary information about all the direct routes.
<Quidway> display ip routing-table protocol direct DIRECT Routing tables: Summary count: 4 DIRECT Routing tables status:<active>: Summary count: 3 Destination/Mask 20.1.1.1/32 127.0.0.0/8 Protocol DIRECT DIRECT Pre Cost 0 0 0 0 Nexthop 127.0.0.1 127.0.0.1 Interface InLoopBack0 InLoopBack0

Huawei Technologies Proprietary 1-9

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510
127.0.0.1/32 DIRECT 0 0

Chapter 1 Management VLAN Configuration Commands


127.0.0.1 InLoopBack0

DIRECT Routing tables status:<inactive>: Summary count: 1 Destination/Mask 210.0.0.1/32 Protocol DIRECT Pre 0 Cost 0 Nexthop 127.0.0.1 Interface InLoopBack0

# Display the summary information about the static routing table.


<Quidway> 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 1.2.3.0/24 Protocol STATIC Pre Cost 60 0 Nexthop 1.2.4.5 Interface Vlan-interface1

Refer to Table 1-3 for the description on the output fields.

1.1.8 display ip routing-table radix


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
<Quidway> display ip routing-table radix Radix tree for INET (2) inodes 2 routes 2:

+--8+--{127.0.0.0 +-32+--{127.0.0.1

Huawei Technologies Proprietary 1-10

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

Table 1-4 Description on the fields of the display ip routing-table radix command Field INET inodes routes Description Address family Number of nodes 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:
! ! ! !

The total number of the routes The number of the active routes The number of the added routes The number of the routes with deleted flags

Example
# Display the statistics information about the routing table.
<Quidway> display ip routing-table statistics Routing tables: Proto DIRECT STATIC RIP OSPF O_ASE O_NSSA Total route 4 2 0 0 0 0 6 active 4 2 0 0 0 0 6 added 20 2 0 0 0 0 22 deleted 16 0 0 0 0 0 16

Huawei Technologies Proprietary 1-11

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

Table 1-5 Description on the fields of the display ip routing-table statistics command Field Proto route active added deleted Total Routing protocol Total number of routes Number of the active routes that are currently in use Number of the routes that are added to the routing table after the switch starts or the routing table is cleared last time Number of the routes with deleted flags (this type of routes will be removed after a period of time) Total numbers of various routes Description

1.1.10 display ip routing-table verbose


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.
<Quidway> display ip routing-table verbose Routing Tables: + = Active Route, - = Last Active, # = Both * = Next hop in use

Destinations: 2

Routes: 2

Huawei Technologies Proprietary 1-12

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510
Holddown: 0 Delete: 0 Hidden: 0

Chapter 1 Management VLAN Configuration Commands

**Destination: 127.0.0.0 Protocol: #DIRECT *NextHop: 127.0.0.1

Mask: 255.0.0.0 Preference: 0 Interface: 127.0.0.1(InLoopBack0)

State: <NoAdvise Int ActiveU Retain Unicast> Age: 57:12 Cost: 0/0

**Destination: 127.0.0.1 Protocol: #DIRECT *NextHop: 127.0.0.1

Mask: 255.255.255.255 Preference: 0 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 Holddown Delete Hidden Description Number of the routes that are held down Number of the deleted routes Number of the hidden routes

1.1.11 interface Vlan-interface


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.

Huawei Technologies Proprietary 1-13

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

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.
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] vlan 10 [Quidway-vlan10] quit [Quidway] management-vlan 10 [Quidway] interface Vlan-interface 10 [Quidway-Vlan-interface10]

1.1.12 ip address
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.
Huawei Technologies Proprietary 1-14

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

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.)
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] interface Vlan-interface 1 [Quidway-Vlan-interface1] ip address 192.168.0.39 255.255.255.0

1.1.13 ip route-static
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.

Huawei Technologies Proprietary 1-15

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

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:
!

The next hop address of a static route cannot be the VLAN interface address of the local switch. 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.
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] ip route-static 0.0.0.0 0.0.0.0 129.102.0.2

1.1.14 management-vlan
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.

Huawei Technologies Proprietary 1-16

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 1 Management VLAN Configuration Commands

VLAN 1 is the default management VLAN.

Example
# Configure VLAN 2 as the management VLAN.
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] management-vlan 2

1.1.15 shutdown
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.)
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] interface Vlan-interface 1 [Quidway-Vlan-interface1] undo shutdown

Huawei Technologies Proprietary 1-17

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 2 DHCP/BOOTP Client Configuration

Chapter 2 DHCP/BOOTP Client Configuration


2.1 DHCP/BOOTP Client Configuration Commands
2.1.1 display bootp client
Syntax
display bootp client [ interface Vlan-interface vlan-id ]

View
Any view

Parameter
vlan-id: ID of the management VLAN interface.

Description
Use the display bootp client command to display BOOTP client-related information, including the MAC address of the BOOTP client and the IP address obtained.

Example
# Display the BOOTP client-related information.
<Quidway> display bootp client interface Vlan-interface 1 Vlan-interface1: Allocated IP: 169.254.0.2 255.255.0.0 Transaction ID = 0x3d8a7431 Mac Address 00e0-000a-c3ef

Table 2-1 Description on the fields of the display bootp client command Field Vlan-interface1 Allocated IP Transaction ID Mac Address Description Management VLAN interface 1 is configured to obtain an IP address through BOOTP. IP address allocated to the VLAN interface Value of the XID field in BOOTP packets MAC address of the BOOTP client

Huawei Technologies Proprietary 2-1

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 2 DHCP/BOOTP Client Configuration

2.1.2 display dhcp client


Syntax
display dhcp client [ verbose ]

View
Any view

Parameter
verbose: Displays the detailed address allocation information.

Description
Use the display dhcp client command to display the information about the address allocation of DHCP clients. Note that as a DHCP client, an S3900 switch can occupy an IP address for up to 24 days. That is, even if the lease period of the address pool on the DHCP server is longer than 24 days, the DHCP client can only obtain a 24-day lease.

Example
# Display the information about the address allocation of DHCP clients.
<Quidway> display dhcp client verbose DHCP client statistic information: Vlan-interface1: Current machine state: BOUND Alloced IP: 169.254.0.2 255.255.0.0 Alloced lease: 86400 seconds, T1: 43200 seconds, T2: 75600 seconds Lease from 2002.09.20 01:05:03 Server IP: 169.254.0.1 Transaction ID = 0x3d8a7431 Default router: 2.2.2.2 Next timeout will happen after 0 days 11 hours 56 minutes 1 seconds. to 2002.09.21 01:05:03

Table 2-2 Description on the fields of the display dhcp client command Field Vlan-interface1 Current machine state Alloced IP lease T1 Description VLAN interface operating as a DHCP client to obtain an IP address dynamically The state of the client state machine IP address allocated to the DHCP client Lease period Renewal timer setting

Huawei Technologies Proprietary 2-2

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 2 DHCP/BOOTP Client Configuration

Field T2 Lease from.to. Server IP Transaction ID Default router

Description Rebinding timer setting The starting and end time of the lease period IP address of the DHCP server selected Transaction ID Gateway address

2.1.3 ip address bootp-alloc


Syntax
ip address bootp-alloc undo ip address bootp-alloc

View
VLAN interface view

Parameter
None

Description
Use the ip address bootp-alloc command to configure a VLAN interface to obtain an IP address through BOOTP. Use the undo ip address bootp-alloc command to cancel the configuration. By default, a VLAN interface does not use BOOTP to obtain an IP address. Related command: display bootp client.

Example
# Configure the management VLAN interface to obtain an IP address through BOOTP. (Assume that VLAN 1 is the management VLAN.)
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] interface Vlan-interface 1 [Quidway-Vlan-interface1] ip address bootp-alloc

2.1.4 ip address dhcp-alloc


Syntax
ip address dhcp-alloc
Huawei Technologies Proprietary 2-3

Command Manual Management VLAN Quidway S3900 Series Ethernet Switches-Release 1510

Chapter 2 DHCP/BOOTP Client Configuration

undo ip address dhcp-alloc

View
VLAN interface view

Parameter
None

Description
Use the ip address dhcp-alloc command to configure a VLAN interface to obtain an IP address through DHCP. Use the undo ip address dhcp-alloc command to cancel the configuration. By default, a VLAN interface does not use DHCP to obtain an IP address.

Example
# Configure the management VLAN interface to obtain an IP address through DHCP. (Assume that VLAN 1 is the management VLAN.)
<Quidway> system-view System View: return to User View with Ctrl+Z. [Quidway] interface Vlan-interface 1 [Quidway-Vlan-interface1] ip address dhcp-alloc

Huawei Technologies Proprietary 2-4

Das könnte Ihnen auch gefallen