問題 ccnp-350-401-topic-1-question-939-v-b1e34977・第2版

問題

外部の利用者へ、内部Webサーバー10.1.1.100がTCP8080で待ち受けるHTTPサービスを公開したい。R1のG0/0は209.165.200.225/27で外部側、G0/1は10.1.1.1/24で内部側である。どの構成が要件を満たすか。

内部Webサーバーの公開

  1. A 
    configure terminal
    interface G0/0
    ip address 209.165.200.225 255.255.255.224
    ip nat outside
    exit
    interface G0/1
    ip address 10.1.1.1 255.255.255.0
    ip nat inside
    exit
    ip nat inside source static tcp 209.165.200.225 8080 10.1.1.100 8080
    end
    
  2. B 
    configure terminal
    interface G0/0
    ip address 209.165.200.225 255.255.255.224
    ip nat inside
    exit
    interface G0/1
    ip address 10.1.1.1 255.255.255.0
    ip nat outside
    exit
    ip nat inside source static tcp 10.1.1.1 8080 209.165.200.225 80
    end
    
  3. C 
    configure terminal
    interface G0/0
    ip address 209.165.200.225 255.255.255.224
    ip nat outside
    exit
    interface G0/1
    ip address 10.1.1.1 255.255.255.0
    ip nat inside
    exit
    ip nat inside source static tcp 10.1.1.1 8080 209.165.200.225 80
    end
    
  4. D 
    configure terminal
    interface G0/0
    ip address 209.165.200.225 255.255.255.224
    ip nat inside
    exit
    interface G0/1
    ip address 10.1.1.1 255.255.255.0
    ip nat outside
    exit
    ip nat inside source static tcp 209.165.200.225 80 10.1.1.100 8080
    end
    
  5. E 
    configure terminal
    interface G0/0
    ip address 209.165.200.225 255.255.255.224
    ip nat outside
    exit
    interface G0/1
    ip address 10.1.1.1 255.255.255.0
    ip nat inside
    exit
    ip nat inside source static tcp 10.1.1.100 8080 209.165.200.225 80
    end
    

正解:E

理由

inside localにはWebサーバーの10.1.1.100:8080を指定し、inside globalの209.165.200.225:80へ対応させる。G0/1をinside、G0/0をoutsideにする。

選択肢ごとの説明

A.
configure terminal
interface G0/0
ip address 209.165.200.225 255.255.255.224
ip nat outside
exit
interface G0/1
ip address 10.1.1.1 255.255.255.0
ip nat inside
exit
ip nat inside source static tcp 209.165.200.225 8080 10.1.1.100 8080
end

inside localとinside globalのアドレスの順序が逆である。外部側の209.165.200.225をinside localとして指定している。

B.
configure terminal
interface G0/0
ip address 209.165.200.225 255.255.255.224
ip nat inside
exit
interface G0/1
ip address 10.1.1.1 255.255.255.0
ip nat outside
exit
ip nat inside source static tcp 10.1.1.1 8080 209.165.200.225 80
end

内外のインターフェース指定が逆で、inside localにもWebサーバーではなくR1の10.1.1.1を指定している。

C.
configure terminal
interface G0/0
ip address 209.165.200.225 255.255.255.224
ip nat outside
exit
interface G0/1
ip address 10.1.1.1 255.255.255.0
ip nat inside
exit
ip nat inside source static tcp 10.1.1.1 8080 209.165.200.225 80
end

内外の向きは正しいが、変換先はサーバーの10.1.1.100である。10.1.1.1はR1の内部インターフェースである。

D.
configure terminal
interface G0/0
ip address 209.165.200.225 255.255.255.224
ip nat inside
exit
interface G0/1
ip address 10.1.1.1 255.255.255.0
ip nat outside
exit
ip nat inside source static tcp 209.165.200.225 80 10.1.1.100 8080
end

内外のインターフェース指定と変換の引数の順序が逆で、サーバーの公開に対応しない。

E.
configure terminal
interface G0/0
ip address 209.165.200.225 255.255.255.224
ip nat outside
exit
interface G0/1
ip address 10.1.1.1 255.255.255.0
ip nat inside
exit
ip nat inside source static tcp 10.1.1.100 8080 209.165.200.225 80
end

内部サーバーの8080を公開アドレスの80へ対応させ、両インターフェースのinside/outsideも正しい。

お問い合わせ

演習する →