Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Static IP Addresses in the DHCP Snooping Database for Access Ports (CLI Procedure)

    Note: This example uses Junos OS for EX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that does not support ELS, see Configuring Static IP Addresses in the DHCP Snooping Database for Access Ports (CLI Procedure). For ELS details, see Getting Started with Enhanced Layer 2 Software.

    You can add static (fixed) IP addresses and bind them to fixed MAC addresses in the DHCP snooping database. These bindings are labeled as static in the database, while those bindings that have been added through the process of DHCP snooping are labeled dynamic. Static IPv6 address assignment is also available for DHCPv6.

    Before you can perform this procedure, you must configure the VLAN. See Configuring VLANs for EX Series Switches (CLI Procedure).

    To configure a static IP address to MAC address (IP-MAC) binding in the DHCP snooping database, you must first create a group of access interfaces under [edit vlans vlan-name forwarding-options dhcp-security]. Creating this group automatically enables DHCP snooping, which is a prerequisite for creating the DHCP snooping database. You can then configure a specific interface within the group to have a static IP address that is bound to a fixed MAC address. If you want to have multiple static IP addresses, configure additional interfaces within the same group.

    Note: On switches that support DHCPv6, creating the group of interfaces will automatically enable both DHCP and DHCPv6 snooping.

    To configure a static IP-MAC address binding in the DHCP snooping database:

    • [edit vlans vlan-name forwarding-options dhcp-security]
      user@switch# set group group-name interface interface-name static-ip ip-address mac mac-address

    To configure a static IPv6-MAC address binding in the DHCPv6 snooping database:

    • [edit vlans vlan-name forwarding-options dhcp-security]
      user@switch# set group group-name interface interface-name static-ipv6 ip-address mac mac-address

    Modified: 2015-06-23