ik j5052j5028原厂命令配置手册举例_第1页
ik j5052j5028原厂命令配置手册举例_第2页
ik j5052j5028原厂命令配置手册举例_第3页
免费预览已结束,剩余4页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、GVRP 配置举例本文主要包含内容:组网需求、配置思路、操作步骤、配置文件目录GVRP 配置举例21 配置 GVRP 示例21.1 组网需求21.2 配置思路21.3 操作步骤21.4 配置文件4GVRP 配置举例1 配置 GVRP 示例1.1 组网需求如下图所示,公司 A 和分公司之间通过多台交换设备连接,要求实现分公司跟总公司的互相通信。随着公司业务的扩展,公司 A 的销售部与公司 B 的采购部建立起业务关系,现在需要通过GVRP 功能实现公司 B 的采购部(VLAN 100,VLAN 102VLAN 105)和公司 A 的销售部(VLAN 100,VLAN 102VLAN 105)互相通

2、信。1.2 配置思路采用如下思路配置GVRP 功能:1. 在 Switch A、Switch B、Switch C 上均先使能全局 GVRP 功能;2. 配置对应需要的 VLAN;3. 配置端口为trunk 以及通过的 VLAN,使能端口的 GVRP 功能;4. 验证结果1.3 操作步骤步骤 1 在Switch A 上使能全局GVRP 功能,Switch B、C 与 Switch A 的配置类似,不赘述;SwitchA(config)# gvrp enable步骤 2 在Switch B 上配置需要被SwitchB(config)# vlan 100,102-105的 VLAN;步骤 3 配置

3、 Switch A、Switch C 的端口 1-2 为 trunk,使能端口 1-2 的 GVRP 功能;配置 Switch B 的端口 1-2 为 trunk,添加到 VLAN 100,102-105 中,使能端口 1-2 的 GVRP 功能; SwitchA(config)# interface range gigabitethernet 1-2SwitchA(config-if-range)# switchport mode trunkSwitchA(config-if-range)# gvrp enableSwitchC(config)# interface range gigabi

4、tethernet 1-2SwitchC(config-if-range)# switchport mode trunk SwitchC(config-if-range)# gvrp enableSwitchB(config)# interface range gigabitethernet 1-2SwitchB(config-if-range)# switchport mode trunkSwitchB(config-if-range)# switchport trunk allowed vlan add 100,102-105 SwitchB(config-if-range)# gvrp

5、enable步骤 4验证配置结果# 查看 Switch A、Switch B、Switch C 的 VLAN; SwitchA(config)# show vlanVLAN NameStatusModePorts-1VLAN0001STATICUntaggedGi1Gi5 Gi9Gi1 Gi1 Gi1 Gi1Gi1Gi2Gi3Gi6Gi7 Gi10Gi4Gi8100102103104105VLAN0100VLAN0102 VLAN0103 VLAN0104 VLAN0105DYNAMICDYNAMIC DYNAMIC DYNAMIC DYNAMIC-TaggedTagged Tagged Ta

6、gged TaggedSwitchB(config)# show vlanVLAN NameStatusModePorts-1VLAN0001STATICUntaggedGi1Gi5 Gi9 Gi1 Gi1 Gi1 Gi1Gi1Gi2Gi6 Gi10Gi2 Gi2 Gi2 Gi2Gi2Gi3Gi7Gi4Gi8100102103104105VLAN0100VLAN0102 VLAN0103 VLAN0104VLAN0105STATICSTATIC STATIC STATICSTATICTaggedTagged Tagged TaggedTagged-SwitchC(config)# show v

7、lanVLAN NameStatusModePorts-1VLAN0001STATICUntaggedGi1Gi5 Gi9Gi1 Gi1 Gi1 Gi1Gi1Gi2Gi6 Gi10Gi3Gi7Gi4Gi8100102103104105VLAN0100VLAN0102 VLAN0103 VLAN0104VLAN0105DYNAMICDYNAMIC DYNAMIC DYNAMIC DYNAMIC- -TaggedTagged Tagged TaggedTagged-从上述信息可以看出Switch A、Switch C 已经了Switch B 的 vlan 100,102-105;1.4 配置文件S

8、witch A 的配置文件; SwitchA(config)# show running-config systeminfohostnameSwitchA portinterface gigabitethernet 1 no shutdown switchport mode trunkswitchport trunk native vlan 1 switchport trunk allowed vlan add 1 exitinterface gigabitethernet 2 no shutdown switchport mode trunkswitchport trunk native v

9、lan 1 switchport trunk allowed vlan add 1 exitgvrpgvrp enablegvrp timer join 20 gvrp timer leave 600gvrp timer leaveall 1800 interface gigabitethernet 1gvrp enable exitinterface gigabitethernet 2gvrp enableexitSwitch B 的配置文件;systeminfo hostnameSwitchBvlanvlan 1,100,102-105portinterface gigabitethern

10、et 1 no shutdown switchport mode trunkswitchport trunk native vlan 1switchport trunk allowed vlan add 1,100,102-105 exitinterface gigabitethernet 2 no shutdown switchport mode trunkswitchport trunk native vlan 1switchport trunk allowed vlan add 1,100,102-105 exitgvrpgvrp enablegvrp timer join 20 gvr

11、p timer leave 600gvrp timer leaveall 1800 interface gigabitethernet 1gvrp enable exitinterface gigabitethernet 2 gvrp enableexitSwitch C 的配置文件; SwitchC(config)# show running-config systeminfohostnameSwitchC portinterface gigabitethernet 1 no shutdown switchport mode trunkswitchport trunk native vlan 1 switchport trunk allowed vlan add 1 exitinterface gigabitethernet 2no shutdownswitchport mode trunk switchport trunk native vlan 1switchport trunk allowed

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论