第一范文网 - 专业文章范例文档资料分享平台

思科网络典型配置案例集锦

来源:用户分享 时间:2025/5/24 18:28:58 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

思科网络典型配置案例集锦(吐血推荐)

本人整理的部分配置方案,现在还不全,一直在努力中 ,我会不断更新

2900XL VLAN config

--------------------------------------------------------------------------------

Switch# vlan database

Switch(vlan)# vtp domain domain-name

Switch(vlan)# vtp domain domain-name password password-value

Switch(vlan)# vtp server

Switch(vlan)# show vtp status

若想Disable VTP,只须将VTP模式改为transparent

即Switch(vlan)# vtp transparent

2. 激活VTP V2(交换机默认的是VTP V1)。

Switch# vlan database

Switch(vlan)# vtp v2-mode

Switch# show vtp status

3. 增加VLAN。Catalyst 2900XL系列交换机最大支持64个激活的VLAN,

VLAN ID 号从1-1005。

Switch# vlan database

Switch(vlan)# vlan vlan-id name vlan-name

Switch# show vlan name vlan-name

Switch(vlan)# no vlan vlan-id //删除VLAN

4. 将端口加入VLAN。

Switch# configure terminal

Switch(config)# interface interface

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan vlan-id

Switch(config-if)# show interface interface-id switchport

5. 配置trunk 端口。

Switch# configure terminal

Switch(config)# interface interface

Switch(config-if)# switchport mode trunk

Switch(config-if)# switchport trunk encapsulation isl

Switch(config-if)# end

Switch# show interface interface switchport

Switch# copy running-config startup-config

6. 配置trunk 上允许的VLAN。

Switch(config)# interface interface

Switch(config-if)# switchport mode trunk

Switch(config-if)# switchport trunk allowed vlan remove vlan-id-range

Switch(config-if)# switchport trunk allowed vlan add vlan-id-range

Switch(config-if)# end

Switch# show interface interface switchport allowed-vlan

若想取消trunk端口,只需

Switch(config-if)# no switchport mode

7. 使用STP实现负载。

实现负载分担有两种方法:

1) 使用端口优先级。 配置:

Switch_1(config-if)# interface fa0/1

Switch_1(config-if)# spanning-tree vlan 8 9 10 port-priority 10

Switch_1(config)# interface fa0/2

Switch_1(config-if)# spanning-tree vlan 3 4 5 6 port-priority 10

2) 使用路径值。例如:

Switch_1(config)# interface fa0/1

Switch_1(config-if)# spanning-tree vlan 2 3 4 cost 30

Switch_1(config)# interface fa0/2

Switch_1(config-if)# spanning-tree vlan 8 9 10 cost 30

-----------------------------------

Cisco HSRP的配置

-----------------

version 12.0

service timestamps debug uptime service timestamps log uptime no service password-encryption !

hostname r1 !

enable password cisco !

ip subnet-zero ! !

! !

interface Ethernet0

ip address 136.147.107.101 255.255.0.0 no ip redirects

no ip directed-broadcast

standby 150 timers 5 15 /* 定义150组5秒交换一次hello信息,15秒没收到 hello信息就开始切换 */

standby 150 priority 110 /* 定义150组的主路由器权值,值越大,为主路由 器希望越大 */

standby 150 preempt /* enable 150组的hsrp抢占功能 */

standby 150 authentication cisco /* 设置150组的router身份验证串 */ standby 150 ip 136.147.107.100 /* 定义150组的浮动地址,也是这台router 连接的网络的网关 */ standby 150 track Ethernet0 /* 定义监控的端口 */ !

interface Serial0 no ip address

no ip directed-broadcast no ip mroute-cache shutdown no fair-queue !

ip classless ! !

line con 0

transport input none line 1 16 line aux 0 line vty 0 4 password cisco login ! end

-----------------------------------

ISDN 拨号备份

最近我在调试一个网络,该网络使用一对二方式.

其中一个远端A与Internet互连,中心点与另外一个远端B

搜索更多关于: 思科网络典型配置案例集锦 的文档
思科网络典型配置案例集锦.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c1qgxm4vsq02xzhu2l5cl_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top