Cisco IOS ルーティング – SDM templateの設定

スポンサーリンク

SDM templateはCat 3560等で実装されているリソース割当を変更する機能です。IPv6を使用したいならばIPv6用のリソース割当を、大量のprefixを取り扱いたいならばルーティングに特化したリソース割当を行います。

コマンド一覧

このシナリオで重要なコマンド一覧は以下の通りです。

Router(config)# sdm prefer { defalut | routing | vlan }
Router(config)# sdm prefer dual-ipv4-and-ipv6 { defalut | routing | vlan }

SDM template

初期設定確認

catalyst 3560, 3750などは、Ternary Content Addressable Memory(TCAM)に、Layer 2 switching情報やLayer 3 switching情報など様々な情報を格納します。従って、どの処理にどれだけのリソースを割り当てるかが重要になってきます。このようなリソース割り当てを管理するのが、SDM templateです。

現状のsdm templateを確認するには以下のコマンドを使用します。以下はデフォルト設定の出力ですが、MACアドレスは6000まで、ルーティングは2000まで管理できる事が読み取れます。

Rack19SW1#show sdm prefer
 The current template is "desktop default" template.
 The selected template optimizes the resources in
 the switch to support this level of features for
 8 routed interfaces and 1024 VLANs.

  number of unicast mac addresses:                  6K
  number of IPv4 IGMP groups + multicast routes:    1K
  number of IPv4 unicast routes:                    8K
    number of directly-connected IPv4 hosts:        6K
    number of indirect IPv4 routes:                 2K
  number of IPv4 policy based routing aces:         0
  number of IPv4/MAC qos aces:                      0.5K
  number of IPv4/MAC security aces:                 1K

Rack19SW1#

routing

2000 prefixまでしかルーティングできないのは、ISPなどの環境では無理があります。そのような場合は、SDM templateを変更する事によってルーティング可能なprefix数を変更する事ができます。

設定変更には以下のコマンドを使用し、設定の反映には再起動が必要です。

Rack19SW3(config)#sdm prefer 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.
Rack19SW3(config)#

IPv6 routing

IPv4, IPv6 dual stuckを使用する場合にもSDM templateの設定変更が必要です。なお、dual stuckにすると、管理可能なIPv4 prefix数が減ってしまう事に注意して下さい。

Rack19SW3(config)#sdm prefer dual-ipv4-and-ipv6 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.
Rack19SW3(config)#
タイトルとURLをコピーしました