Network Requirements
- Six devices in the LAN form two-level intersecting rings. Configure the EIPS sub ring mode to block the secondary port gigabitethernet0/2 on Master and secondary port gigabitethernet0/2 on sMaster to achieve the ring protection.
- When the link between Transit1 and Transit2 is disconnected, unblock the STP blocked status for gigabitethernet0/2 on Master of the main ring to achieve data switchover and ensure the communications in Ring1 not affected.
- When the link between sTransit1 and sTransit2 is disconnected, unblock the STP blocked status for gigabitethernet0/2 on sMaster to achieve data switchover and ensure the communications in Ring2 not affected.
Network Topology
Figure 3-7 Networking of configuring EIPS intersecting ring in the sub ring mode
Configuration Steps
Step 1: Configure the VLAN and port link type.
#Create VLAN2-VLAN4 on Master. Configure the link type of gigabitethernet0/1 and gigabitethernet0/2 as Trunk, permitting the services of VLAN2-VLAN4 to pass. Configure the PVID as 1.
Master#configure terminal
Master(config)#vlan 2-4
Master(config)#interface gigabitethernet 0/1-0/2
Master(config-if-range)#switchport mode trunk
Master(config-if-range)#switchport trunk allowed vlan add 2-4
Master(config-if-range)#switchport trunk pvid vlan 1
|
#Map VLAN2-VLAN4 on Master to the STP instance 0. Disable the STP on ports gigabitethernet0/1 and gigabitethernet0/2.
Master(config-if-range)#no spanning-tree enable
Master(config-if-range)#exit
|
#Create VLAN2-VLAN4 on Transit1, and map VLAN2-VLAN4 to the STP instance 0. Configure the link type of ports gigabitethernet0/1 and gigabitethernet0/2 as Trunk, permitting the services of VLAN2-VLAN4 to pass. Configure the PVID as 1. Configure the link type of port gigabitethernet0/3 as Trunk, permitting the services of VLAN3 and VLAN4 to pass. Configure the PVID as 1. Disable the STP on ports gigabitethernet0/1- gigabitethernet0/3. (Omitted)
#Create VLAN2-VLAN4 on Transit2, and map VLAN2-VLAN4 to the STP instance 0. Configure the link type of ports gigabitethernet0/1 and gigabitethernet0/2 as Trunk, permitting the services of VLAN2-VLAN4 to pass. Configure the PVID as 1. Configure the link type of port gigabitethernet0/3 as Trunk, permitting the services of VLAN3 and VLAN4 to pass. Configure the PVID as 1. Disable the STP on ports gigabitethernet0/1-gigabitethernet0/3. (Omitted)
#Create VLAN2-VLAN4 on Transit3, and map VLAN2-VLAN4 to the STP instance 0. Configure the link type of ports gigabitethernet0/1 and gigabitethernet0/2 as Trunk, permitting the services of VLAN2-VLAN4 to pass. Configure the PVID as 1. Disable the STP on ports gigabitethernet0/1 and gigabitethernet0/2. (Omitted)
#Create VLAN3 and VLAN4 on sMaster, and map VLAN3 through VLAN4 to the STP instance 0. Configure the link type of ports gigabitethernet0/1 and gigabitethernet0/2 as Trunk, permitting the services of VLAN3 and VLAN4 to pass. Configure the PVID as 1. Disable the STP on ports gigabitethernet0/1 and gigabitethernet0/2. (Omitted)
#Create VLAN3 and VLAN4 on sTransit1, and map VLAN3 and VLAN4 to the STP instance 0. Configure the link type of ports gigabitethernet0/1 and gigabitethernet0/2 as Trunk, permitting the services of VLAN3 and VLAN4 to pass. Configure the PVID as 1. Disable the STP on ports gigabitethernet0/1 and gigabitethernet0/2. (Omitted)
-
VLAN2 is the control VLAN for the main ring and VLAN3 is the control VLAN for the sub ring, which is only used to transfer the EIPS protocol packets. VLAN4 is the data VLAN, which is used to transfer services.
- To enable the EIPS function, the control VLAN and data VLAN of the EIPS must be mapped to the corresponding STP instance and the STP function on the port must be disabled.
- The control VLAN of the sub ring should be the data VLAN of the main ring.
- When using the application scenario of the main ring intersecting the sub-ring, the EIPS mapping instance can only be configured as instance 0.
Step 2: Configure Ring1.
#Create the master node Ring1 in the sub ring mode on Master. Configure the level number of the EIPS ring as 0, domain number as 0, instance as 0, control VLAN as VLAN2, primary port as gigabitethernet0/1, and secondary port as gigabitethernet0/2. Enable the EIPS.
Master(config)#eips ring 1 master
Master(config-eips)#control vlan 2
Master(config-eips)#level 0
Master(config-eips)#domain id 1
Master(config-eips)#instance 0
Master(config-eips)#primary interface gigabitethernet 0/1
Master(config-eips)#secondary interface gigabitethernet 0/2
Master(config-eips)#eips start
Master(config-eips)#exit
|
#Create the transmission node Ring1 in the sub ring mode on Transit1. Configure the level number of the EIPS ring as 0, domain number as 1, instance as 0, control VLAN as VLAN2, primary port as gigabitethernet0/1, and secondary port as gigabitethernet0/2. Enable the EIPS.
Transit1(config)#eips ring 1 transit
Transit1(config-eips)#instance 0
Transit1(config-eips)#control vlan 2
Transit1(config-eips)#domain id 1
Transit1(config-eips)#level 0
Transit1(config-eips)#primary interface gigabitethernet0/1
Transit1(config-eips)#secondary interface gigabitethernet0/2
Transit1(config-eips)#eips start
Transit1(config-eips)#exit
|
#Create the transmission node Ring1 in the sub ring mode on Transit2. Configure the level number of the EIPS ring as 0, domain number as 1, instance as 0, control VLAN as VLAN2, primary port as gigabitethernet0/1, and secondary port as gigabitethernet0/2. Enable the EIPS.
Transit2(config)#eips ring 1 transit
Transit2(config-eips)#instance 0
Transit2(config-eips)#domain id 1
Transit2(config-eips)#control vlan 2
Transit2(config-eips)#level 0
Transit2(config-eips)#primary interface gigabitethernet0/1
Transit2(config-eips)#secondary interface gigabitethernet0/2
Transit2(config-eips)#eips start
Transit2(config-eips)#exit
|
#Create the transmission node Ring1 in the sub ring mode on Transit3. Configure the level number of the EIPS ring as 0, domain number as 1, instance as 0, control VLAN as VLAN2, primary port as gigabitethernet0/1, and secondary port as gigabitethernet0/2. Enable the EIPS.
Transit3(config)#eips ring 1 transit
Transit3(config-eips)#control vlan 2
Transit3(config-eips)#level 0
Transit3(config-eips)#domain id 1
Transit3(config-eips)#instance 0
Transit3(config-eips)#primary interface gigabitethernet 0/1
Transit3(config-eips)#secondary interface gigabitethernet 0/2
Transit3(config-eips)#eips start
Transit3(config-eips)#exit
|
Step 3: Configure Ring2.
#Create the edge node Ring2 in the sub ring mode on Transit1. Configure the level number of the EIPS ring as 0, domain number as 1, instance as 0, control VLAN as VLAN3, edge port as gigabitethernet0/3, and Ring1 as its associated transmission node. Enable the EIPS.
Transit1(config)#eips ring 2 edge
Transit1(config-eips)#control vlan 3
Transit1(config-eips)#level 1
Transit1(config-eips)#domain id 1
Transit1(config-eips)#instance 0
Transit1(config-eips)#transit ring 1
Transit1(config-eips)#edge interface gigabitethernet0/3
Transit1(config-eips)#eips start
Transit1(config-eips)#exit
|
#Create the edge node Ring2 in the sub ring mode on Transit2. Configure the level number of the EIPS ring as 1, domain number as 1, instance as 0, control VLAN as VLAN3, edge port as gigabitethernet0/3, and Ring1 as its associated transmission node. Enable the EIPS.
Transit2(config)#eips ring 2 assistant
Transit2(config-eips)#control vlan 3
Transit2(config-eips)#level 1
Transit2(config-eips)#domain id 1
Transit2(config-eips)#instance 0
Transit2(config-eips)#transit ring 1
Transit2(config-eips)#edge interface gigabitethernet0/3
Transit2(config-eips)#eips start
Transit2(config-eips)#exit
|
#Create the master node Ring2 in the sub ring mode on sMaster. Configure the level number of the EIPS ring as 1, domain number as 1, control VLAN as VLAN3, primary port as gigabitethernet0/1, and secondary port as gigabitethernet0/2. Enable the EIPS.
sMaster(config)#eips ring 2 master
sMaster(config-eips)#level 1
sMaster(config-eips)#domain id 1
sMaster(config-eips)#instance 0
sMaster(config-eips)#control vlan 3
sMaster(config-eips)#primary interface gigabitethernet 0/1
sMaster(config-eips)#secondary interface gigabitethernet 0/2
sMaster(config-eips)#eips start
sMaster(config-eips)#exit
|
# Create the transmission node Ring2 in the sub ring mode on sTransit1. Configure the level number of the EIPS ring as 1, domain number as 1, instance as 0, control VLAN as VLAN3, primary port as gigabitethernet0/1, and secondary port as gigabitethernet0/2. Enable the EIPS.
sTransit1(config)#eips ring 2 transit
sTransit1(config-eips)#control vlan 3
sTransit1(config-eips)#level 1
sTransit1(config-eips)#domain id 1
sTransit1(config-eips)#instance 0
sTransit1(config-eips)#primary interface gigabitethernet 0/1
sTransit1(config-eips)#secondary interface gigabitethernet 0/2
sTransit1(config-eips)#eips start
sTransit1(config-eips)#exit
|
Step 4:Check the result.
#Run the show eips topology-summary command on the edge node and the edge assistant node. We can view that the EIPS status of the main ring and sub rings is round and the topology information is consistent.
Transit1#show eips topology-summary
ring ID : 1
topo status : round
seq host-name mac type interface1 link interface2 link isBorder
----------------------------------------------------------------------------------------------
1 Transit2 0001.7a22.2224 transit gi0/1 UP gi0/2 UP YES
2 Transit3 0000.0000.008b transit gi0/1 UP gi0/2 UP NO
3 Master 0014.0000.1202 master gi0/2 UP gi0/1 UP NO
4 Transit1 0001.7a54.5d71 transit gi0/1 UP gi0/2 UP YES
ring ID : 2
topo status : round
seq host-name mac type interface1 link interface2 link isBorder
----------------------------------------------------------------------------------------------
1 Transit2 0001.7a22.2224 assistant --------------------- gi0/3 UP NO
2 sTransit1 2012.1209.1728 transit gi0/2 UP gi0/1 UP NO
3 sMaster 0000.0010.0017 master gi0/2 UP gi0/1 UP NO
4 Transit1 0001.7a54.5d71 edge gi0/3 UP ------------------------ NO
Transit2#show eips topology-summary
ring ID : 1
topo status : round
seq host-name mac type interface1 link interface2 link isBorder
----------------------------------------------------------------------------------------------
1 Transit3 0000.0000.008b transit gi0/1 UP gi0/2 UP NO
2 Master 0014.0000.1202 master gi0/2 UP gi0/1 UP NO
3 Transit1 0001.7a54.5d71 transit gi0/1 UP gi0/2 UP YES
4 Transit2 0001.7a22.2224 transit gi0/1 UP gi0/2 UP YES
ring ID : 2
topo status : round
seq host-name mac type interface1 link interface2 link isBorder
-----------------------------------------------------------------------------------------------
1 Transit1 0001.7a54.5d71 edge --------------------------- gi0/3 UP NO
2 sMaster 0000.0010.0017 master gi0/1 UP gi0/2 UP NO
3 sTransit1 2012.1209.1728 transit gi0/1 UP gi0/2 UP NO
4 Transit2 0001.7a22.2224 assistant gi0/3 UP ----------------------- NO
#Run the show eips topology command on the edge node. We can view that gigabitethernet0/2 on Master and gigabitethernet0/2 on sMaster are blocked and the other ports are unblocked. The EIPS status of Master on the main ring and sMaster on the sub ring is COMPLETE and the EIPS status of the other ports is LINK-UP.
Transit1#show eips topology
ring ID : 1
topo status : round
topo index 1 :
host name : Transit2
eips type : transit
eips status : LINK-UP
border : YES
base MAC : 0001.7a22.2224
sys oid......... 1.3.6.1.4.1.5651.1.0.0
interface1 : gi0/1
MAC : 0001.7a22.2224
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0001.7a22.2224
role : second
block-status : unblock
link-status : UP
topo index 2 :
host name : Transit3
eips type : transit
eips status : LINK-UP
border : NO
base MAC : 0000.0000.008b
sys oid......... 1.3.6.1.4.1.5651.1.102.146
interface1 : gi0/1
MAC : 0000.0000.008b
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0000.0000.008b
role : second
block-status : unblock
link-status : UP
topo index 3 :
host name : Master
eips type : master
eips status : COMPLETE
border : NO
base MAC : 0014.0000.1202
sys oid : 1.3.6.1.4.1.5651.1.102.127
interface1 : gi0/2
MAC : 0014.0000.1202
role : second
block-status : block
link-status : UP
interface2 : gi0/1
MAC : 0014.0000.1202
role : primary
block-status : unblock
link-status : UP
topo index 4 :
host name : Transit1
eips type : transit
eips status : LINK-UP
border : YES
base MAC : 0001.7a54.5d71
sys oid......... 1.3.6.1.4.1.5651.1.102.145
interface1 : gi0/1
MAC : 0001.7a54.5d71
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0001.7a54.5d71
role : second
block-status : unblock
link-status : UP
ring ID : 2
topo status : round
topo index 1 :
host name : Transit2
eips type : assistant
eips status : LINK-UP
border : NO
base MAC : 0001.7a22.2224
sys oid......... 1.3.6.1.4.1.5651.1.0.0
interface2 : gi0/3
MAC : 0001.7a22.2224
role : edge
block-status : unblock
link-status : UP
topo index 2 :
host name : sTransit1
eips type : transit
eips status : LINK-UP
border : NO
base MAC : 2012.1209.1728
sys oid......... 1.3.6.1.4.1.5651.1.102.126
interface1 : gi0/2
MAC : 2012.1209.1728
role : second
block-status : unblock
link-status : UP
interface2 : gi0/1
MAC : 2012.1209.1728
role : primary
block-status : unblock
link-status : UP
topo index 3 :
host name : sMaster
eips type : master
eips status : COMPLETE
border : NO
base MAC : 0000.0010.0017
sys oid......... 1.3.6.1.4.1.5651.1.102.140
interface1 : gi0/2
MAC : 0000.0010.0017
role : second
block-status : block
link-status : UP
interface2 : gi0/1
MAC : 0000.0010.0017
role : primary
block-status : unblock
link-status : UP
topo index 4 :
host name : Transit1
eips type : edge
eips status : LINK-UP
border : NO
base MAC : 0001.7a54.5d71
sys oid......... 1.3.6.1.4.1.5651.1.102.145
interface1 : gi0/3
MAC : 0001.7a54.5d71
role : edge
block-status : unblock
link-status : UP
#When the link between Transit1 and Transit2 is disconnected, run the show eips topology command on the edge node again. We can view that the status of Ring1 changes to not round and the EIPS status of Transit1 and Transit2 changes to LINK-DOWN. The EIPS status of Master on the main ring changes to FAULT and gigabitethernet0/2 on Master changes to unblock. Transit1 communicates with Transit2 via Master, which ensures uninterrupted communications between Transit1 and Transit2. The status of Ring2 is still round, the EIPS status of sMaster is still COMPLETE, and gigabitethernet0/2 of sMaster is still blocked.
Transit1#show eips topology ring 1
ring ID : 1
topo status : not round
topo index 1 :
host name : Transit2
eips type : transit
eips status : LINK-DOWN
border : YES
base MAC : 0001.7a22.2224
sys oid......... 1.3.6.1.4.1.5651.1.0.0
interface1 : gi0/1
MAC : 0001.7a22.2224
role : primary
block-status : block
link-status : DOWN
interface2 : gi0/2
MAC : 0001.7a22.2224
role : second
block-status : unblock
link-status : UP
topo index 2 :
host name : Transit3
eips type : transit
eips status : LINK-UP
border : NO
base MAC : 0000.0000.008b
sys oid......... 1.3.6.1.4.1.5651.1.102.146
interface1 : gi0/1
MAC : 0000.0000.008b
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0000.0000.008b
role : second
block-status : unblock
link-status : UP
topo index 3 :
host name : Master
eips type : master
eips status : FAULT
border : NO
base MAC : 0014.0000.1202
sys oid......... 1.3.6.1.4.1.5651.1.102.127
interface1 : gi0/2
MAC : 0014.0000.1202
role : second
block-status : unblock
link-status : UP
interface2 : gi0/1
MAC : 0014.0000.1202
role : primary
block-status : unblock
link-status : UP
topo index 4 :
host name : Transit1
eips type : transit
eips status : LINK-DOWN
border : YES
base MAC : 0001.7a54.5d71
sys oid......... 1.3.6.1.4.1.5651.1.102.145
interface1 : gi0/1
MAC : 0001.7a54.5d71
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0001.7a54.5d71
role : second
block-status : block
link-status : DOWN
Transit1#show eips topology ring 2
ring ID : 2
topo status : round
topo index 1 :
host name : Transit2
eips type : assistant
eips status : LINK-UP
border : NO
base MAC : 0001.7a22.2224
sys oid......... 1.3.6.1.4.1.5651.1.0.0
interface2 : gi0/3
MAC : 0001.7a22.2224
role : edge
block-status : unblock
link-status : UP
topo index 2 :
host name : sTransit1
eips type : transit
eips status : LINK-UP
border : NO
base MAC : 2012.1209.1728
sys oid......... 1.3.6.1.4.1.5651.1.102.126
interface1 : gi0/2
MAC : 2012.1209.1728
role : second
block-status : unblock
link-status : UP
interface2 : gi0/1
MAC : 2012.1209.1728
role : primary
block-status : unblock
link-status : UP
topo index 3 :
host name : sMaster
eips type : master
eips status : COMPLETE
border : NO
base MAC : 0000.0010.0017
sys oid......... 1.3.6.1.4.1.5651.1.102.140
interface1 : gi0/2
MAC : 0000.0010.0017
role : second
block-status : block
link-status : UP
interface2 : gi0/1
MAC : 0000.0010.0017
role : primary
block-status : unblock
link-status : UP
topo index 4 :
host name : Transit1
eips type : edge
eips status : LINK-UP
border : NO
base MAC : 0001.7a54.5d71
sys oid : 1.3.6.1.4.1.5651.1.102.145
interface1 : gi0/3
MAC : 0001.7a54.5d71
role : edge
block-status : unblock
link-status : UP
#When only the link between sTransit1 and Transit2 is disconnected, run the show eips topology command again on Transit1 and Transit2. We can view that the status of Ring2 changes to not round, the EIPS status of sMaster changes to FAULT, and gigabitethernet0/2 of sMaster changes to unblock. sTransit1 communicates with Transit2 via sMaster, which ensures uninterrupted communications between sTransit1 and Transit2. The status of Ring1 is still round, the EIPS status is still COMPLETE, and gigabitethernet0/2 on Master is still blocked.
Transit1#show eips topology ring 2
ring ID : 2
topo status : not round
topo index 1 :
host name : sTransit1
eips type : transit
eips status : LINK-DOWN
border : NO
base MAC : 2012.1209.1728
sys oid......... 1.3.6.1.4.1.5651.1.102.126
interface1 : gi0/2
MAC : 2012.1209.1728
role : second
block-status : block
link-status : DOWN
interface2 : gi0/1
MAC : 2012.1209.1728
role : primary
block-status : unblock
link-status : UP
topo index 2 :
host name : sMaster
eips type : master
eips status : FAULT
border : NO
base MAC : 0000.0010.0017
sys oid......... 1.3.6.1.4.1.5651.1.102.140
interface1 : gi0/2
MAC : 0000.0010.0017
role : second
block-status : unblock
link-status : UP
interface2 : gi0/1
MAC : 0000.0010.0017
role : primary
block-status : unblock
link-status : UP
topo index 3 :
host name : Transit1
eips type : edge
eips status : LINK-UP
border : NO
base MAC : 0001.7a54.5d71
sys oid......... 1.3.6.1.4.1.5651.1.102.145
interface1 : gi0/3
MAC : 0001.7a54.5d71
role : edge
block-status : unblock
link-status : UP
Transit2#show eips topology ring 2
ring ID : 2
topo status : not round
topo index 1 :
host name : Transit2
eips type : assistant
eips status : LINK-DOWN
border : NO
base MAC : 0001.7a22.2224
sys oid......... 1.3.6.1.4.1.5651.1.0.0
interface1 : gi0/3
MAC : 0001.7a22.2224
role : edge
block-status : block
link-status : DOWN
Transit1#show eips topology ring 1
ring ID : 1
topo status : round
topo index 1 :
host name : Transit2
eips type : transit
eips status : LINK-UP
border : YES
base MAC : 0001.7a22.2224
sys oid......... 1.3.6.1.4.1.5651.1.0.0
interface1 : gi0/1
MAC : 0001.7a22.2224
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0001.7a22.2224
role : second
block-status : unblock
link-status : UP
topo index 2 :
host name : Transit3
eips type : transit
eips status : LINK-UP
border : NO
base MAC : 0000.0000.008b
sys oid......... 1.3.6.1.4.1.5651.1.102.146
interface1 : gi0/1
MAC : 0000.0000.008b
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0000.0000.008b
role : second
block-status : unblock
link-status : UP
topo index 3 :
host name : Master
eips type : master
eips status : COMPLETE
border : NO
base MAC : 0014.0000.1202
sys oid......... 1.3.6.1.4.1.5651.1.102.127
interface1 : gi0/2
MAC : 0014.0000.1202
role : second
block-status : block
link-status : UP
interface2 : gi0/1
MAC : 0014.0000.1202
role : primary
block-status : unblock
link-status : UP
topo index 4 :
host name : Transit1
eips type : transit
eips status : LINK-UP
border : YES
base MAC : 0001.7a54.5d71
sys oid......... 1.3.6.1.4.1.5651.1.102.145
interface1 : gi0/1
MAC : 0001.7a54.5d71
role : primary
block-status : unblock
link-status : UP
interface2 : gi0/2
MAC : 0001.7a54.5d71
role : second
block-status : unblock
link-status : UP