H3C及CISCO的端口快速转发

2023-01-31 02:01:17 端口 转发 快速

https://www.h3c.com/portal/Technical_Support___Documents/Technical_Documents/Switches/H3C_S5600_Series_Switches/Configuration/Operation_Manual/H3C_S5600_Series_OM-Release_1602(V1.02)/200907/641497_1285_0.htm

H3C stp默认没启用

启用stp后,若某端口需要快速转发,则需要:

stp edged-port enable

Configuring the Current Port as an Edge Port

Edge ports are ports that neither directly connects to other switches nor indirectly connects to other switches through network segments. After a port is configured as an edge port, the rapid transition mechanism is applicable to the port. That is, when the port changes from the blocking state to the forwarding state, it does not have to wait for a delay.

You can configure a port as an edge port in one of the following two ways.

Configure a port as an edge port in system view

Follow these steps to configure a port as an edge port in system view:

To do...

Use the command...

Remarks

Enter system view

system-view

Configure the specified ports as edge ports

stp interface interface-listedged-port enable

Required

By default, all the Ethernet ports of a switch are non-edge ports.

 

Configure a port as an edge port in Ethernet port view

Follow these steps to configure a port as an edge port in Ethernet port view:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter Ethernet port view

interface interface-type interface-number

Configure the port as an edge port

stp edged-port enable

Required

By default, all the Ethernet ports of a switch are non-edge ports.

 

On a switch with BPDU guard disabled, an edge port becomes a non-edge port again once it receives a BPDU from another port.

 

H3C及CISCO的端口快速转发

You are recommended to configure the Ethernet ports connected directly to terminals as edge ports and enable the BPDU guard function at the same time. This not only enables these ports to turn to the forwarding state rapidly but also secures your network.

 

Configuration example

# Configure GigabitEthernet 1/0/1 as an edge port.

1)        Configure GigabitEthernet 1/0/1 as an edge port in system view

<Sysname> system-view

[Sysname] stp interface GigabitEthernet 1/0/1 edged-port enable

2)        Configure GigabitEthernet 1/0/1 as an edge port in Ethernet port view

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/1

[Sysname-GigabitEthernet1/0/1] stp edged-port enable

 

 


cisco:

开启portfast

相关文章