04-Management VLAN Command

Download


Chapter 1  Management VLAN Configuration Commands

1.1  Management VLAN Configuration Commands

1.1.1  delete static-routes all

Syntax

delete static-routes all

View

System view

Parameter

None

Description

Use the delete static-routes all command to delete all static routes.

The system will request your confirmation before it deletes all the configured static routes.

Related command: ip route-static and display ip routing-table.

Example

# Delete all the static routes in the switch.

<H3C> system-view

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

[H3C] delete static-routes all

Are you sure to delete all the unicast static routes?[Y/N]y

1.1.2  description

Syntax

description text

undo description

View

VLAN view, VLAN interface view

Parameter

text: Description string to be assigned to the current VLAN or 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

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

<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.31/24 Primary

Description : Vlan-interface1 Interface

The Maximum Transmit Unit is 1500

1.1.4  display ip host

Syntax

display ip host

View

Any view

Parameter

None

Description

Use the display ip host command to display the names of all the hosts and their IP addresses.

Example

# Display the names of all the hosts and their IP addresses.

<H3C> display ip host

Host         Age     Flags       Address

My           0       static      1.1.1.1

Aa           0       static      2.2.2.4

Table 1-1 Description on the fields of the display ip host command

Field

Description

Host

Host name

Age

Valid duration of the host address

Flags

Flag. Currently only static is supported.

Address(es)

Host IP address

 

1.1.5  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 information about the specified interface in brief.

Description

Use the display ip interface command to display the information about a specified interface.

Example

# Display the information about VLAN 1 interface.

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

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

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

<H3C> display ip routing-table

Routing Table: public net

Destination/Mask   Protocol   Pre Cost        Nexthop    Interface

1.1.1.0/24         DIRECT    0   0   1.1.1.1 Vlan-interface1

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

Table 1-2 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

 

1.1.7  display ip routing-table acl

Syntax

display ip routing-table acl acl-number [ verbose ]

View

Any view

Parameter

acl-number: Number of a basic access control list (ACL), in the range of 2000 to 2999.

verbose: Displays the detailed information about the active and inactive routes filtered by the specified ACL. If you do not specify this keyword, the summary information about the active routes filtered by the specified ACL is displayed.

Description

Use the display ip routing-table acl command to display the routes filtered by the specified basic ACL.

As this command displays the routes filtered by a basic ACL, you can use it to trace routing policies.

Example

# Display the summary information about the active routes filtered by ACL 2000.

<H3C> system-view

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

[H3C] acl number 2000

[H3C-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255

[H3C-acl-basic-2000] rule deny source any

[H3C-acl-basic-2000] display ip routing-table acl 2000

Routes matched by access-list 2000:

  Summary count: 2

Destination/Mask   Protocol Pre  Cost        Nexthop       Interface

10.1.1.0/24  DIRECT  0   0   10.1.1.2        Vlan-interface1

10.1.1.2/32  DIRECT  0   0   127.0.0.1      InLoopBack0

The above output information is described in Table 1-2.

# Display the detailed information about the active and inactive routes filtered by ACL 2000.

<H3C> display ip routing-table acl 2000 verbose

Routes matched by access-list 2000:

  + = Active Route, - = Last Active, # = Both   * = Next hop in use

 

  Summary count: 2

 

**Destination: 10.1.1.0         Mask: 255.255.255.0

        Protocol: #DIRECT       Preference: 0

        *NextHop: 10.1.1.2         Interface: 10.1.1.2(Vlan-interface1)

        Vlinkindex: 0

        State: <Int ActiveU Retain Unicast>

        Age: 7:24       Cost: 0/0

 

**Destination: 10.1.1.2         Mask: 255.255.255.255

        Protocol: #DIRECT       Preference: 0

        *NextHop: 127.0.0.1        Interface: 127.0.0.1(InLoopBack0)

        Vlinkindex: 0

        State: <NoAdvise Int ActiveU Retain Gateway Unicast>

        Age: 7:24       Cost: 0/0

Table 1-3 Description on the fields of the display ip routing-table acl command

Field

Description

Destination

Destination address

Mask

Mask

Protocol

Routing protocol that discovers the route

Preference

Route preference

Nexthop

Next hop IP address

Interface

Outbound interface, through which packets destined for the destination network segment are to be transmitted

Vlinkindex

Virtual link index

State

Descriptions on the route state are as follows:

ActiveU

Valid unicast route. “U” stands for unicast.

Blackhole

Blackhole route is the same as reject route except that a router drops a packet traveling along a blackhole route without sending ICMP unreachable messages to the source of the packets.

Delete

The route is deleted.

Gateway

The route is not a direct route.

Hidden

The route is a hidden route. For routes that are temporarily unavailable for some reasons (such as the policy configured or the interface is down), you can hide them for later use.

Holddown

The route is held down. Holddown is a kind of route advertisement policy used in some D-V (distance vector) routing protocols (such as RIP) to avoid the propagation of some incorrect routes and improve the transmission speed of route-unreachable information. For details, refer to corresponding routing protocols.

Int

The route is discovered by the internal gateway protocol (IGP).

NoAdvise

The route is not advertised when the router advertises routes based on policies

NotInstall

The route are not loaded to the core routing table but can be advertised. Normally, the routes with the highest preference in the routing table are loaded to the core routing table and are advertised.

Reject

The packets travel along the route will be dropped. Besides, the router sends ICMP unreachable messages to the source of the dropped packets. The Reject routes are usually used for network testing.

Retain

The route is not deleted when the routes read from the core routing table are deleted. You can enable static routes to remain in the core routing table by configure them to be in retain state.

Static

The route is not lost when you perform the save operation and then restart the router. Routes marked as Static are configured manually.

Unicast

The route is an unicast route.

Age

Time period during which the route is allowed in the routing table, in the form of hh:mm:ss.

Cost

Cost of the route

 

1.1.8  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 the 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 subnet routes will be displayed. Otherwise, only the active routes which match ip-address longest will be 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 destination addresses matched within the natural mask range will be displayed.

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

All routes with destination addresses matched within the specified mask range will be displayed.

Example

# Display the summary information of the corresponding routes with 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

For the explanations of the displayed information, see Table 1-2.

# Display the summary information the longest matched routes.

<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 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 longest matched routes.

<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

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

1.1.9  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 obtained by performing AND operation between the ip-address1 and mask1 arguments; and the end address of the IP address range is obtained by performing AND operation between 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: 3

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-2 for the description on the output fields.

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

l           direct: Displays the information about the direct 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 specific routes.

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 information about the static routs.

<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-2 for the description on the output fields.

1.1.11  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

# Display the information about the routes in a routing table in a hierarchical way.

<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.12  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 routes

l           The number of the active routes

l           The number of the routes added

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     2            2            2            0

STATIC     0            0            0            0

Total      2            2            2            0

Table 1-5 Description on the fields of the display ip routing-table statistics command

Field

Description

Proto

Routing protocol: O_ASE indicates OSPF_ASE routes, O_NSSA indicates OSPF NSSA routes, and AGGRE indicates the aggregated routes.

route

Total number of routes

active

Number of the active routes that are in 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 freed after a period of time)

Total

Total of different types of routes

 

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

<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-6 Description on the part of the fileds 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

 

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

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 to be the management VLAN.

Note that:

To configure the management VLAN of a switch operating as a cluster management device to be a cluster management VLAN (using the management-vlan vlan-id command) successfully, make sure the vlan-id argument provided in the management-vlan vlan-id command is consistent with that of the management VLAN.

Example

# Create VLAN 10 and configure it to be the management VLAN. 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]

1.1.15  ip address

Syntax

ip address ip-address net-mask [ sub ]

undo ip address [ ip-address net-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 length is expressed as dotted decimal notation or integer in the range of 0 to 32.

sub: Specifies the secondary IP address.

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 1.1.1.1 255.0.0.0

1.1.16  ip host

Syntax

ip host hostname ip-address

undo ip host hostname [ ip-address ]

View

System view

Parameter

hostname: Host name, a character string comprising 1 to 20 characters. The character string can include letters, numbers, “_”, and “,”, and must contain at least one letter.

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

Description

Use the ip host command to configure a host name and the corresponding IP address for a switch.

Use the undo ip host command to remove the host name and the corresponding IP address of a switch.

By default, the host name and the corresponding IP address of a switch are null.

Related command: display ip host.

Example

# Configure the host name and the corresponding IP address of a switch to be Lanswitch2 and 10.110.0.2.

<H3C> system-view

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

[H3C] ip host Lanswitch2 10.110.0.2

1.1.17  ip route-static

Syntax

ip route-static ip-address mask { interface-type interface-number | next-hop } [ preference preference-value ] [ reject | blackhole ] [ description text ]

undo ip route-static ip-address mask [ interface-type interface-number | next-hop ] [ preference preference-value ]

View

System view

Parameter

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

mask: IP address mask. The mask length is expressed as dotted decimal notation or integer in the range of 0 to 32.

interface type interface-number: Specifies the output interface. The interface-type can be NUll and Loopback. 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 to be an unreachable route.

blackhole: Specifies the route to be a blackhole route.

detect-group: Specifies the 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 value specified 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

1.1.18  management-vlan

Syntax

management-vlan vlan-id

undo management-vlan

View

System view

Parameter

vlan-id: ID of a management VLAN, in the range of 1 to 4094. It is 1 by default.

Description

Use the management-vlan command to set the management VLAN.

Use the undo management vlan command to restore the default management VLAN.

By default, VLAN 1 is the management VLAN.

Example

# Set VLAN 2 as the management VLAN.

<H3C> system-view

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

[H3C] management-vlan 2

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

 

&  Note:

If the Stack function is enabled on the switch, the secondary devices of a stack will repeatedly joint and leave the primary device after you use the shutdown command on the management VLAN interface. This is normal and can be recovered after you use the undo shutdown command on the management VLAN interface.

 

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

 


Chapter 2  DHCP/BOOTP Client Configuration

2.1  DHCP Client Configuration Commands

2.1.1  debugging dhcp client

Syntax

debugging dhcp client { all | error | event | packet }

undo debugging dhcp client { all | error | event | packet }

View

User view

Parameter

all: Enables all types of debugging for DHCP/BOOTP client.

error: Enables debugging for DHCP/BOOTP client error messages (including the information about unidentified packets).

event: Enables debugging for DHCP/BOOTP client events (including address allocation and data update).

packet: Enables debugging for packets received/transmitted by a DHCP/BOOTP client.

Description

Use the debugging dhcp client command to enable debugging for the DHCP/BOOTP client.

Use the undo debugging dhcp client command to disable debugging output.

By default, debugging for DHCP/BOOTP client is disabled.

Disable debugging as soon as debugging is over, because debugging occupies plenty of system resources.

Example

# Enable debugging for DHCP/BOOTP client events.

<H3C> debugging dhcp client event

2.1.2  display dhcp client

Syntax

display dhcp client [ verbose ]

View

Any view

Parameter

verbose: Displays the detailed the DHCP client information about address allocation.

Note that as a DHCP client, an S3100-SI 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.

Description

Use the display dhcp client command to display the DHCP client-related information.

Example

# Display the DHCP client information about address allocation.

<H3C> display dhcp client verbose

DHCP client statistic information:

Vlan-interface1:

Current machine state: BOUND

Allocated IP: 169.254.0.2 255.255.0.0

Allocated lease: 86400 seconds, T1: 43200 seconds, T2: 75600 seconds

Lease from 2002.09.20 01:05:03   to   2002.09.21 01:05:03

Server IP: 169.254.0.1

Transaction ID = 0x3d8a7431

Default router: 2.2.2.2

DNS server: 1.1.1.1

Domain name: h3c.com

Client ID: 000f-e20f-c3ef

Next timeout will happen after 0 days 11 hours 56 minutes 1 seconds.

Table 2-1 Description on the fields of the display dhcp client command

Field

Description

Vlan-interface1

VLAN interface operating as a DHCP client to obtain an IP address dynamically

Current machine state

The state of the client state machine

Allocated IP

IP address allocated to the DHCP client