- pfSense 2 Cookbook
- Matt Williamson
- 282字
- 2021-04-09 21:16:42
Creating static DHCP mappings
This recipe describes how to add static DHCP mappings in pfSense. A static DHCP mapping ensures a client is always given the same IP address.
Getting ready
Creating static DHCP mappings is only applicable for interfaces using the DHCP service.
How to do it...
- Browse to Status | DHCP Leases to view the list of clients who have issued DHCP requests.
- Click the “plus” button to add a new static DHCP mapping.
- The MAC address will be pre-filled.
- Enter an IP address, which must be outside the range of dynamically assigned DHCP addresses.
- The Hostname may be pre-filled. If not, enter one.
- Enter a Description.
- Save the changes.
- Apply changes, if necessary. Scroll to the bottom of the DHCP Server page and verify that your new mapping exists.
How it works...
When a client connects to our DHCP server, the firewall first checks for a mapping. If the client’s MAC address matches a mapping we’ve specified, then the DHCP server uses the IP address specified in the mapping. If no mapping exists for our client’s MAC address, our DHCP server uses an IP address from its available range.
There’s more...
Static mappings can be viewed at the bottom of the DHCP Server configuration page for each interface by browsing to the Services | DHCP Server | Interface tab.
All static mappings for a given interface can be managed here. Existing mappings can be modified or removed, and new static mappings can be created, but you’ll have to enter the MAC address manually.

See also
- The Configuring the DHCP server recipe
- The Configuring the DHCP relay recipe
- EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g: LITE
- IBM Rational ClearCase 7.0: Master the Tools That Monitor, Analyze, and Manage Software Configurations
- TArch 8.5天正建筑軟件標準教程
- 中文版AutoCAD 2022基礎教程
- Unity 3D\2D手機游戲開發:從學習到產品(第4版)
- 老郵差·Photoshop數碼照片處理技法:人像篇(修訂版)
- Oracle Fusion Middleware Patterns
- CorelDRAW X6平面設計與制作案例教程
- 中文版Maya 2016基礎培訓教程
- 數碼攝影修圖師完全手冊(第2卷)
- 這樣學Excel數據處理與分析更高效(視頻版)
- UG NX 11中文版基礎教程
- Adobe Camera Raw完全自學教程
- 中文版3ds Max案例與實訓教程
- UG NX快速入門教程(UG NX 1872版)