您好,欢迎来电子发烧友网! ,新用户?[免费注册]

您的位置:电子发烧友网>电子百科>无线通信>

二层网络全局配置 - 什么是单臂路由?关于单臂路由的相关问题解析

2017年12月05日 12:35 网络整理 作者: 用户评论(0

  2、二层网络全局配置

  SW3的Vlan配置

  SW3#vlandatabase//进入Vlan配置模式

  SW3(vlan)#vlan8//创建Vlan8、10、11

  VLAN8added:

  Name:VLAN0008

  SW3(vlan)#vlan10

  VLAN10added:

  Name:VLAN0010

  SW3(vlan)#vlan11

  VLAN11added:

  Name:VLAN0011

  SW3(vlan)#exi

  SW3#showvlan-switch//查看Vlan配置信息

  VLANNameStatusPorts

  1defaultactiveFa0/0,Fa0/1,Fa0/2,Fa0/3

  Fa0/4,Fa0/5,Fa0/6,Fa0/7

  Fa0/8,Fa0/9,Fa0/10,Fa0/11

  Fa0/12,Fa0/13,Fa0/14,Fa0/15

  8VLAN0008active

  10VLAN0010active

  11VLAN0011active

  SW4的Vlan配置

  SW4#vlandatabase//进入Vlan配置模式

  SW4(vlan)#vlan8//创建Vlan8、10、11

  VLAN8added:

  Name:VLAN0008

  SW4(vlan)#vlan10

  VLAN10added:

  Name:VLAN0010

  SW4(vlan)#vlan11

  VLAN11added:

  Name:VLAN0011

  SW4(vlan)#exi

  SW4#showvlan-switch//查看Vlan配置信息

  VLANNameStatusPorts

  1defaultactiveFa0/0,Fa0/1,Fa0/2,Fa0/3

  Fa0/4,Fa0/5,Fa0/6,Fa0/7

  Fa0/8,Fa0/9,Fa0/10,Fa0/11

  Fa0/12,Fa0/13,Fa0/14,Fa0/15

  8VLAN0008active

  10VLAN0010active

  11VLAN0011active

  3、二层链路调试

  SW3的Access接口配置

  SW3#configureterminal

  Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

  SW3(config)#interfa0/10//进入接口fa0/10配置

  SW3(config-if)#switchportmodeaccess//配置接口为Access模式

  SW3(config-if)#switchportaccessvlan10//把接口划到Vlan10

  SW3(config-if)#exi

  SW3(config)#interfa0/11//进入接口f0/11配置

  SW3(config-if)#switchportmodeaccess//配置接口为Access模式

  SW3(config-if)#switchportaccessvlan11//把接口划到Vlan11

  SW3(config-if)#exi

  SW4的Access接口配置

  SW4#

  SW4#configureterminal

  Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

  SW4(config)#interfa0/10

  SW4(config-if)#switchportmodeaccess

  SW4(config-if)#switchportaccessvlan10

  SW4(config-if)#exi

  SW4(config)#interfa0/11

  SW4(config-if)#switchportmodeaccess

  SW4(config-if)#switchportaccessvlan11

  SW4(config-if)#exi

  SW3——SW4的Trunk链路调测

  SW3(config)#interfa0/3

  SW3(config-if)#switchporttrunkencapsulationdot1q//选择封装协议

  SW3(config-if)#switchportmodetrunk//配置接口模式为Trunk

  SW3(config-if)#switchporttrunkallowedvlanall//Trunk允许所有Vlan的信息通过

  SW3(config-if)#exi

  SW4(config)#interfa0/3

  SW4(config-if)#switchporttrunkencapsulationdot1q

  SW4(config-if)#switchportmodetrunk

  SW4(config-if)#switchporttrunkallowedvlanall

  SW4(config-if)#exi

  4、二层设备网管地址配置

  SW3的网管接口配置

  SW3#configureterminal Enterconfigurationcommands,oneperline.EndwithCNTL/Z. SW3(config)#intervlan8//为SW3配置网管地址 SW3(config-if)#ipaddress192.168.8.130255.255.255.128 SW3(config-if)#noshutdown SW3(config-if)#exit SW3(config)#ipdefault-gateway192.168.8.129//为SW3配置网关 SW3(config)#end SW3#showrun

  SW4的网管接口配置

  SW4(config)#intervlan8//为SW4配置网管地址

  SW4(config-if)#ipaddress192.168.8.131255.255.255.128

  SW4(config-if)#noshutdown

  SW4(config-if)#exi

  SW4(config)#ipdefault-gateway192.168.8.129//为SW4配置网关

  SW4(config)#exi SW4#showipinterfacebrief//查看SW4上接口配置信息

  InterfaceIP-AddressOK?MethodStatusProtocol

  FastEthernet0/0unassignedYESunsetupdown

  FastEthernet0/1unassignedYESunsetupdown

  FastEthernet0/2unassignedYESunsetupdown

  FastEthernet0/3unassignedYESunsetupup

  FastEthernet0/4unassignedYESunsetupdown

  FastEthernet0/5unassignedYESunsetupdown

  FastEthernet0/6unassignedYESunsetupdown

  FastEthernet0/7unassignedYESunsetupdown

  FastEthernet0/8unassignedYESunsetupdown

  FastEthernet0/9unassignedYESunsetupdown

  FastEthernet0/10unassignedYESunsetupup

  SW4#showinterfacesstatus//查看SW4上接口的状态

  PortNameStatusVlanDuplexSpeedType

  Fa0/0notconnect1autoauto10/100BaseTX

  Fa0/1notconnect1autoauto10/100BaseTX

  Fa0/2notconnect1autoauto10/100BaseTX

  Fa0/3connectedtrunka-fulla-10010/100BaseTX

  Fa0/4notconnect1autoauto10/100BaseTX

  Fa0/5notconnect1autoauto10/100BaseTX

  Fa0/6notconnect1autoauto10/100BaseTX

  Fa0/7notconnect1autoauto10/100BaseTX

  Fa0/8notconnect1autoauto10/100BaseTX

  Fa0/9notconnect1autoauto10/100BaseTX

  Fa0/10connected10a-fulla-10010/100BaseTX

  Fa0/11connected11a-fulla-10010/100BaseTX

  Fa0/12notconnect1autoauto10/100BaseTX

  Fa0/13notconnect1autoauto10/100BaseTX

  Fa0/14notconnect1autoauto10/100BaseTX

  Fa0/15notconnect1autoauto10/100BaseTX

非常好我支持^.^

(0) 0%

不好我反对

(0) 0%

( 发表人:邓家乐 )

      发表评论

      用户评论
      评价:好评中评差评

      发表评论,获取积分! 请遵守相关规定!