- 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
- ColdFusion 9 Developer Tutorial
- Painter 現(xiàn)代服裝效果圖表現(xiàn)技法
- 持續(xù)演進(jìn)的Cloud Native:云原生架構(gòu)下微服務(wù)最佳實(shí)踐
- 數(shù)據(jù)、模型與決策:基于Excel的建模和商務(wù)應(yīng)用
- User Training for Busy Programmers
- Maya 2019三維動(dòng)畫基礎(chǔ)案例教程
- 中文版Illustrator CC基礎(chǔ)培訓(xùn)教程(移動(dòng)學(xué)習(xí)版)
- Cinema 4D電商美工與視覺設(shè)計(jì)案例教程(培訓(xùn)教材版)
- Midjourney AI案例實(shí)戰(zhàn):繪本+動(dòng)漫+插畫
- AutoCAD 2018中文版基礎(chǔ)教程
- PS App UI設(shè)計(jì)從零開始學(xué)
- CorelDRAW 2020中文版入門、精通與實(shí)戰(zhàn)
- VRP11/3ds Max虛擬現(xiàn)實(shí)制作標(biāo)準(zhǔn)實(shí)訓(xùn)教程
- Premiere pro CC中文版自學(xué)視頻教程
- NetSuite OneWorld Implementation 2011 R2