官术网_书友最值得收藏!

  • 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...

  1. Browse to Status | DHCP Leases to view the list of clients who have issued DHCP requests.
  2. Click the “plus” button to add a new static DHCP mapping.
  3. The MAC address will be pre-filled.
  4. Enter an IP address, which must be outside the range of dynamically assigned DHCP addresses.
  5. The Hostname may be pre-filled. If not, enter one.
  6. Enter a Description.
  7. Save the changes.
  8. 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
主站蜘蛛池模板: 丁青县| 班玛县| 航空| 酒泉市| 新安县| 金门县| 边坝县| 永修县| 长泰县| 金塔县| 鄢陵县| 萝北县| 修水县| 宁蒗| 屏边| 远安县| 双桥区| 北碚区| 长丰县| 吴桥县| 饶平县| 河源市| 乌审旗| 上林县| 廊坊市| 齐河县| 图片| 深圳市| 和平区| 乌拉特前旗| 农安县| 宣恩县| 上虞市| 东兰县| 聂拉木县| 西充县| 思茅市| 陵水| 汤阴县| 仪陇县| 竹溪县|