综合实验(一)
原创
©著作权归作者所有:来自51CTO博客作者You0tech的原创作品,请联系作者获取转载授权,否则将追究法律责任
核心交换机配置
[SW1]stp root primary ## 设置核心交换机为根交换机
STP开销配置固定值
#### 查看开销值
[SW1]display stp interface Eth-Trunk 2
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge :32768.4c1f-cc85-3085
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.4c1f-cc17-2895 / 10000
CIST RegRoot/IRPC :32768.4c1f-cc85-3085 / 0
CIST RootPortId :128.25
BPDU-Protection :Disabled
TC or TCN received :212
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 0h:25m:23s
Number of TC :100
Last TC occurred :Eth-Trunk6
----[Port25(Eth-Trunk2)][FORWARDING]----
Port Protocol :Enabled
Port Role :Root Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=10000
Designated Bridge/Port :32768.4c1f-cc17-2895 / 128.25
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=true
Transit Limit :147 packets/hello-time
Protection Type :None
Port STP Mode :MSTP
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send :47
TC or TCN received :0
BPDU Sent :48
TCN: 0, Config: 0, RST: 0, MST: 48
BPDU Received :1608
TCN: 0, Config: 0, RST: 0, MST: 1608
### 修改开销值
[SW1]int Eth-Trunk 2
[SW1-Eth-Trunk2]stp cost 10000
服务器接入交换机配置边缘端口
[Huawei]display int brief
[Huawei]port-group group-member e0/0/1 to e0/0/22
[Huawei-port-group]stp edged-port enable
[SW2]display stp brief
MSTID Port Role STP State Protection
0 Ethernet0/0/1 DESI FORWARDING NONE
0 Ethernet0/0/2 DESI FORWARDING NONE
0 GigabitEthernet0/0/1 DESI FORWARDING NONE
0 GigabitEthernet0/0/2 DESI FORWARDING NONE
用户侧接入交换机配置边缘接口
[SW3]display int brief
[SW3]port-group group-member e0/0/1 to e0/0/22
[SW3-port-group]stp edged-port enable
[SW3]display stp brief
MSTID Port Role STP State Protection
0 Ethernet0/0/3 DESI FORWARDING NONE
0 Ethernet0/0/4 DESI FORWARDING NONE
0 GigabitEthernet0/0/1 ROOT FORWARDING NONE
0 GigabitEthernet0/0/2 ALTE DISCARDING NONE
核心交换机配置捆绑
[SW1]int Eth-Trunk 2
[SW1-Eth-Trunk2]trunkport gi 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment....done.
[SW1]display eth-trunk 2
Eth-Trunk2's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1
GigabitEthernet0/0/2 Up 1
服务器交换机配置捆绑
[SW2]int Eth-Trunk 2
[SW2-Eth-Trunk2]trunkport gi0/0/1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk2]trunkport gi0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]display eth-trunk 2
Eth-Trunk2's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1
GigabitEthernet0/0/2 Up 1
....
[SW1]int Eth-Trunk 6
[SW1-Eth-Trunk6]mode lacp-static
[SW1-Eth-Trunk6]trunk
[SW1-Eth-Trunk6]trunkport gi 0/0/10 to 0/0/11
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk6]quit
[SW1]display eth-trunk 6
Eth-Trunk6's state information is:
Local:
LAG ID: 6 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768 System ID: 4c1f-cc85-3085
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/10 Selected 1GE 32768 11 1585 10111100 1
GigabitEthernet0/0/11 Selected 1GE 32768 12 1585 10111100 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/10 32768 4c1f-ccaf-10f3 32768 2 1585 10111100
GigabitEthernet0/0/11 32768 4c1f-ccaf-10f3 32768 3 1585 10111100
用户侧接入交换机配置捆绑
[SW3]int Eth-Trunk 3
[SW3-Eth-Trunk3]trunkport gi 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3-Eth-Trunk3]quit
[SW3]display eth-trunk 3
Eth-Trunk3's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1
GigabitEthernet0/0/2 Up 1
....
[SW6]int Eth-Trunk 6
[SW6-Eth-Trunk6]mode lacp-static
[SW6-Eth-Trunk6]trunkport gi 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW6-Eth-Trunk6]quit
[SW6]display eth-trunk
Eth-Trunk6's state information is:
Local:
LAG ID: 6 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768 System ID: 4c1f-ccaf-10f3
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: down Number Of Up Port In Trunk: 0
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1 Unselect 1GE 32768 2 1585 10100010 1
GigabitEthernet0/0/2 Unselect 1GE 32768 3 1585 10100010 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/1 0 0000-0000-0000 0 0 0 10100011
GigabitEthernet0/0/2 0 0000-0000-0000 0 0 0 10100011