0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

DHCP機能でIPアドレスが割り振られない

Posted at

IP address is not assigned by DHCP function

Wrote the memo

試験環境

構成図.txt
+---------+   +-----------+   +-----------+
| 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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?