MSTP on FreeBSD
Dmukha Nikolay
cosmic17 at yandex.by
Fri Jan 20 13:32:14 UTC 2012
Hello.
Please, help me to setup this sheme:
*******************************************************
comp1 comp2
| |
| |
dgs3627g(24)-----------(12)dgs3612g
|(21) (9)|
|______freebsd bridge_______|
*******************************************************
Devices are:
Dlink DGS3627G (FW 2.84-B25), Dlink DGS3612G (FW 2.84-B25), FreeBSD (8.0 stable 201105).
The main target is to reserve the FreeBsd bridge. The priority route for traffic from comp 1 to comp 2 is freebsd. When the server (freebsd bridge) is down, traffic should go through the direct link between switches. I want to reserve 3 freebsd bridges. So it`s necessary to use MSTP technology. For example I try to setup MSTP for one server.
In my opinion the logic of this sheme is:
*******************************************************
packet from comp1-->3627-->freebsd bridge-->3612-->target (comp2)
*******************************************************
I think that the Root Bridge for 3627 is freebs bridge. If freebsd bridge is down, 3612 will be Root. So I should to designate the next priority:
*******************************************************
3627 - lowest
FreeBSD bridge - highest
3612 - something middle bentween FreeBSD bridge and 3627
*******************************************************
Let`s start to setup:
*******************************************************
3627 (00-22-B0-26-C1-00):
config vlan default delete 1-27
create vlan bridge1 tag 101
config vlan bridge1 add unt 21-24
config stp version mstp
config stp mst_config_id name bridge1 revision_level 1
config stp priority 8192 instance_id 0
create stp instance_id 2
config stp instance_id 2 add_vlan 101
config stp priority 8192 instance_id 2
enable stp
3612 (00-1E-58-D9-13-00):
config vlan default delete 1-12
create vlan bridge1 tag 101
config vlan bridge1 add unt 9-12
config stp version mstp
config stp mst_config_id name bridge1 revision_level 1
config stp priority 4096 instance_id 0
create stp instance_id 2
config stp instance_id 2 add_vlan 101
config stp priority 4096 instance_id 2
enable stp
FreeBSD bridge:
ifconfig bridge0 stp em0 stp em1
ifconfig bridge0 priority 0
ifconfig bridge0 fwddelay 4
ifconfig bridge0 maxage 6
*******************************************************
Tests:
1. There is no direct link between switches:
*******************************************************
3627:
STP Instance Settings
---------------------------
Instance Type : CIST
Instance Status : Enabled
Instance Priority : 8192 (Bridge Priority : 8192 , SYS ID Ext : 0 )
STP Instance Operational Status
--------------------------------
Designated Root Bridge : 0 /00-15-17-8E-E7-EE
External Root Cost : 20000
Regional Root Bridge : 8192 /00-22-B0-26-C1-00
Internal Root Cost : 0
Designated Bridge : 0 /00-15-17-8E-E7-EE
Root Port : 21
Max Age : 6
Forward Delay : 4
Last Topology Change : 145
Topology Changes Count : 27
STP Instance Settings
---------------------------
Instance Type : MSTI(2)
Instance Status : Enabled
Instance Priority : 8194 (Bridge Priority : 8192 , SYS ID Ext : 2 )
STP Instance Operational Status
--------------------------------
Regional Root Bridge : 8194 /00-22-B0-26-C1-00
Internal Root Cost : 0
Designated Bridge : 8194 /00-22-B0-26-C1-00
Root Port : None
Remaining Hops : 20
Last Topology Change : 101
Topology Changes Count : 27
Command: show stp ports 21
MSTP Port Information
----------------------
Port Index : 21 , Hello Time: 2 /2 , Port STP : Enabled , LBD : No
External PathCost : Auto/20000 , Edge Port : False/No , P2P : Auto /Yes
Port RestrictedRole : False, Port RestrictedTCN : False
Port Forward BPDU : Enabled
MSTI Designated Bridge Internal PathCost Prio Status Role
----- ------------------ ----------------- ---- ---------- ----------
0 0000/0015178EE7EE 20000 128 Forwarding Root
2 2002/0022B026C100 20000 128 Forwarding Master
*******************************************************
I can see the traffic with tcpdump on FreeBSD bridge.
2. There is direct link between switches:
*******************************************************
3627:
STP Instance Settings
---------------------------
Instance Type : CIST
Instance Status : Enabled
Instance Priority : 8192 (Bridge Priority : 8192 , SYS ID Ext : 0 )
STP Instance Operational Status
--------------------------------
Designated Root Bridge : 0 /00-15-17-8E-E7-EE
External Root Cost : 20000
Regional Root Bridge : 4096 /00-1E-58-D9-13-00
Internal Root Cost : 20000
Designated Bridge : 4096 /00-1E-58-D9-13-00
Root Port : 24
Max Age : 6
Forward Delay : 4
Last Topology Change : 387
Topology Changes Count : 26
STP Instance Settings
---------------------------
Instance Type : MSTI(2)
Instance Status : Enabled
Instance Priority : 8194 (Bridge Priority : 8192 , SYS ID Ext : 2 )
STP Instance Operational Status
--------------------------------
Regional Root Bridge : 4098 /00-1E-58-D9-13-00
Internal Root Cost : 20000
Designated Bridge : 4098 /00-1E-58-D9-13-00
Root Port : 24
Remaining Hops : 19
Last Topology Change : 473
Topology Changes Count : 26
Command: show stp ports 24
MSTP Port Information
----------------------
Port Index : 24 , Hello Time: 2 /2 , Port STP : Enabled , LBD : No
External PathCost : Auto/20000 , Edge Port : False/No , P2P : Auto /Yes
Port RestrictedRole : False, Port RestrictedTCN : False
Port Forward BPDU : Enabled
MSTI Designated Bridge Internal PathCost Prio Status Role
----- ------------------ ----------------- ---- ---------- ----------
0 1000/001E58D91300 20000 128 Forwarding Root
2 1002/001E58D91300 20000 128 Forwarding Root
Command: show stp ports 21
MSTP Port Information
----------------------
Port Index : 21 , Hello Time: 2 /2 , Port STP : Enabled , LBD : No
External PathCost : Auto/20000 , Edge Port : False/No , P2P : Auto /Yes
Port RestrictedRole : False, Port RestrictedTCN : False
Port Forward BPDU : Enabled
MSTI Designated Bridge Internal PathCost Prio Status Role
----- ------------------ ----------------- ---- ---------- ----------
0 0000/0015178EE7EE 20000 128 Discarding Alternate
2 2002/0022B026C100 20000 128 Discarding Alternate
3612:
STP Instance Settings
---------------------------
Instance Type : CIST
Instance Status : Enabled
Instance Priority : 4096 (Bridge Priority : 4096 , SYS ID Ext : 0 )
STP Instance Operational Status
--------------------------------
Designated Root Bridge : 0 /00-15-17-8E-E7-EE
External Root Cost : 20000
Regional Root Bridge : 4096 /00-1E-58-D9-13-00
Internal Root Cost : 0
Designated Bridge : 0 /00-15-17-8E-E7-EE
Root Port : 9
Max Age : 6
Forward Delay : 4
Last Topology Change : 510
Topology Changes Count : 11
STP Instance Settings
---------------------------
Instance Type : MSTI(2)
Instance Status : Enabled
Instance Priority : 4098 (Bridge Priority : 4096 , SYS ID Ext : 2 )
STP Instance Operational Status
--------------------------------
Regional Root Bridge : 4098 /00-1E-58-D9-13-00
Internal Root Cost : 0
Designated Bridge : 4098 /00-1E-58-D9-13-00
Root Port : None
Remaining Hops : 20
Last Topology Change : 532
Topology Changes Count : 11
Command: show stp ports 9
MSTP Port Information
----------------------
Port Index : 9 , Hello Time: 2 /2 , Port STP : Enabled , LBD : No
External PathCost : Auto/20000 , Edge Port : False/No , P2P : Auto /Yes
Port RestrictedRole : False, Port RestrictedTCN : False
Port Forward BPDU : Enabled
MSTI Designated Bridge Internal PathCost Prio Status Role
----- ------------------ ----------------- ---- ---------- ----------
0 0000/0015178EE7EE 20000 128 Forwarding Root
2 1002/001E58D91300 20000 128 Forwarding Master
Command: show stp ports 12
MSTP Port Information
----------------------
Port Index : 12 , Hello Time: 2 /2 , Port STP : Enabled , LBD : No
External PathCost : Auto/20000 , Edge Port : False/No , P2P : Auto /Yes
Port RestrictedRole : False, Port RestrictedTCN : False
Port Forward BPDU : Enabled
MSTI Designated Bridge Internal PathCost Prio Status Role
----- ------------------ ----------------- ---- ---------- ----------
0 1000/001E58D91300 20000 128 Forwarding Designated
2 1002/001E58D91300 20000 128 Forwarding Designated
*******************************************************
And the priority road for traffic - direct link...
I think the mistake is in FreeBSD, because without freebsd server (two direct links) it is OK...
Can you help me to correct setup freebsd?
Thanks.
More information about the freebsd-net
mailing list