cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
380
Views
0
Helpful
3
Replies

DHCP VRF ISSUE

dissai
Level 1
Level 1

Hello Good People,

I have a challenge with my ISR4331 I'm configuring DHCP as per below configuration. But I'm getting below error what might be an challenge here and how to resolve it.

 

ip vrf VRF200

RD 100:200

route-target export 100:200
route-target import 100:200
exit

ip route vrf VRF200 0.0.0.0 0.0.0.0 192.168.20.1

ip dhcp excluded-address 192.168.20.1 192.168.20.110
ip dhcp excluded-address 192.168.20.210 192.168.20.255

ip dhcp pool VLAN200
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
class VLAN200
dns-server 8.8.8.8
dns-server 4.4.2.2
domain-name fasthub.com
lease infinite
vrf VRF200
excluded-address 192.168.20.1 192.168.20.110
excluded-address 192.168.20.210 192.168.20.255
end

 

interface GigabitEthernet 0/0/1.200
description VLAN200
encapsulation dot1q 200
ip address 192.168.20.1 255.255.255.0
no shutdown
vrf forwarding VLAN200
exit

 

Below is error while Apply configuration above.

INTERNET-EDG(config-subif)#vrf forwarding VRF200
% Use 'ip vrf forwarding' command for VRF VRF200
INTERNET-EDG(config-subif)#ip vrf forwarding VRF200
% Interface GigabitEthernet0/0/1.200 IPv4 disabled and address(es) removed due to disabling VRF VRF200
INTERNET-EDG(config-subif)#
INTERNET-EDG(config-subif)#

INTERNET-EDG(config-subif)#ip address 192.168.20.1 255.255.255.0
IP address conflicts with gateway ip address in static routing table
INTERNET-EDG(config-subif)#
INTERNET-EDG(config-subif)#

 

Does it mean once I put static route no need of put ip address at the interface.

Thank you for support learning.

 

3 Replies 3

No static route use next-hop IP and here you use 192.168.20.1 as next-hop but this IP in use by router itself' 

So use different IP' neighbor IP not router IP in static route

Also  this issue not related to dhcp

MHM

Hello,

the IP address of the interface cannot be the same as the next hop IP address used in your static route. It does not make any (logical sense), hence the error. If you e.g. give it IP address 192.168.20.2, the 'error' does not occur.

Hello
You seem to be mixing the vrf features, Once you've correct this then try and apply the static route to the vrf

ipv4 ONLY
ip vrf xxx  
rd x:x

int x/x
ip vrf forwarding

ipv4/ipv6
vrf definition xx
address-family ipv4/ipv6
rd x:x

int x/x
vrf forwarding xx


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card