問題 ccnp-300-410-topic-1-question-598・第2版

問題

支社ルーターはInternet向けのデフォルト経路を持つが、G2/0の先にある本社宛ての経路は持たない。本社側の設定は完了している。支社利用者のパケットはG1/0へ入り、本社側の次ホップは192.168.2.2である。

本社のイントラネットWebサーバーへTCPポート80で接続できる設定はどれか。候補中のintranet-webserver-ipはそのサーバーのIPアドレスを表す。

  1. A 
    access-list 101 permit tcp any any eq 80
    access-list 102 permit tcp any host intranet-webserver-ip
    route-map pbr permit 10
     match ip address 101
     set ip next-hop 192.168.2.2
    exit
    route-map pbr permit 20
     match ip address 102
     set ip next-hop 192.168.2.2
    exit
    interface G2/0
     ip policy route-map pbr
    
  2. B 
    access-list 100 permit tcp host intranet-webserver-ip eq 80 any
    route-map pbr permit 10
     match ip address 100
     set ip next-hop 192.168.2.2
    exit
    interface G1/0
     ip policy route-map pbr
    
  3. C 
    access-list 100 permit tcp any host intranet-webserver-ip eq 80
    route-map pbr permit 10
     match ip address 100
     set ip next-hop 192.168.2.2
    exit
    interface G2/0
     ip policy route-map pbr
    
  4. D 
    access-list 101 permit tcp any any eq 80
    access-list 102 permit tcp any host intranet-webserver-ip
    route-map pbr permit 10
     match ip address 101 102
     set ip next-hop 192.168.2.2
    exit
    interface G1/0
     ip policy route-map pbr
    

正解:D

理由

PBRはパケットを受信するインターフェースへ適用する。DはWeb要求を本社側へ送れる。ACL101はほかの宛先のTCP80も対象にするが、イントラネットへの接続要件を満たす。

選択肢ごとの説明

A.
access-list 101 permit tcp any any eq 80
access-list 102 permit tcp any host intranet-webserver-ip
route-map pbr permit 10
 match ip address 101
 set ip next-hop 192.168.2.2
exit
route-map pbr permit 20
 match ip address 102
 set ip next-hop 192.168.2.2
exit
interface G2/0
 ip policy route-map pbr

利用者のパケットが入るG1/0ではなく、本社向けのG2/0へ適用している。

B.
access-list 100 permit tcp host intranet-webserver-ip eq 80 any
route-map pbr permit 10
 match ip address 100
 set ip next-hop 192.168.2.2
exit
interface G1/0
 ip policy route-map pbr

送信元がWebサーバーで送信元ポート80のパケットに一致するACLであり、利用者からサーバーへの要求に一致しない。

C.
access-list 100 permit tcp any host intranet-webserver-ip eq 80
route-map pbr permit 10
 match ip address 100
 set ip next-hop 192.168.2.2
exit
interface G2/0
 ip policy route-map pbr

ACLは要求先のTCP80に一致するが、利用者側の入力インターフェースへ適用されていない。

D.
access-list 101 permit tcp any any eq 80
access-list 102 permit tcp any host intranet-webserver-ip
route-map pbr permit 10
 match ip address 101 102
 set ip next-hop 192.168.2.2
exit
interface G1/0
 ip policy route-map pbr

G1/0で受信した対象パケットにPBRを適用し、次ホップ192.168.2.2へ送る。同じmatch行のACL101と102はORで評価される。

お問い合わせ

演習する →