問題 ccnp-350-401-topic-1-question-739-v-acf7e4ec・第3版

問題

問題の図1

図を参照。すべてのrouter間のroutingは設定済みである。R1とR3をGRE tunnelで接続する構成はどれか。

  1. A 
    ! R1
    interface Tunnel1
    ip address 1.1.1.13 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.110
    
    
    ! R3
    interface Tunnel
    ip address 1.1.1.31 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.160
    
  2. B 
    ! R1
    interface Tunnel1
    ip address 1.1.1.13 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.160
    
    
    ! R3
    interface Tunnel1
    ip address 1.1.1.31 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.110
    
  3. C 
    ! R1
    interface Tunnel2
    ip address 1.1.1.12 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.125
    
    
    ! R2
    interface Tunnel1
    ip address 1.1.1.125 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.110
    interface Tunnel3
    ip address 1.1.1.125 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.160
    
    
    ! R3
    interface Tunnel2
    ip address 1.1.1.32 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.125
    
  4. D 
    ! R1
    interface Tunnel1
    ip address 1.1.1.13 255.255.255.0
    tunnel source Loopback0
    tunnel destination x-y.z.110
    
    
    ! R3
    interface Tunnel1
    ip address 1.1.1.31 255.255.255.0
    tunnel source Loopback0
    tunnel destination x.y.z.125
    

正解:B

理由

R1とR3の直接GRE tunnelでは、各routerのLoopback0をtunnel sourceにし、tunnel destinationを相手のLoopback0へ向ける。R1からは末尾.160のR3、R3からは末尾.110のR1が宛先になる。1.1.1.13と1.1.1.31はtunnel内のaddressで、underlayのendpoint addressとは役割が異なる。両端のsourceとdestinationへunderlay経路で到達できることが必要になる。

選択肢ごとの説明

A.
! R1
interface Tunnel1
ip address 1.1.1.13 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.110


! R3
interface Tunnel
ip address 1.1.1.31 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.160

R1のdestinationは自分の.110、R3も自分の.160を指定するため、相互に対向しない。R3のinterface Tunnelには番号もない。

B.
! R1
interface Tunnel1
ip address 1.1.1.13 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.160


! R3
interface Tunnel1
ip address 1.1.1.31 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.110

R1はR3の.160、R3はR1の.110へ向け、両端が対向routerをtunnel destinationにする構成である。tunnel内のaddressは同じ1.1.1.0/24に属する。

C.
! R1
interface Tunnel2
ip address 1.1.1.12 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.125


! R2
interface Tunnel1
ip address 1.1.1.125 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.110
interface Tunnel3
ip address 1.1.1.125 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.160


! R3
interface Tunnel2
ip address 1.1.1.32 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.125

R1/R2とR2/R3の二本を作る構成で、R1/R3の直接tunnelとは異なる。R2の二interfaceへ同じ1.1.1.125/24を置く点も設定条件に問題がある。

D.
! R1
interface Tunnel1
ip address 1.1.1.13 255.255.255.0
tunnel source Loopback0
tunnel destination x-y.z.110


! R3
interface Tunnel1
ip address 1.1.1.31 255.255.255.0
tunnel source Loopback0
tunnel destination x.y.z.125

R1のdestinationはx-y.z.110という異なる表記で、自分側の末尾を指す。R3はR2の.125を指定しており、R1/R3の対向にならない。

関連する解説

GREの対向endpoint
お問い合わせ

演習する →