beautypg.com

Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 653

background image

Example: VCS mode

The following is an example of configuring two IP DHCP Relay addresses on a
physical 1 GbE interface in slot 2, port 4 on RBridge ID 2.

NOTE
In this example, the local DHCP server IP address is 3.1.1.2.

switch# config

Entering configuration mode terminal

switch(config)# rbridge-id 1

switch(config-rbridge-id-1)# int Ve 101

switch(config-Ve-101)# ip dhcp relay address 100.1.1.2

switch(config-Ve-101)# ip dhcp relay address 12.3.4.6

switch(config-Ve-101)# ip dhcp relay address 3.1.1.2

The following is an example of configuring two IP DHCP Relay addresses on
virtual Ethernet interface 102.

NOTE
In this example, the IP address 3.1.1.255 is the local subnet broadcast address.
The relay agent relays the DHCP packets to the directed broadcast address and
all addresses for DHCP servers configured on the interface.

switch# config

Entering configuration mode terminal

switch(config)# rbridge-id 2

switch(config-rbridge-id-2)# int Ve 102

switch(config-Ve-102))# ip dhcp relay address 200.1.1.2

switch(config-Ve-102)# ip dhcp relay address 3.1.1.255

To remove an IP DHCP Relay address use the no option in the ip dhcp relay
address
ip-addr command as in the following example:

switch(config-if)# no ip dhcp relay address 200.1.1.2

Example: DHCP server and client interface on different VRFs

If the DHCP server is on a different Virtual Routing and Forwarding instance
(VRF) than the interface where the client is connected, use the use-vrf vrf-name
option in the ip dhcp relay address ip-addr command.

NOTE
If the use-vrf vrf-name option is not used, it is assumed that the DHCP server
and client interface are on the same VRF.

switch# config

Entering configuration mode terminal

switch(config)# rbridge-id 2

switch(config-rbridge-id-2)# int Ve 103

switch(config-Ve-103)# ip dhcp relay address 3.1.2.255 use-vrf blue

To remove an IP DHCP Relay address use the no option in the ip dhcp relay
address
ip-addr use-vrf vrf-name command as in the following example:

switch(config-ve-103)# no ip dhcp relay address 3.1.2.255 use-vrf blue

Configuring IP DHCP Relay

Network OS Administrator’s Guide

653

53-1003225-04