R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)

40
Views
System view
Predefined user roles
network-admin
Parameters
all: Specifies all MSTIs or VLANs.
instance instance-list: Specifies the MSTIs by an instance list. They are in the format of instance-list =
{ instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances
or instance ranges. The value range for the instance-id argument is 0 to 4094, and the value 0 represents
the CIST.
vlan vlan-id-list: Specifies VLANs by a VLAN ID list. They are in the format of vlan-id-list = { vlan-id [ to
vlan-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ]
parameters. The value range for the vlan-id argument is 1 to 4094.
Examples
# In MSTP mode, enable outputting port state transition information for MSTI 2.
<Sysname> system-view
[Sysname] stp port-log instance 2
%Aug 16 00:49:41:856 2011 Sysname STP/3/STP_DISCARDING: Instance 2's port
GigabitEthernet2/1/1 has been set to discarding state.
%Aug 16 00:49:41:856 2011 Sysname STP/3/STP_FORWARDING: Instance 2's port
GigabitEthernet2/1/2 has been set to forwarding state.
The output shows that GigabitEthernet 2/1/1 in MSTI 2 transited to the discarding state and
GigabitEthernet 2/1/2 in MSTI 2 transited to the forwarding state.
# In PVST mode, enable outputting port state transition information for VLAN 1 through VLAN 4094.
<Sysname> system-view
[Sysname] stp port-log vlan 1 to 4094
%Aug 16 00:49:41:856 2006 Sysname STP/3/STP_DISCARDING: VLAN 2's GigabitEthernet2/1/1 has
been set to discarding state.
%Aug 16 00:49:41:856 2006 Sysname STP/3/STP_FORWARDING: VLAN 2's GigabitEthernet2/1/2 has
been set to forwarding state.
The output shows that GigabitEthernet 2/1/1 in VLAN 2 transited to the discarding state and
GigabitEthernet 2/1/2 in VLAN 2 transited to the forwarding state.
stp priority
Use stp priority to set the priority of the device.
Use undo stp priority to restore the default priority.
Syntax
stp [ instance instance-list | vlan vlan-id-list ] priority priority
undo stp [ instance instance-list | vlan vlan-id-list ] priority
Default
The device priority is 32768.