問題 ccnp-300-410-topic-1-question-454・第3版

問題

10.1.1.0/24から10.100.100.100へのHTTP通信を、通常の経路選択より優先して10.2.2.2へ送るPBRを構成したい。10.2.2.2は送信元サブネットを収容するルーターから2ホップ先にある。route-mapの定義として適切なものはどれか。

  1. A 
    access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
    !
    route-map POLICY permit 10
    match ip address 100
    set ip next-hop recursive 10.2.2.2
    
  2. B 
    access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
    !
    route-map POLICY deny 10
    match ip address 100
    set ip next-hop recursive 10.2.2.2
    exit
    route-map POLICY permit 20
    
  3. C 
    access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
    !
    route-map POLICY permit 10
    match ip address 100
    set ip next-hop 10.2.2.2
    exit
    route-map POLICY permit 20
    
  4. D 
    access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
    !
    route-map POLICY permit 10
    match ip address 100
    set ip next-hop 10.2.2.2
    

正解:A

理由

直接接続していない次ホップを使うPBRでは、到達経路を再帰的に解決するコマンド名を使う。

コマンド名・省略表記 作用・条件
set ip next-hop recursive PBRのdenyに一致したパケットは破棄せず、通常の経路選択へ戻る。

選択肢ごとの説明

A.
access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
!
route-map POLICY permit 10
match ip address 100
set ip next-hop recursive 10.2.2.2

送信元、宛先、HTTPを選び、2ホップ先の次ホップをrecursiveで解決する。

B.
access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
!
route-map POLICY deny 10
match ip address 100
set ip next-hop recursive 10.2.2.2
exit
route-map POLICY permit 20

対象通信をdeny clauseへ一致させるため、PBRのsetを適用せず通常の経路選択へ戻す。

C.
access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
!
route-map POLICY permit 10
match ip address 100
set ip next-hop 10.2.2.2
exit
route-map POLICY permit 20

通常のset ip next-hopであり、2ホップ先の次ホップを再帰解決する指定がない。

D.
access-list 100 permit tcp 10.1.1.0 0.0.0.255 host 10.100.100.100 eq www
!
route-map POLICY permit 10
match ip address 100
set ip next-hop 10.2.2.2

permitで対象を選ぶが、非直結の次ホップに必要なrecursiveの指定がない。

お問い合わせ

演習する →