Introduction Configuring DHCP Relay
Software Reference for SwitchBlade x3100 Series Switches (Network Management)
7-14
The following procedure shows the commands used to create a simple DHCP Relay instance, associate it with
a VLAN and DHCP server, and enable IP filtering and ageing, as shown in Figure 7-5.
TABLE 7-2 Configuration Procedure - Creating/Destroying DHCP Relay Agent
Step Command Description
Create a DHCP Relay instance and assign it a remote ID
1
create dhcprelay x3112 agent remoteid
NC2A-D104_420
Creates a DHCP Relay instance called “x3112”
and assigns it a remote ID of “NC2A-D104_420.”
Configure the DCHP Relay instance with a DHCP server
2
add dhcprelay x3112 server 10.52.65.38 Associates the DHCP Relay instance with a DHCP
server IP address.
Add a VLAN to the DCHP Relay instance
3
add dhcprelay x3112 vlan 420 Associates VLAN 420 with the DHCP Relay
instance.
Enable DHCP Relay service on the network interface and a selected customer interfaces
4
disable dhcprelay x3112 interface all
enable dhcprelay x3112 interface
0.22,0.21
Disables DHCP Relay service on all interfaces (a
preliminary step to achieve a known state on inter-
faces).
Enables DHCP Relay service on the network
interface and a selected customer interface.
Add a customer interface to the DHCP Relay’s VLAN
5
add vlan 420 interface 0.21 Associates the DHCP Relay’s VLAN with cus-
tomer interface 0.21.
Set the operating mode of the DHCP Relay instance to RELAY
6
set dhcprelay x3112 mode relay Puts the DHCP Relay instance in Relay mode.
Note: Relay mode is the default setting, so this
step may not be necessary.
Review the settings for the new “x3112” DHCP Relay instance