2017年10月10日火曜日

Catalyst2960LのL3機能

2960Lは15.2(5)E2以降でLayer3の機能が使えるようで。。。
シスコサポートコミュニティ

試したのはWS-C2960L-24TS-LLで15.2(6)E
リリースノートによると
  • Routing Information Protocol: (LANLite) - RIP is a commonly used routing protocol in small to medium TCP/IP networks. It is supported in both IPv4 and IPv6 network environments

Open Caveats
Bug ID
Headline
Scale: Failed route reprogramming into tcam hold till the routes expires from CEF RIP


BUGもあるけどRIPも使えるみたい。




まずはスイッチでルーティングする時のお約束

Switch(config)#ip routing



あとは各種設定
Switch#show run | section route
router rip
version 2
network 1.0.0.0
network 10.0.0.0
ip route 192.168.0.0 255.255.0.0 1.1.1.1


で、確認

Switch#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Vlan1
L 1.1.1.254/32 is directly connected, Vlan1
R 2.0.0.0/8 [120/1] via 10.10.11.2, 00:00:01, Vlan11
~略~
S 192.168.0.0/16 [1/0] via 1.1.1.1

Switch#show ip rip database
1.0.0.0/8 auto-summary
1.1.1.0/24 directly connected, Vlan1
2.0.0.0/8 auto-summary
2.0.0.0/8
[1] via 10.10.11.2, 00:00:20, Vlan11
~略~


Switch#show ip protocols
*** IP Routing is NSF aware ***

Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 21 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
Vlan1 2 2 No none

~略~
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
1.0.0.0
10.0.0.0
Routing Information Sources:
Gateway Distance Last Update
10.10.11.2 120 00:00:23
Distance: (default is 120)



StaticRouteとRIPv2が使える。
安価なL2スイッチなんだけどね。
ちなみに、

Switch(config)#router ?
bgp Border Gateway Protocol (BGP)
isis ISO IS-IS
iso-igrp IGRP for OSI networks
mobile Mobile routes
odr On Demand stub Routes
ospf Open Shortest Path First (OSPF)
ospfv3 OSPFv3
rip Routing Information Protocol (RIP)


となるので、一瞬期待するのだが、
rip以外はダメな模様。


Switch(config)#router ospf 1
Protocol not in this image
Switch(config)#router bgp 1
Protocol not in this image
Switch(config)#router isis
Protocol not in this image
Switch(config)#


将来実装されたりするのかな?
さすがにしないよね。

ちなみに、StaticRouteは16個まで

だけど、16個超えても投入できる。
とりあえず254ルート(10.1.1.1~254)投入できたが、TCAMが溢れたよってLogが。
%SYS-5-CONFIG_I: Configured from console by consoleHW-L3V4-TCAM: Hardware IPv4 Route TCAM is full, packets might be forwarded in software

Switch#show platform ip route all | inc Prefix
Prefix: 10.1.1.1/32
~略~
Prefix: 10.1.1.235/32
Prefix: 10.10.11.0/24
Prefix: 10.10.11.0/32
Prefix: 10.10.11.1/32
Prefix: 10.10.11.2/32
Prefix: 10.10.11.255/32
Prefix: 127.0.0.0/8
Prefix: 255.0.0.0/4
Prefix: 255.255.255.255/32

235ルート+Connectとその他ルートしかTCAMに載ってない。
変更できないSDMテンプレート見ると256ルートまでなんとなく行けそうな雰囲気もあるのですが。

Switch#show sdm prefer
The current template is default template

 The selected template optimizes the resources in
 the switch to support this level of features for
 64 SVIs and 64 VLANs.
number of Multicast groups                      :1024
number of Unicast MAC addresses                 :8192
number of MAC/IPv4 Access Control Entries       :384
number of IPv6 Access Control Entries           :256
number of IPv4 Direct Route Entries             :542
number of IPv4 Indirect Route Entries           :256
number of IPv6 Direct Route Entries             :414
number of IPv6 Indirect Route Entries           :128


過度な期待はダメだけど、2960L-8なんてamazonで1万円台で買えるし、ちょっとした誤家庭にはいいかもね。

0 件のコメント:

コメントを投稿