Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 #37

Open
majst01 opened this issue Feb 1, 2021 · 0 comments
Open

IPv6 #37

majst01 opened this issue Feb 1, 2021 · 0 comments

Comments

@majst01
Copy link
Contributor

majst01 commented Feb 1, 2021

Route map actually prohibits machine -> machine connection due to:

Feb 01 14:24:07 vagrant-leaf01 bgpd[4433]: swp1 rcvd UPDATE about ::/0 IPv6 unicast -- DENIED due to: route-map;
Feb 01 14:24:07 vagrant-leaf01 bgpd[4433]: swp1 rcvd UPDATE w/ attr: , origin ?, mp_nexthop fe80::204:ff:fe11:1101(fe80::204:ff:fe11:1101)(fe80::204:ff:fe11:1101), metric 0, path 4210000030
Feb 01 14:24:07 vagrant-leaf01 bgpd[4433]: swp1 rcvd UPDATE wlen 0 attrlen 79 alen 0
Feb 01 14:24:07 vagrant-leaf01 bgpd[4433]: swp1 rcvd UPDATE about 2002::3/128 IPv6 unicast -- DENIED due to: route-map;

ip prefix-list vrf30-in-prefixes seq 10 permit 10.0.0.1/32 le 32
ip prefix-list vrf30-in-prefixes seq 11 permit 10.0.4.1/32 le 32
ip prefix-list vrf30-in-prefixes seq 12 permit 2002::/64 le 32 <-- wrong bitlength
ip prefix-list vrf30-in-prefixes seq 13 permit 10.244.0.0/16 le 32

Turns out the match expression differs between ip and ipv6, with this route-map it works:

 !
 address-family ipv4 unicast
  redistribute connected
  neighbor MACHINE maximum-prefix 24000
  neighbor MACHINE route-map vrf30-in in
 exit-address-family
 !
 address-family ipv6 unicast
  redistribute connected
  neighbor MACHINE maximum-prefix 24000
  neighbor MACHINE route-map vrf30-in6 in
  neighbor MACHINE activate
 exit-address-family
 !
 address-family l2vpn evpn
  advertise ipv4 unicast
  advertise ipv6 unicast
 exit-address-family
!
ip prefix-list vrf30-in6-prefixes seq 12 permit 2002::/64 le 128
route-map vrf30-in6 permit 10
 match ipv6 address prefix-list vrf30-in6-prefixes <-- match ipv6
!
# route-maps for vrf30
ip prefix-list vrf30-in-prefixes seq 10 permit 10.0.0.1/32 le 32
ip prefix-list vrf30-in-prefixes seq 11 permit 10.0.4.1/32 le 32
ip prefix-list vrf30-in-prefixes seq 13 permit 10.244.0.0/16 le 32
route-map vrf30-in permit 10
 match ip address prefix-list vrf30-in-prefixes


@majst01 majst01 mentioned this issue Feb 2, 2021
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant