beautypg.com

Ip dhcp snooping binding, Ip dhcp snooping binding ] vlan interface – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1452: Port> expiry

background image

DHCP Snooping Commands

Software Reference for x310 Series Switches

56.14

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

ip dhcp snooping binding

Use this command to manually add a dynamic-like entry (with an expiry time) to the DHCP
snooping database. Once added to the database, this entry is treated as a dynamic entry,
and is stored in the DHCP snooping database backup file. This command is not stored in
the switch’s running configuration.

Use the no variant of this command to delete a dynamic entry for an IP address from the
DHCP snooping database, or to delete all dynamic entries from the database.

Syntax

ip dhcp snooping binding <ipaddr> [<macaddr>] vlan <vid> interface

<port> expiry <expiry-time>

no ip dhcp snooping binding [<ipaddr>]

Mode

Privileged Exec

Usage

Note that dynamic entries can also be deleted from the DHCP snooping database by using
the

clear ip dhcp snooping binding command on page 56.5

.

To add or remove static entries from the database, use the

ip source binding command

on page 56.23

.

Example

To restore an entry in the DHCP snooping database for a DHCP client with the IP address
192.168.1.2, MAC address 0001.0002.0003, on port1.0.6 of vlan6, and with an expiry time
of 1 hour, use the commands:

Related Commands

clear ip dhcp snooping binding
ip source binding
show ip dhcp snooping binding

Caution

If you remove entries from the database for current clients, they will lose IP
connectivity until they request and receive a new DHCP lease. If you clear
all entries, all clients connected to untrusted ports will lose connectivity.

Parameter Description

<ipaddr>

Client’s IP address.

<macaddr>

Client’s MAC address in HHHH.HHHH.HHHH format.

<vid>

The VLAN ID for the entry, in the range 1 to 4094.

The port the client is connected to. The port can be a switch port,
or a static or dynamic link aggregation (channel group).

<expiry-time>

The expiry time for the entry, in the range 5 to 2147483647
seconds.

awplus#

ip dhcp snooping binding 192.168.1.2 0001.0002.0003
vlan 6 interface port1.0.6 expiry 3600