GalaxyData Community

BGP IPv6 GRE Tunnel

/interface gre
add interface=ether2 name=vlan-202-bgp-local vlan-id=20

/ipv6 address
add address=2a0b:6903:fdb:c299::2 advertise=no interface=vlan-202-bgp-local

/routing bgp instance
set default as=206873 ignore-as-path-len=yes

/routing bgp network
add disabled=yes network=2a0b:6903::/48 synchronize=no

/ipv6 route
add distance=200 gateway=2a0b:6903:fdb:c299::1
add comment="Discard-Only Address Block [RFC6666]" distance=1 dst-address=100::/64 type=unreachable
add distance=244 dst-address=2a0b:6903::/48 type=unreachable

/routing bgp peer
add address-families=ipv6 in-filter=FROM-NET-X86-LUN-IPV6 name=net-x86-lun out-filter=TO-NET-X86-LUN-IPV6 remote-address=\
    2a0b:6903:fdb:c299::1 remote-as=206873 ttl=defaul

/routing filter
 add action=jump address-family=ipv6 chain=FROM-NET-X86-LUN-IPV6 jump-target=\
     BOGUS-IPV6 protocol=bgp
 add action=jump address-family=ipv6 chain=FROM-NET-X86-LUN-IPV6 jump-target=\
     FROM-NET-X86-LUN-IPV6-PRIORITY protocol=bgp
 add action=accept address-family=ipv6 chain=FROM-NET-X86-LUN-IPV6 prefix=\
     2000::/3 prefix-length=3-32
 add action=discard chain=FROM-NET-X86-LUN-IPV6
 add action=accept chain=TO-NET-X86-LUN-IPV6 prefix=2a0b:6903::/48
 add action=discard chain=TO-NET-X86-LUN-IPV6
 add action=accept address-family=ipv6 chain=FROM-NET-X86-LUN-IPV6 comment=\
     "Accept Default" prefix=::/0 prefix-length=0 protocol=bgp \
     set-bgp-local-pref=50
Exit mobile version