#amazon(4844322214)
 

スタティック ルーティング

設定

rt(config)# ip route network netmask next-router [distance]

デフォルト ルート

ソース ルーティング

確認

rt# show ip route

設定解除

ルート フィルタ

パッシブ インターフェース

ディストリビュート リスト

  1. ACL の場合
    rt(config)# access-list acl-num permit|deny ip-addr wildcard-mask
    
    • ip-addr wildcard-mask
      • フィルタしたい宛先ルート
    • permit|deny
      • 特定の情報のみ送信/受信する場合は、permit を使う
      • 特定の情報を送信/受信しない場合は、deny を使う
  2. プレフィックス リストの場合
    rt(config)# ip prefix-list list-name seq num permit|deny ip-addr/length [ge ge-length] [le le-length]
    
    • num
      • シーケンス番号
      • 1~4,294,967,294
    • ip-addr/length
      • フィルタしたい宛先ルート
    • ge-length
    • le-length
  3. フィルタの適用
    rt(config)# router protocol
    rt(config-router)# distribute-list acl-num|list-name in|out if|routing-process
    
    • in|out
      • フィルタをかける方向
    • routing-process
      • 再配布元のルーティング プロセス (out 時のみ可能)
      • static、connected、ospf area-id、eigrp as-num

ポリシー ベース ルーティング

概要

  1. 制御したい条件のアクセスリストを作成する
  2. それを元に、ルート マップで経路を設定する
  3. 最後に、目的のパケットを受信する I/F にポリシーを適用する

設定

  1. アクセス リストの作成 (条件がパケット サイズの場合は不要)
    rt(config)# access-list acl-num permit|deny ip-addr wildcard-bits
    
  2. ルートマップの作成
    rt(config)# route-map map-name [permit|deny] [seq-num]
    
    • map-name
      • マップ名
    • permit|deny
      • デフォルトは permit
    • seq-num
      • シーケンス番号
      • デフォルトは 10
  3. 条件を設定
    rt(config-route-map)# match foo bar
    
    • foo bar
      • 条件指定を参照
  4. 動作を設定
    rt(config-route-map)# set foo bar
    
    • foo bar
      • 動作指定を参照
  5. 目的のパケットを受信する I/F で設定する
    rt(config)# interface type mod/num
    rt(config-if)# ip policy route-map map-name
    
  6. 高速スイッチング
    rt(config-if)# ip route-cache policy
    
    • デフォルトはプロセス スイッチング
    • IOS 12.0 以降で対応

条件指定

  1. AND 条件
    rt(config-route-map)# match AAA
    rt(config-route-map)# match BBB
    
  2. OR 条件
    rt(config-route-map)# match AAA BBB
    

動作指定

確認

rt# show ip policy
rt# show route-map [map-name]
rt# debug ip policy

VRF [Virtual Routing and Forwarding]

概要

設定

  1. VRF の有効化
    rt(config)# ip vrf name
    
  2. インターフェースへの適用
    rt(config)# interface type mod/num
    rt(config-if)# ip vrf forwarding name
    rt(config-if)# ip address ip-addr netmask
    

スタティック ルーティング

rt(config)# ip route vrf name ip-addr netmask nexthop

ダイナミック ルーティング

確認

 
 

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-07-08 (水) 18:10:14