cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 
cancel
414
Visitas
1
ÚTIL
4
Respuestas

ip route vrf MYVRF

josebash
Level 1
Level 1

 

Hello,

I am having some problems with Spectrum and DHCP.

I have this Cisco Asr1001.

I have  a few VRFs

My problem is that Spectrums changes its gateway every few months, and I must manually put it into my router.

#this doesn't work

ip route vrf MYVRF 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 DHCP

becomes this in the sh run =>   ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 DHCP

#This works

ip route vrf MYVRF 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 76.82.101.1

 

#

interface GigabitEthernet0/0/0
description TO-ISP
ip vrf forwarding ISP
ip address dhcp
ip mtu 1472
ip nat outside
ip tcp adjust-mss 1360
negotiation auto

#

 

How can I use "ip route vrf to get the default gateway from Spectrum DHCP?

I can't find the answer online. Can someone help me out, please?

 

Thanks in advance.

 

 

 

 

 

 

 

4 RESPUESTAS 4

balaji.bandi
Hall of Fame
Hall of Fame
#This works

ip route vrf MYVRF 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 76.82.101.1

when the DHCP IP get you will know the DHCP gateway also ? if so you can run EEM Script when the IP changed

remove the Route and add route with new IP ? (is this something works for you - that is only thing i can think of ?)

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Two things 

1-it is bug

Or

2-the server send default route and your router add it in global, to check this point run debug ip routing and see when the route is add.

MHM

if the server send this default route you can make Router not ask Op121 from the server 
MHM

r.heitmann
Level 1
Level 1

well, I can't explain why, but In my lab it's working in my day by day setup well using this configuration:

* without "vrf"-option at the "ip route" command

interface GigabitEthernet1
vrf forwarding INTERNET
ip address dhcp
ip nat outside
negotiation auto
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet1 dhcp

Looking at the routing-table:

* "distance" = 254 means by DHCP (normal static routes would have distance=1)

#show ip route vrf INTERNET 0.0.0.0

Routing Table: INTERNET
Routing entry for 0.0.0.0/0, supernet
Known via "static", distance 254, metric 0, candidate default path
Routing Descriptor Blocks:
* 192.168.22.1
Route metric is 0, traffic share count is 1
R1C-A#show dhcp lease
Temp IP addr: 192.168.22.112 for peer on Interface: GigabitEthernet1
Temp sub net mask: 255.255.255.0
DHCP Lease server: 192.168.22.1, state: 5 Bound
DHCP transaction id: 1CA1
Lease: 72000 secs, Renewal: 36000 secs, Rebind: 63000 secs
Temp default-gateway addr: 192.168.22.1
Next timer fires after: 00:35:59
Retry count: 0 Client-ID: cisco-0050.56c9.6ca9-Gi1
Client-ID hex dump: 636973636F2D303035302E353662392E
Hostname: R1C-A