IP address is not assigned by DHCP function
Wrote the memo
試験環境
+---------+ +-----------+ +-----------+
| L3SW-01 |===| Router-01 |~~~| PE Router |
+---------+ +-----------+ +-----------+
|
| Vlan 2
+-------------------------------+
| |
| |
| Vlan 1 |
+-------------+ |
| | |
+---------+ +-------------+ +-------------+
| DHCP-SV | | DHCP-CLT-01 | | DHCP-CLT-02 |
+---------+ +-------------+ +-------------+
Router-01 : CE Router
L3SW-01 : Layer-3 Switch
DHCP-SV : DHCP-Server
DHCP-CLT-01 : DHCP-Client
DHCP-CLT-02 : DHCP-Client
Note:
PE Router : Provider Edge Router (ISP Router)
CE Router : Customer Edge Router
DHCP-Apps : ISC-DHCP-Server
補足
- 実際のVLAN-ID, IPv4-Addressとは一部異なる場合がある(マスキング処理)
- DHCPサーバ(DHCP-SV)は共通(1台構成)
- DHCPクライアント(DHCP-CLT-01, DHCP-CLT-02)は別セグメントに接続
- DHCPサーバ(DHCP-SV)とDHCPクライアント(DHCP-CLT-01)は同一セグメント
- DHCPクライアント(DHCP-CLT-01)のデフォルトゲートウェイ(DGW)はRouter-01
- DHCPクライアント(DHCP-CLT-02)のデフォルトゲートウェイ(DGW)はL3SW-01
- ルータ(Router-01)とL3スイッチ(L3SW-01)はL2 Trunk 接続(OSPF接続無し)
- DHCPクライアント(DHCP-CLT-02)からのDHCPパケットはDHCP-SVへrelayするよう設定済み(Ciscoの
ip helper-address 172.16.x.x
)
問題点
- DHCP-CLT-01 からのDHCP取得要求(*1) は問題なく通るが、DHCP-CLT-02 からのDHCP取得要求(*1)は失敗する。
- DHCP-SVのログには
Discover
及びOffer
のログのみ存在(*2) - DHCP-SV側でpacket capture実施->
Discover
及びOffer
のみ
対処
- Router-01 に DHCP-CLT-02 のセグメントに対する Static Route の追加
ip route 172.16.0.0/16 L3SW-01
*1
Discover->Offer->Request->ACK
*2
Sep 30 15:29:22 bootp dhcpd[99344]: DHCPDISCOVER from xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:23 bootp dhcpd[99344]: DHCPOFFER on 172.16.0.1 to xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:25 bootp dhcpd[99344]: DHCPDISCOVER from xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:25 bootp dhcpd[99344]: DHCPOFFER on 172.16.0.1 to xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:29 bootp dhcpd[99344]: DHCPDISCOVER from xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:29 bootp dhcpd[99344]: DHCPOFFER on 172.16.0.1 to xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:36 bootp dhcpd[99344]: DHCPDISCOVER from xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:36 bootp dhcpd[99344]: DHCPOFFER on 172.16.0.1 to xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:51 bootp dhcpd[99344]: DHCPDISCOVER from xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6
Sep 30 15:29:51 bootp dhcpd[99344]: DHCPOFFER on 172.16.0.1 to xx:xx:xx:xx:xx:xx (DHCP-CLT-02) via 172.16.0.6