DHCP with vrf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 08:11 AM
Hi
I need to allocate ip addresses to clients connected to different VRFs. I have allocated the DHCP pool to respective VRF but no success. Can somebody let me know if I am missing something
ip vrf green
rd 1:1
!
ip vrf blue
rd 1:2
ip dhcp pool green
vrf green
network 192.168.1.0 255.255.255.0
!
ip dhcp pool blue
vrf blue
network 192.168.2.0 255.255.255.0
!
interface FastEthernet3/0
no ip address
duplex auto
speed auto
!
interface FastEthernet3/0.100
encapsulation dot1Q 100
ip vrf forwarding green
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet3/0.200
encapsulation dot1Q 200
ip vrf forwarding blue
ip address 192.168.2.1 255.255.255.0
!
Also I need to exclude some ip addresses from the range, but I believe this feature is not supported.
Could someone please guide me on this
- Labels:
-
MPLS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2006 04:50 PM
You will need to add the following line to your configuration:
ip dhcp use vrf connected
In regards to excluded addresses, you're correct. To my knowledge Cisco has yet to release an IOS which overcomes this issue.
If you use vrf's with DHCP it ignores the ip dhcp excluded-address. It further prevents you from assigning static IP's based on MAC addresses.
Please also note that using the vrf command will mean the first assigned IP is normally .1, unless your router is using this address.
Hope this helps clear things up.
