您好,登錄后才能下訂單哦!
上一次這筆記沒有在博客里發表成功,今天再試試吧。
個人理解,時間關系,寫的比較亂,還請包涵。
拓撲:
提醒:這個拓撲開起來后,看到實驗效果后請馬上關閉,否則eNSP會死機,死機后可能出現無法預料情況,可以整個關掉eNSP,想用再打開eNSP即可
[R1]dis stp
Protocol Status :Disabled
Protocol Standard :IEEE 802.1s
Version :3
CIST Bridge Priority :32768
MAC address :5489-98b8-3a86
Max age(s) :20
Forward delay(s) :15
Hello time(s) :2
Max hops :20
路由器上STP生成樹默認關閉
關鍵配置:
[R1]dis cur
#
sysname R1
#
router id 91.1.1.1
#
vlan batch 123
#
interface Vlanif123
ip address 123.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/0
portswitch
shutdown
port hybrid pvid vlan 123
undo port hybrid vlan 1
port hybrid untagged vlan 123
#
interface GigabitEthernet0/0/1
portswitch
shutdown
port hybrid pvid vlan 123
undo port hybrid vlan 1
port hybrid untagged vlan 123
#
ospf 10
area 0.0.0.0
network 123.1.1.1 0.0.0.0
#
[R2]dis cur
#
sysname R2
#
router id 92.2.2.2
#
vlan batch 123
#
interface Vlanif123
ip address 123.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
portswitch
port hybrid pvid vlan 123
undo port hybrid vlan 1
port hybrid untagged vlan 123
這里有個小竅門:如果要更改為access接口會提示錯誤:renew configuration,這是希望你把接口下所有相關hybrid配置全部刪除后再次配置接口
#
interface GigabitEthernet0/0/2
portswitch
port hybrid pvid vlan 123
undo port hybrid vlan 1
port hybrid untagged vlan 123
#
ospf 10
area 0.0.0.0
network 123.1.1.2 0.0.0.0
#
[R3]dis cur
#
sysname R3
#
router id 93.3.3.3
#
vlan batch 123
#
interface Vlanif123
ip address 123.1.1.3 255.255.255.0
#
interface GigabitEthernet0/0/0
portswitch
port hybrid pvid vlan 123
undo port hybrid vlan 1
port hybrid untagged vlan 123
#
interface GigabitEthernet0/0/2
portswitch
port hybrid pvid vlan 123
undo port hybrid vlan 1
port hybrid untagged vlan 123
#
ospf 10
area 0.0.0.0
network 123.1.1.3 0.0.0.0
#
實驗結果建議用:display ospf error查看router id confusion結果
這個實驗說明RID也具備防環功能,原因是二層打破了hello只有一跳的限制,自己收到自己的hello報文從而報錯,說明出現環路
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。