問題
IOS XEのDHCP serverで自動bindingを172.16.1.1のFTP hostへ保存する。172.16.1.103~106をすべて配布対象から除く設定はどれか。
- A
enable configure terminal ip dhcp database timeout 80 ftp://example-user:example-pass@172.16.1.1/router-dhcp no ip dhcp conflict logging ip dhcp excluded-address 172.16.1.108 172.16.1.100 end - B
enable configure terminal no ip dhcp conflict logging ftp://example-user:example-pass@172.16.1.1/router-dhcp timeout 80 ip dhcp excluded-address 172.16.1.108 172.16.1.100 end - C
enable configure terminal ip dhcp database ftp://example-user:example-pass@172.16.1.1/router-dhcp timeout 80 ip dhcp excluded-address 172.16.1.100 172.16.1.108 end - D
enable configure terminal ip dhcp database ftp://example-user:example-pass@172.16.1.1/router-dhcp timeout 80 no ip dhcp conflict logging ip dhcp excluded 172.16.1.108 172.16.1.100 end
正解:C
理由
ip dhcp databaseは保存先URLの後にtimeoutを指定する。ip dhcp excluded-addressは範囲の先頭、末尾の順に指定する。100~108を除外すると、103~106も配布対象から外れる。
選択肢ごとの説明
- A.
enable configure terminal ip dhcp database timeout 80 ftp://example-user:example-pass@172.16.1.1/router-dhcp no ip dhcp conflict logging ip dhcp excluded-address 172.16.1.108 172.16.1.100 end Database URLをtimeoutより先に指定し、除外範囲は小さいaddressを先に書く。
- B.
enable configure terminal no ip dhcp conflict logging ftp://example-user:example-pass@172.16.1.1/router-dhcp timeout 80 ip dhcp excluded-address 172.16.1.108 172.16.1.100 end Conflict loggingの無効化にFTP URLを指定しても、database agentの保存先を設定できない。
- C.
enable configure terminal ip dhcp database ftp://example-user:example-pass@172.16.1.1/router-dhcp timeout 80 ip dhcp excluded-address 172.16.1.100 172.16.1.108 end URLの後にtimeoutを置き、小さいaddressから除外範囲を指定する。100~108に103~106が含まれる。
- D.
enable configure terminal ip dhcp database ftp://example-user:example-pass@172.16.1.1/router-dhcp timeout 80 no ip dhcp conflict logging ip dhcp excluded 172.16.1.108 172.16.1.100 end 除外範囲の開始と終了が逆である。Database URLだけが正しくても配布除外の条件を満たせない。