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

  • 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
主站蜘蛛池模板: 锡林浩特市| 松原市| 茂名市| 林甸县| 巩留县| 界首市| 台前县| 吴桥县| 娱乐| 永福县| 五莲县| 寻甸| 安义县| 蕲春县| 息烽县| 嵩明县| 红原县| 无极县| 宁津县| 望谟县| 洪泽县| 博罗县| 合川市| 湟中县| 苗栗市| 陵水| 台安县| 苍南县| 新兴县| 壤塘县| 闵行区| 东阳市| 南安市| 靖宇县| 朝阳市| 伊川县| 天台县| 金坛市| 时尚| 贵定县| 江都市|