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.

Fortigate60DをDHCPサーバーにしてL3のCatalystでVLANルーティングを通してPC端末にサーバーからipアドレスを取得出来る構成を作ります。

環境

  • Fortigate60D v6.0.7
  • Cisco WS-C3560CG-8PC-S 12.2(55)EX3
  • PC端末 windows11

イメージ図

fortigate@dhcp_relay3.jpg

DHCPサーバの設定

デフォルトで用意されているハードウェアスイッチから物理i/fを切り離し、VLANi/fを紐付ける。
VLANi/fを編集。

  • ロールをLANに設定。
  • アドレッシングモードをマニュアル。
  • DHCPサーバにチェックを入れて、端末に割り当てるアドレス範囲を指定。
  • セグメントを超えて指定する場合は、デフォルトゲートウェイを指定する。
fortigate@dhcp_relay2.PNG fortigate@dhcp_relay1.PNG

FortiGateからPCとCatalystを含むセグメント間に向けて通信させるために、スタティックルートを設定。

  • 宛先をサブネットに設定してIPアドレスを設定。
  • インターフェース DHCPを指定。
  • ゲートウェイアドレス指定。
fortigate@dhcp_relay4.PNG

Catalyst設定

セグメントを超えた通信をするので、ip routingを有効化。
サーバーを繋ぐI/Fはtrunkモード、端末を繋ぐI/Fにはaccessモードで設定。

Switch456#show running-config
Building configuration...

Current configuration : 4500 bytes
!
version 12.2
!
ip routing
!
interface GigabitEthernet0/8
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 150
 switchport mode trunk
!
interface GigabitEthernet0/9
 switchport access vlan 200
 switchport mode access
!
interface Vlan150
 ip address 192.168.0.2 255.255.255.0
!
interface Vlan200
 ip address 198.51.100.1 255.255.255.0
 ip helper-address 192.168.0.1

DHCPクライアントが放つDHCP DISCOVERはブロードキャストでしか送信されないので、L3interfaceやinterfaceVLANに設定する

(config)# interface vlan 200
(config-if)#ip helper-address 192.168.0.1

セグメントを超えてIP取得をしたときのパケットキャプチャ。
DHCPrelay.png

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?