美文网首页
端口VLAN学习能力GVRP协议

端口VLAN学习能力GVRP协议

作者: 搞IT青年小唐唐 | 来源:发表于2018-12-20 15:12 被阅读0次

    启用GVRP一定要在交换机之间的trunk链路

    静态VLAN:手工配置的VLAN

    动态VLAN:通过GVRP协议创建的VLAN。

    GVRP协议的3种注册模式

    1.Normal模式:活跃分子。允许该端口动态注册,注销vlan.传播动态vlan和静态VLAN信息。

    2.Fixed模式:大款 禁止该端口动态注册和注销vlan,只传播静态vlan信息,不传播

    动态vlan信息。例如被设置为Fixed模式的Trunk端口,即使允许所有VLAN通过,实际

    通过的VLAN只能是手动创建的那部分。

    3.Forbidden模式:禁止该端口动态注册,注销VLAN,不传播除机器本身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 //进入端口,注册gvrp的normal模式

    [sw1]vlan batch 10 20 //批量创建VLAN 10 20

    [sw1]display vlan summary //查看VLAN信息汇总

    static vlan:

    Total 3 static vlan.

      1 10 20

    <sw2>display gvrp statistics  //查看GVRP学习状态

      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

    相关文章

      网友评论

          本文标题:端口VLAN学习能力GVRP协议

          本文链接:https://www.haomeiwen.com/subject/cevykqtx.html