jeśli chodzi o sam MPLS to jet ok, zatrzymałem się na nawiązaniu 2 sesji bgp na R2. W tej chwili między R2 a Rx1 sesja bgp się nawiązała i prefixy są przerzucane tak jak zakładałem. Dołożyłem 2 router Rx2 i chciałem nawiązać sesje BGP z routerem R2.
R2:
Kod: Zaznacz cały
interface Loopback0
ip address 8.8.8.2 255.255.255.255
ip ospf 1 area 0
!
interface Loopback1
ip vrf forwarding 004
ip address 1.2.1.1 255.255.255.255
ip ospf 2 area 0
!
interface GigabitEthernet1
no ip address
negotiation auto
!
interface GigabitEthernet2
ip address 1.1.1.5 255.255.255.252
ip ospf 1 area 0
negotiation auto
mpls ip
!
interface GigabitEthernet3
description R1
ip vrf forwarding 004
ip address 1.1.1.2 255.255.255.252
negotiation auto
!
interface GigabitEthernet4
no ip address
negotiation auto
!
interface GigabitEthernet4.252
encapsulation dot1Q 252
ip vrf forwarding 004
ip address 10.116.255.5 255.255.255.248
ip ospf 2 area 0
!
interface GigabitEthernet5
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet6
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet7
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet8
no ip address
shutdown
negotiation auto
!
router ospf 2 vrf 004
network 1.2.1.1 0.0.0.0 area 0
network 2.2.0.1 0.0.0.0 area 0
!
router ospf 1
network 8.8.8.2 0.0.0.0 area 0
network 8.8.8.4 0.0.0.0 area 0
!
router bgp 6510
bgp router-id 1.1.1.2
bgp log-neighbor-changes
neighbor 8.8.8.3 remote-as 6510
neighbor 8.8.8.3 update-source Loopback0
!
address-family vpnv4
neighbor 8.8.8.3 activate
neighbor 8.8.8.3 send-community extended
exit-address-family
!
address-family ipv4 vrf 004
redistribute connected
redistribute ospf 2
neighbor 1.1.1.1 remote-as 6500
neighbor 1.1.1.1 activate
neighbor 2.2.0.1 remote-as 64677 - to jest sesja która nie wstaje
neighbor 2.2.0.1 update-source Loopback1
neighbor 2.2.0.1 activate
exit-address-family
Rx2:
Kod: Zaznacz cały
interface Loopback0
vrf 004
ipv4 address 2.2.0.1 255.255.255.255
interface GigabitEthernet0/0/0/1.252
vrf 004
ipv4 address 10.116.255.2 255.255.255.248
encapsulation dot1q 252
router ospf LAB
vrf 004
area 0.0.0.0
interface Loopback0
!
interface GigabitEthernet0/0/0/1.252
!
!
!
!
router bgp 64677
bgp router-id 2.2.0.0
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
neighbor-group EBGP_AGN_PEERS
remote-as 6510
address-family ipv4 unicast
!
!
vrf 004
rd 127.4.0.4:0
address-family ipv4 unicast
!
neighbor 1.2.1.1
use neighbor-group EBGP_AGN_PEERS
update-source Loopback0
!
!
!
R2
Kod: Zaznacz cały
R2#sh ip route
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
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.4/30 is directly connected, GigabitEthernet2
L 1.1.1.5/32 is directly connected, GigabitEthernet2
8.0.0.0/32 is subnetted, 2 subnets
C 8.8.8.2 is directly connected, Loopback0
O 8.8.8.3 [110/2] via 1.1.1.6, 10:51:31, GigabitEthernet2
R2#sh ip route vrf 004
Routing Table: 004
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
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 1.1.1.0/30 is directly connected, GigabitEthernet3
L 1.1.1.2/32 is directly connected, GigabitEthernet3
C 1.2.1.1/32 is directly connected, Loopback1
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
O 2.2.0.1/32 [110/2] via 10.116.255.2, 00:21:42, GigabitEthernet4.252
B 2.2.2.0/24 [20/0] via 1.1.1.1, 11:04:25
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.116.255.0/29 is directly connected, GigabitEthernet4.252
L 10.116.255.5/32 is directly connected, GigabitEthernet4.252
Rx2
Kod: Zaznacz cały
RP/0/0/CPU0:Rx2#sh route
Sun Mar 8 12:09:51.179 UTC
Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
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, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR, l - LISP
A - access/subscriber, a - Application route
M - mobile route, (!) - FRR Backup path
Gateway of last resort is not set
L 2.2.1.1/32 is directly connected, 00:42:49, Loopback1
RP/0/0/CPU0:Rx2#sh route vrf 004
Sun Mar 8 12:10:19.907 UTC
Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
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, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR, l - LISP
A - access/subscriber, a - Application route
M - mobile route, (!) - FRR Backup path
Gateway of last resort is not set
O 1.2.1.1/32 [110/2] via 10.116.255.5, 00:28:41, GigabitEthernet0/0/0/1.252
L 2.2.0.1/32 is directly connected, 00:23:12, Loopback0
C 10.116.255.0/29 is directly connected, 01:22:12, GigabitEthernet0/0/0/1.252
L 10.116.255.2/32 is directly connected, 01:22:12, GigabitEthernet0/0/0/1.252
Tak jak pisałem nie wstaje sesja między 1.2.1.1 R2 a 2.2.0.1 Rx2