ImageVerifierCode 换一换
格式:DOCX , 页数:7 ,大小:15.73KB ,
资源ID:11953083      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/11953083.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(CISCO三层交换机配置实例.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

CISCO三层交换机配置实例.docx

1、CISCO三层交换机配置实例比较全面的三层交换机配置实例(带命令解释哟!)Enable /进入私有模式Configure terminal /进入全局模式service password-encryption /对密码进行加密hostname Catalyst 3550-12T1 /给三层交换机定义名称enable password 123456. /enable密码Enable secret 654321 /enable的加密密码(应该是乱码而不是654321这样)Ip subnet-zero /允许使用全0子网(默认都是打开的)Ip name-server 172.16.8.1 172.1

2、6.8.2 /三层交换机名字Catalyst 3550-12T1对应的IP地址是172.16.8.1Service dhcp /提供DHCP服务ip routing /启用三层交换机上的路由模块ExitVtp mode server /定义VTP工作模式为sever模式Vtp domain centervtp /定义VTP域的名称为centervtpVlan 2 name vlan2 /定义vlan并给vlan取名(如果不取名的话,vlan2的名字应该是vlan002)Vlan 3 name vlan3Vlan 4 name vlan4Vlan 5 name vlan5Vlan 6 name

3、vlan6Vlan 7 name vlan7Vlan 8 name vlan8Vlan 9 name vlan9Exitinterface Port-channel 1 /进入虚拟的以太通道组1switchport trunk encapsulation dot1q /给这个接口的trunk封装为802.1Q的帧格式switchport mode trunk /定义这个接口的工作模式为trunkswitchport trunk allowed vlan all /在这个trunk上允许所有的vlan通过Interface gigabitethernet 0/1 /进入模块0上的吉比特以太口1s

4、witchport trunk encapsulation dotlq /给这个接口的trunk封装为802.1Q的帧格式switchport mode trunk /定义这个接口的工作模式为trunkswitchport trunk allowed vlan all /在这个trunk上允许所有的vlan通过channel-group 1 mode on /把这个接口放到快速以太通道组1中Interface gigabitethernet 0/2 /同上switchport trunk encapsulation dotlqswitchport mode trunkswitchport tr

5、unk allowed vlan allchannel-group 1 mode onport-channel load-balance src-dst-ip /定义快速以太通道组的负载均衡方式(依*源和目的IP的方式)interface gigabitethernet 0/3 /进入模块0上的吉比特以太口3switchport trunk encapsulation dotlq /给trunk封装为802.1Qswitchport mode trunk /定义这个接口的工作模式为trunkswitchport trunk allowed vlan all /允许所有vlan信息通过inter

6、face gigabitethernet 0/4 /同上switchport trunk encapsulation dotlqswitchport mode trunkswitchport trunk allowed vlan allinterface gigbitethernet 0/5 /同上switchport trunk encapsulation dotlqswitchport mode trunkswitchport trunk allowed vlan allinterface gigbitethernet 0/6 /同上switchport trunk encapsulati

7、on dotlqswitchport mode trunkswitchprot trunk allowed vlan allinterface gigbitethernet 0/7 /进入模块0上的吉比特以太口7Switchport mode access /定义这个接口的工作模式为访问模式switchport access vlan 9 /定义这个接口可以访问哪个vlan(实际就是分配这个接口到vlan)no shutdownspanning-tree vlan 6-9 cost 1000 /在生成树中,vlan6-9的开销定义为10000interface range gigabiteth

8、ernet 0/8 10 /进入模块0上的吉比特以太口8,9,10switchport mode access /定义这些接口的工作模式为访问模式switchport access vlan 8 /把这些接口都分配到vlan8中no shutdownspanning-tree portfast /在这些接口上使用portfast(使用portfast以后,在生成树的时候不参加运算,直接成为转发状态)interface gigabitethernet 0/11 /进入模块0上的吉比特以太口11switchport trunk encapsulation dotlq /给这个接口封装为802.1Q

9、switchport mode trunk /定义这个接口的工作模式为trunkswitchport trunk allowed vlan all /允许所有vlan信息通过interface gigabitethernet 0/12 /同上switchport trunk encapsulation dotlqswitchport mode trunkswitchport trunk allowed vlan allinterface vlan 1 /进入vlan1的逻辑接口(不是物理接口,用来给vlan做路由用)ip address 172.16.1.7 255.255.255.0 /配置

10、IP地址和子网掩码no shutdownstandby 1 ip 172.16.1.9 /开启了冗余热备份(HSRP),冗余热备份组1,虚拟路由器的IP地址为172.16.1.9standby 1 priority 110 preempt /定义这个三层交换机在冗余热备份组1中的优先级为110,preempt是用来开启抢占模式interface vlan 2 /同上ip address 172.16.2.252 255.255.255.0no shutdownstandby 2 ip 172.16.2.254standby 2 priority 110 preemptip access-gro

11、up 101 in /在入方向上使用扩展的访问控制列表101interface vlan 3 /同上ip address 172.16.3.252 255.255.255.0no shutdownstandby 3 ip 172.16.3.254standby 3 priority 110 preemptip access-group 101 ininterface vlan 4 /同上ip address 172.16.4.252 255.255.255.0no shutdownstandby 4 ip 172.16.4.254standby 4 priority 110 preemptip

12、 access-group 101 ininterface vlan 5ip address 172.16.5.252 255.255.255.0no shutdownstandby 5 ip 172.16.5.254standby 5 priority 110 preemptip access-group 101 ininterface vlan 6ip address 172.16.6.252 255.255.255.0no shutdownstandby 6 ip 172.16.6.254standby 6 priority 100 preemptinterface vlan 7ip a

13、ddress 172.16.7.252 255.255.255.0no shutdownstandby 7 ip 172.16.7.254standby 7 priority 100 preemptinterface vlan 8ip address 172.16.8.252 255.255.255.0no shutdownstandby 8 ip 172.16.8.254standby 8 priority 100 preemptinterface vlan 9ip address 172.16.9.252 255.255.255.0no shutdownstandby 9 ip 172.1

14、6.9.254standby 9 priority 100 preemptaccess-list 101 deny ip any 172.16.7.0 0.0.0.255 /扩展的访问控制列表101access-list 101 permit ip any anyInterface vlan 1 /进入vlan1这个逻辑接口Ip helper-address 172.16.8.1 /可以转发广播(helperaddress的作用就是把广播转化为单播,然后发向172.16.8.1)Interface vlan 2Ip helper-address 172.16.8.1Interface vlan

15、 3ip helper-address 172.16.8.1interface vlan 4ip helper-address 172.16.8.1interface vlan 5ip helper-address 172.16.8.1interface vlan 6ip helper-address 172.16.8.1interface vlan 7ip helper-address 172.16.8.1interface vlan 9ip helper-address 172.16.8.1router rip /启用路由协议RIPversion 2 /使用的是RIPv2,如果没有这句,则是使用RIPv1network 172.16.0.0 /宣告直连的网段exitip route 0.0.0.0 0.0.0.0 172.16.9.250 /缺省路由,所有在路由表中没有办法匹配的数据包,都发向下一跳地址为172.16.9.250这个路由器line con 0line aux 0line vty 0 15 /telnet线路(路由器只有5个,是0-4)password 12345678 /login密码loginendcopy running-config startup-config 保存配置

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1