端口VLAN學(xué)習(xí)能力GVRP協(xié)議

啟用GVRP一定要在交換機(jī)之間的trunk鏈路

靜態(tài)VLAN:手工配置的VLAN

動態(tài)VLAN:通過GVRP協(xié)議創(chuàng)建的VLAN。

GVRP協(xié)議的3種注冊模式

1.Normal模式:活躍分子。允許該端口動態(tài)注冊,注銷vlan.傳播動態(tài)vlan和靜態(tài)VLAN信息。

2.Fixed模式:大款 禁止該端口動態(tài)注冊和注銷vlan,只傳播靜態(tài)vlan信息,不傳播

動態(tài)vlan信息。例如被設(shè)置為Fixed模式的Trunk端口,即使允許所有VLAN通過,實際

通過的VLAN只能是手動創(chuàng)建的那部分。

3.Forbidden模式:禁止該端口動態(tài)注冊,注銷VLAN,不傳播除機(jī)器本身VLAN1以外的

任何VLAN信息。例如被配置為Forbidden模式的trunk端口,即使允許所有的

VLAN通過,實際通過的VLAN也只能是VLAN1.

//啟用GVRP的端口必須都是trunk模式

[sw1]interface GigabitEthernet 0/0/1

[sw1-GigabitEthernet0/0/1]port link-type trunk

[sw1-GigabitEthernet0/0/1]port trunk allow-pass vlan all

//先全局啟動GVRP ,再在局部端口啟動GVRP

[sw1]gvrp //注冊GVRP

[sw1-GigabitEthernet0/0/1]gvrp registration normal //進(jìn)入端口,注冊gvrp的normal模式

[sw1]vlan batch 10 20 //批量創(chuàng)建VLAN 10 20

[sw1]display vlan summary //查看VLAN信息匯總

static vlan:

Total 3 static vlan.

? 1 10 20

<sw2>display gvrp statistics? //查看GVRP學(xué)習(xí)狀態(tài)

? GVRP statistics on port GigabitEthernet0/0/1

? ? GVRP status? ? ? ? ? ? ? ? ? ? ? ? : Enabled

? ? GVRP registrations failed? ? ? ? ? : 0

? ? GVRP last PDU origin? ? ? ? ? ? ? ? : 4c1f-ccee-7380

? ? GVRP registration type? ? ? ? ? ? ? : Normal

? GVRP statistics on port GigabitEthernet0/0/2

? ? GVRP status? ? ? ? ? ? ? ? ? ? ? ? : Enabled

? ? GVRP registrations failed? ? ? ? ? : 0

? ? GVRP last PDU origin? ? ? ? ? ? ? ? : 4c1f-cc0b-76eb

? ? GVRP registration type? ? ? ? ? ? ? : Fixed

dynamic vlan:

Total 4 dynamic vlan.

? 30 40 50 60

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容