文档详情

以太网通道VLANSTPHSRP3层交换配置.doc

发布:2018-10-08约6.42千字共8页下载文档
文本预览下载声明
以太网通道+VLAN+STP+HSRP+3层交换配置 由于水平有限,不对的地方还望高手指教,这里先谢过了。由于cisco的PACKET TRACER 5。2还不支持HSRP ,所以只写出了配置步骤。 先上拓扑图。 路由器RA的配置步骤,这里没有涉及到路由器的很多配置,都是很简单的基本配置,不在详细说明,直接上SHOW R RA#show s % Ambiguous command: show s RA#show r Building configuration... Current configuration : 838 bytes ! version 12.2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname RA ! ! ! ! ! ! ! ! ! ! no ip domain-lookup ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet1/0 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto ! interface Serial2/0 no ip address shutdown ! interface Serial3/0 no ip address shutdown ! interface FastEthernet4/0 no ip address shutdown ! interface FastEthernet5/0 no ip address shutdown ! router rip version 2 network 192.168.1.0 network 192.168.2.0 network 192.168.3.0 network 192.168.4.0 network 192.168.5.0 network 192.168.6.0 ! ip classless ! ! ! ! ! ! ! ! ! line con 0 exec-timeout 0 0 logging synchronous line vty 0 4 login ! ! ! End 2.3层交换机的配置。 第一部分S3A配置 enable //进入特权模式 configture terminal //进入配置模式 hostname s3a //更改交换机名字为s3a line console 0 //登陆控制台接口 exec-timeout 0 0 //配置超时间为永不超时,不过这会引起安全问题,建议合理设置。 no ip domain-lookup // 禁止域名解析,防止输入错误命令解析浪费时间 logging s //配置输入同步 interface range f0/1-6 //进入接口1-6 switchport mode trunk //设置接口为trunk(中继)模式 VTP 配置 vtp mode server //设置vtp模式为服务器模式 vtp domain bobo //定义一个名为“bobo”的域名,整个vtp域共享 vlan 2 //创建vlan 2 vlan 3 //创建vlan3 vlan 4 //创建vlan4 STP 配置 spanning-tree vlan1 root primary //设置vlan1 在s3a上为根网桥 spanning-tree vlan2 root primary //设置vlan2 在s3a上为根网桥 spanning-tree vlan3 root secondary //设置vlan3 在s3a上为非根网桥 spanning-tree vlan4 root secondary //设置vlan4 在s3a上为非根网桥 spanning-tree backbonefast 以太网通道配置 Interface range f0/1-2 //进入接口f0/1-2 Channel-group 1 mode on //配置以太网通道1 Hsrp配置 Interface vlan 1
显示全部
相似文档