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

問題

問題の図1

Bangkokは192.168.5.0/24へECMPで到達している。192.168.3.0/24と192.168.4.0/24から来るTelnet通信には、Hong Kongルーターを優先経路として使わせたい。どの設定で要件を満たせるか。2つ選べ。

  1. A 
    access-list 101 permit tcp 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
    access-list 101 permit tcp 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
    !
    route-map PBR1 permit 10
    match ip address 101
    set ip next-hop 172.18.1.2
    exit
    !
    interface Ethernet0/1
    ip policy route-map PBR1
    
  2. B 
    access-list 101 permit tcp 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
    access-list 101 permit tcp 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
    !
    route-map PBR1 permit 10
    match ip address 101
    set ip next-hop 172.18.1.2
    exit
    !
    interface Ethernet0/3
    ip policy route-map PBR1
    
  3. C 
    access-list 101 permit ip 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255
    access-list 101 permit ip 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255
    !
    route-map PBR1 permit 10
    match ip address 101
    set ip next-hop 172.18.1.2
    exit
    !
    interface Ethernet0/3
    ip policy route-map PBR1
    
  4. D 
    access-list 101 permit ip 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255
    access-list 101 permit ip 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255
    !
    route-map PBR1 permit 10
    match ip address 101
    set ip next-hop 172.18.1.2
    exit
    !
    interface Ethernet0/1
    ip policy route-map PBR1
    

正解:B、C

理由

Muscatからの通信はBangkokのEthernet0/3へ入る。その受信側でPBRを適用し、Hong Kongの172.18.1.2を指定する。BはTCP23だけ、CはTelnetを含む指定範囲のIP通信を転送する。

選択肢ごとの説明

A.
access-list 101 permit tcp 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
access-list 101 permit tcp 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
!
route-map PBR1 permit 10
match ip address 101
set ip next-hop 172.18.1.2
exit
!
interface Ethernet0/1
ip policy route-map PBR1

TCP宛先ポート23で通信を選ぶが、適用先はEthernet0/1である。図の送信元からBangkokへ入るEthernet0/3へ適用する設定ではない。

B.
access-list 101 permit tcp 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
access-list 101 permit tcp 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255 eq 23
!
route-map PBR1 permit 10
match ip address 101
set ip next-hop 172.18.1.2
exit
!
interface Ethernet0/3
ip policy route-map PBR1

TCP宛先ポート23で対象を選び、Muscat側の受信インターフェースEthernet0/3へ適用する。next hopの172.18.1.2はHong Kong側のアドレスである。

C.
access-list 101 permit ip 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255
access-list 101 permit ip 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255
!
route-map PBR1 permit 10
match ip address 101
set ip next-hop 172.18.1.2
exit
!
interface Ethernet0/3
ip policy route-map PBR1

受信側Ethernet0/3へ適用し、指定した2つの送信元から192.168.5.0/24へのIP通信をHong Kongへ送る。Telnetもこの範囲に含まれる。

D.
access-list 101 permit ip 192.168.3.0 0.0.0.255 192.168.5.0 0.0.0.255
access-list 101 permit ip 192.168.4.0 0.0.0.255 192.168.5.0 0.0.0.255
!
route-map PBR1 permit 10
match ip address 101
set ip next-hop 172.18.1.2
exit
!
interface Ethernet0/1
ip policy route-map PBR1

Ethernet0/1への適用であり、送信元から入るEthernet0/3とは異なる。

お問い合わせ

演習する →