VTP+STP+HSRP综合配置实例.docx_第1页
VTP+STP+HSRP综合配置实例.docx_第2页
VTP+STP+HSRP综合配置实例.docx_第3页
VTP+STP+HSRP综合配置实例.docx_第4页
VTP+STP+HSRP综合配置实例.docx_第5页
免费预览已结束,剩余1页可下载查看

下载本文档

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

文档简介

VTP+STP+HSRP综合配置实例路由基本配置 接口配置 conf t int f0/0 ip add 1.1.1.1 255.255.255.0 no shu int f1/0 ip add 2.2.2.1 255.255.255.0 no shu int loopback 1 ip add 3.3.3.1 255.255.255.0 no shu end rip路由协议配置 conf t router rip ver 2 no auto network 1.1.1.0 network 2.2.2.0 network 3.3.3.0 end 三层交换机S3A conf t vlan data vtp domain sh vtp password 123456 vtp v2-mode vtp pruning vl 2 vl 3 vl 4 exit conf t int f0/0 no switchport /将接口改成路由口 ip add 1.1.1.254 255.255.255.0 no shu int vl 1 ip add 192.168.1.254 255.255.255.0 int vl 2 ip add 192.168.2.254 255.255.255.0 int vl 3 ip add 192.168.3.254 255.255.255.0 int vl 4 ip add 192.168.4.254 255.255.255.0 no shu end conf t spanning-tree vlan 1 root primary /配置S3A为VLAN1的主根网桥 spanning-tree vlan 2 root secondary /配置S3A为VLAN2的备份根网桥 spanning-tree vlan 3 root primary /配置S3A为VLAN3的主根网桥 spanning-tree vlan 4 root secondary /配置S3A为VLAN4的备份根网桥 spanning-tree backbonefast /增强生成树 int f0/11 sw mo tr int f0/12 sw mo tr int f0/13 sw mo tr int range f0/14 - 15 channel-group 1 mode on /将F0/14-15逻辑捆绑为一个以太网接口 int port-channel 1 sw mo tr end conf t router rip ver 2 no auto network 1.1.1.0 network 192.168.1.0 network 192.168.2.0 network 192.168.3.0 network 192.168.4.0 end 配置HSRP conf t int vl 1 standby 1 ip 192.168.1.1 standby 1 priority 180 standby 1 preempt standby 1 track f0/0 50 int vl 2 standby 2 ip 192.168.2.1 standby 2 priority 150 int vl 3 standby 3 ip 192.168.3.1 standby 3 priority 180 standby 3 preempt standby 3 track f0/0 50 int vl 4 standby 4 ip 192.168.4.1 standby 4 priority 150 end 三层交换机S3B vtp与vlan的配置 vlan data vtp domain sh vtp password 123456 vtp v2-mode vtp pruning vl 2 vl 3 vl 4 exit conf t int f0/0 no switchport /将接口改成路由口 ip add 2.2.2.254 255.255.255.0 no shu int vl 1 ip add 192.168.1.253 255.255.255.0 no shu int vl 2 ip add 192.168.2.253 255.255.255.0 no shu int vl 3 ip add 192.168.3.253 255.255.255.0 no shu int vl 4 ip add 192.168.4.253 255.255.255.0 no shu end conf t spanning-tree vlan 1 root secondary /配置S3B为VLAN1的备份根网桥 spanning-tree vlan 2 root primary /配置S3B为VLAN1的主根网桥 spanning-tree vlan 3 root secondary /配置S3B为VLAN1的备份根网桥 spanning-tree vlan 4 root primary /配置S3B为VLAN1的主根网桥 spanning-tree backbonefast /增强生成树 int f0/11 sw mo tr int f0/12 sw mo tr int f0/13 sw mo tr int range f0/14 - 15 channel-group 1 mode on int port-channel 1 sw mo tr end conf t router rip ver 2 no auto network 2.2.2.0 network 192.168.1.0 network 192.168.2.0 network 192.168.3.0 network 192.168.4.0 end 配置HSRP conf t int vl 1 standby 1 ip 192.168.1.1 standby 1 priority 150 int vl 2 standby 2 ip 192.168.2.1 standby 2 priority 180 standby 2 preempt standby 2 track f0/0 50 int vl 3 standby 3 ip 192.168.3.1 standby 3 priority 150 int vl 4 standby 4 ip 192.168.4.1 standby 4 priority 180 standby 4 preempt standby 4 track f0/0 50 end 二层交换机S2A conf t vlan data vtp client vtp domain sh vtp password 123456 exit conf t int f0/14 sw mo tr int f0/15 sw mo tr end conf t int f0/1 spanning-tree portfast /开启快速端口,定义接口用于与连接PC,使用于接入层交换机 spanning-tree portfast /定义当这个端口被错误连接到SW和HUB时,在收到BPDU包后就会进入errdisable状态,从而避免环路。 exit spanning-tree backbonefast /增强生成树 spanning-tree uplinkfast /开启上行端口。 end 二层交换机S2B conf t vlan data vtp client vtp domain sh vtp password 123456 exit conf t int f0/14 sw mo tr int f0/15 sw mo tr end conf t int f0/2 spanning-tree portfast /开启快速端口,定义接口用于与连接PC,使用于接入层交换机 spanning-tree portfast /定义当这个端口被错误连接到SW和HUB时,在收到BPDU包后就会进入errdisable状态,从而避免环路。 exit spanning-tree backbonefast /增强生成树 spanning-tree uplinkfast /开启上行链路 end 二层交换机S2C conf t vlan data vtp client vtp domain sh vtp password 123456 exit conf t int f0/14 sw mo tr int f0/15 sw mo tr end conf t int f0/3 spanning-tree por

温馨提示

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

评论

0/150

提交评论