cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4116
Views
10
Helpful
19
Replies

Advertising interface route into different VRFs

bhaskar038
Level 1
Level 1

Hi,

 

I'm trying to configure VRFs for multiple providers and struck with the following. The router R1 is connected to Provider-1, Switch and Provider-2. BGP is running between provider and R1. 

 

Provider-1 is in VRF-1 and Provider-2 is in VRF-2. But, the f0/0 is in global routing table. I would like to advertise the f0/0 subnet to all the provider VRFs. I tried network XXXX mask xxxx. But, still not advertising as the subnet is not in routing table.Can someone help me this?

 

 

 

 

 

 

 

 

Screen Shot 2018-08-04 at 3.57.13 PM.png

 

 

19 Replies 19

Weird.

ROM: 3700 Software (C3745-ADVIPSERVICESK9-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)

Will try with different ios and let you know if it works,

Georg,

Tried with different router (CSR)Cisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.6(1)S, RELEASE SOFTWARE (fc4)

still does not work. Could you share your config?

Here is the config, identical to yours except for the interfaces used. I also posted the output of the routing table for both VRFs:

 

Building configuration...

Current configuration : 3857 bytes
!
version 15.6
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ASR
!
boot-start-marker
boot-end-marker
!
no aaa new-model
ethernet lmi ce
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
no ip icmp rate-limit unreachable
!
ip vrf Level-3
rd 300:10
import ipv4 unicast map Global-to-VRF
!
ip vrf Windstream
rd 200:10
import ipv4 unicast map Global-to-VRF
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
redundancy
!
no cdp log mismatch duplex
!
ip tcp synwait-time 5
!
interface GigabitEthernet0/0
ip address 1.1.1.2 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip vrf forwarding Windstream
ip address 192.168.100.2 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip vrf forwarding Level-3
ip address 192.168.200.2 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
router bgp 100
bgp log-neighbor-changes
redistribute connected
!
address-family ipv4 vrf Level-3
redistribute connected route-map Global-to-VRF
neighbor 192.168.200.1 remote-as 300
neighbor 192.168.200.1 activate
exit-address-family
!
address-family ipv4 vrf Windstream
redistribute connected route-map Global-to-VRF
neighbor 192.168.100.1 remote-as 200
neighbor 192.168.100.1 activate
exit-address-family
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip prefix-list GRT seq 5 permit 1.1.1.0/24
!
route-map Global-to-VRF permit 10
match ip address prefix-list GRT
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
transport input none
!
no scheduler allocate
!
end

 

ASR#sh ip route vrf Windstream

Routing Table: Windstream
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B 1.1.1.0/24 is directly connected, 00:04:02, GigabitEthernet0/0
L 1.1.1.2/32 is directly connected, GigabitEthernet0/0
192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.100.0/24 is directly connected, GigabitEthernet0/1
L 192.168.100.2/32 is directly connected, GigabitEthernet0/1

ASR#sh ip route vrf Level-3

Routing Table: Level-3
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
B 1.1.1.0/24 is directly connected, 00:05:02, GigabitEthernet0/0
L 1.1.1.2/32 is directly connected, GigabitEthernet0/0
192.168.200.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.200.0/24 is directly connected, GigabitEthernet0/2
L 192.168.200.2/32 is directly connected, GigabitEthernet0/2

Thanks. Its getting really Weird. Its not working on same version as well.

Can you post the 'show version' of your router ?

Review Cisco Networking for a $25 gift card