博威---云架构决胜云计算

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3179|回复: 0

Cisco Catalyst 2960-S Can Route

[复制链接]
发表于 2011-3-31 10:50:17 | 显示全部楼层 |阅读模式
Cisco Catalyst 2960-S Can Route

Cisco Catalyst 2960-S Can Route 思科Catalyst 2960-S交换机可路由
Cisco Catalyst 2960-s 可配置路由功能,这听起来似乎让人很惊讶,但这却是事实。思科在2960-s交换机上提供了可路由功能,但有一定的限制。
例如:1、不允许物理接口下的no switchport(也就是不能将物理口设置成三层接口),这点可以用SVI口实现,限制8个路由接口。
2、不允许运行动态路由协议,但可以配置16条静态路由。
三层路由功能需要通过Switching Database Manager设置来实现,具体如下:

引用

SwitchA(config)#sdm prefer lanbase-routing
Changes to the running SDM preferences have been stored, but cannot take effect until the next reload. Use 'show sdm prefer' to see what SDM preference is currently active.
SwitchA(config)#^Z
SwitchA#reload
System configuration has been modified. Save? [yes/no]: y
Proceed with reload? [confirm]


需要重启,等待一会我们来检验一下:
引用

SwitchA#show sdm prefer
The current template is "lanbase-routing" template. The selected template optimizes the resources in the switch to support this level of features for 8 routed interfaces and 255 VLANs.
number of unicast mac addresses: 4K
number of IPv4 IGMP groups + multicast routes: 0.25K
number of IPv4 unicast routes: 4.25K
number of directly-connected IPv4 hosts: 4K
number of indirect IPv4 routes: 0.25K
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.125k
number of IPv4/MAC security aces: 0.375k



通过验证,我们看到有8 routed interfaces ,IPv4 unicast routes: 4.25K 这说明已经可以支持路由了。
我们来测试一下
引用

SwitchA#conf t
SwitchA(config)#ip routing
SwitchA(config)#
SwitchA(config)#int vlan 15
SwitchA(config-if)#ip add 192.168.15.1 255.255.255.0
SwitchA(config-if)#
SwitchA(config-if)#int vlan 25
SwitchA(config-if)#ip add 192.168.25.1 255.255.255.0
SwitchA(config)#^Z
SwitchA#sh ip route
C 192.168.15.0/24 is directly connected, Vlan15
C 192.168.25.0/24 is directly connected, Vlan25




看到了吧,show ip route可以看到有两个直连路由。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|boway Inc. ( 冀ICP备10011147号 )

GMT+8, 2024-5-1 14:24 , Processed in 0.087530 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表