組網及說明
問題描述
解決二層環網組網中的環路,單點故障的問題,並實現鏈路冗餘、設備冗餘。
過程分析
- 做相交環時,一定要區分好主環和子環,主環的level設置為0,子環的level設置為除0以外的等級,否則子環不能做成環網。
- 做相交環時,有相交的設備在主環為傳輸節點,在子環為邊緣節點或輔助邊緣節點。
- 當子環成環後,有相交的設備在主環的接口都將成為公共端口。
- 當子環分裂時,業務切換不丟包。
- 當主環分裂時,業務切換不丟包。
解決方法
SW1、SW2、SW3為RING 1,其中SW1為RING 1的主節點設備(G 1/0/1為主端口、G 1/0/2為副端口),SW2、SW3為RING 1的傳輸節點(G 1/0/1為主端口、G 1/0/2為副端口)。
SW2、SW3、SW4為RING 2,其中SW4為RING 2的主節點設備G 1/0/1為主端口、G 1/0/2為副端口),SW2為邊緣節點,G1/0/3為邊緣端口;SW3為輔助邊緣節點,G1/0/3為邊緣端口。
設備配置:
SW1:
1、基礎配置腳本如下:
<code>dis cu /<code>
vlan 10
quit
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
quit
interface Vlan-interface10
ip address 192.168.10.254 255.255.255.0
quit
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
2、關鍵配置腳本:
<code>rrpp domain 1
control-vlan 4092
protected-vlan reference-instance 0 to 32
ring 1 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0
ring 1 enable
quit
rrpp enable/<code>
3、狀態查看:
<code>dis rrpp verbose domain 1 /<code>
Domain ID : 1
Control VLAN : Primary 4092, Secondary 4093
Protected VLAN: Reference instance 0 to 32
Hello timer : 1 seconds, Fail timer: 3 seconds
Fast detection status: Disabled
Fast-Hello timer: 20 ms, Fast-Fail timer: 60 ms
Fast-Edge-Hello timer: 10 ms, Fast-Edge-Fail timer: 30 ms
Ring ID : 1
Ring level : 0
Node mode : Master
Ring state : Complete
Enable status : Yes, Active status: Yes
Primary port : GE1/0/1 Port status: UP
Secondary port: GE1/0/2 Port status: BLOCKEDdis rrpp statistics domain 1
Ring ID : 1
Ring level : 0
Node mode : Master
Active status : Yes
Primary port : GE1/0/1
Fast-Hello packets: 0 Sent, 0 Received
Fast-Edge-Hello packets: 0 Sent, 0 Received
Direct Hello Link Common Complete Edge Major Total
down flush FDB flush FDB hello fault
------------------------------------------------------------------------------
Out 1843 0 1 2 0 0 1846
In 0 0 0 0 0 0 0
Secondary port: GE1/0/2
Fast-Hello packets: 0 Sent, 0 Received
Fast-Edge-Hello packets: 0 Sent, 0 Received
Direct Hello Link Common Complete Edge Major Total
down flush FDB flush FDB hello fault
------------------------------------------------------------------------------
Out 0 0 2 0 0 0 2
In 1517 0 0 2 0 0 1519dis rrpp brief
Flags for node mode: M -- Master, T -- Transit, E -- Edge, A -- Assistant-edge
RRPP protocol status: Enabled
Domain ID : 1
Control VLAN : Primary 4092, Secondary 4093
Protected VLAN: Reference instance 0 to 32
Hello timer : 1 seconds, Fail timer: 3 seconds
Fast detection status: Disabled
Fast-Hello timer: 20 ms, Fast-Fail timer: 60 ms
Fast-Edge-Hello timer: 10 ms, Fast-Edge-Fail timer: 30 ms
Ring Ring Node Primary/Common Secondary/Edge Enable
ID level mode port port status
------------------------------------------------------------------------------
1 0 M GE1/0/1 GE1/0/2 Yes
SW2:
1、基礎配置腳本如下:
<code>vlan 10
quit
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit/<code>
2、關鍵配置腳本如下:
<code>rrpp domain 1
control-vlan 4092
protected-vlan reference-instance 0 to 32
ring 1 node-mode transit primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 0
ring 1 enable
ring 2 node-mode edge edge-port GigabitEthernet1/0/3
quit
ring 2 enable/<code>
3、狀態查看:
<code>/<code> dis rrpp verbose domain 1
Domain ID : 1
Control VLAN : Primary 4092, Secondary 4093
Protected VLAN: Reference instance 0 to 32
Hello timer : 1 seconds, Fail timer: 3 seconds
Fast detection status: Disabled
Fast-Hello timer: 20 ms, Fast-Fail timer: 60 ms
Fast-Edge-Hello timer: 10 ms, Fast-Edge-Fail timer: 30 ms
Ring ID : 1
Ring level : 0
Node mode : Transit
Ring state : -
Enable status : Yes, Active status: No
Primary port : GE1/0/1 Port status: -
Secondary port: GE1/0/2 Port status: -
Ring ID : 2
Ring level : 1
Node mode : Edge
Ring state : -
Enable status : Yes, Active status: No
Common port : GE1/0/1 Port status: -
GE1/0/2 Port status: -
Edge port : GE1/0/3 Port status: -
SW3:
1、基礎配置腳本如下:
<code>vlan 10
quit
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit/<code>
2、關鍵配置腳本如下:
<code>rrpp domain 1
control-vlan 4092
protected-vlan reference-instance 0 to 32
ring 1 node-mode transit primary-port GigabitEthernet1/0/2 secondary-port GigabitEthernet1/0/1 level 0
ring 1 enable
ring 2 node-mode assistant-edge edge-port GigabitEthernet1/0/3
ring 2 enable
quit
rrpp enable/<code>
3、狀態查看:
<code>/<code> dis rrpp verbose domain 1
Domain ID : 1
Control VLAN : Primary 4092, Secondary 4093
Protected VLAN: Reference instance 0 to 32
Hello timer : 1 seconds, Fail timer: 3 seconds
Fast detection status: Disabled
Fast-Hello timer: 20 ms, Fast-Fail timer: 60 ms
Fast-Edge-Hello timer: 10 ms, Fast-Edge-Fail timer: 30 ms
Ring ID : 1
Ring level : 0
Node mode : Transit
Ring state : -
Enable status : Yes, Active status: Yes
Primary port : GE1/0/2 Port status: UP
Secondary port: GE1/0/1 Port status: UP
Ring ID : 2
Ring level : 1
Node mode : Assistant-edge
Ring state : -
Enable status : Yes, Active status: Yes
Common port : GE1/0/2 Port status: UP
GE1/0/1 Port status: UP
Edge port : GE1/0/3 Port status: UP
SW4:
1、基本配置腳本如下:
<code>vlan 10
quit
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
combo enable fiber
undo stp enable
quit
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 10
combo enable fiber
quit/<code>
2、關鍵配置腳本如下:
<code>rrpp domain 1
control-vlan 4092
protected-vlan reference-instance 0 to 32
ring 2 node-mode master primary-port GigabitEthernet1/0/1 secondary-port GigabitEthernet1/0/2 level 1
ring 2 enable
quit
rrpp enable/<code>
3、狀態查看
<code>/<code> dis rrpp verbose domain 1
Domain ID : 1
Control VLAN : Primary 4092, Secondary 4093
Protected VLAN: Reference instance 0 to 32
Hello timer : 1 seconds, Fail timer: 3 seconds
Fast detection status: Disabled
Fast-Hello timer: 20 ms, Fast-Fail timer: 60 ms
Fast-Edge-Hello timer: 10 ms, Fast-Edge-Fail timer: 30 ms
Ring ID : 2
Ring level : 1
Node mode : Master
Ring state : Complete
Enable status : Yes, Active status: Yes
Primary port : GE1/0/1 Port status: UP
Secondary port: GE1/0/2 Port status: BLOCKED
心得體會:
- 做相交環時,一定要區分好主環和子環,主環的level設置為0,子環的level設置為除0以外的等級,否則子環不能做成環網。
- 做相交環時,有相交的設備在主環為傳輸節點,在子環為邊緣節點或輔助邊緣節點。
- 當子環成環後,有相交的設備在主環的接口都將成為公共端口。
- 當子環分裂時,業務切換不丟包。
- 當主環分裂時,業務切換不丟包。
閱讀更多 思恆科技 的文章