BGP IPv6 GRE Tunnel

BGP is a routing protocol used in IPv4 and IPv6 networks to exchange routing information between different routers. One of the advantages of using BGP is its capability to

support IPv6, which is the latest version of the Internet Protocol.

In addition, BGP can be used to establish and manage GRE tunnels, which are encrypted data transfer channels between different network devices. GRE tunnels are commonly used for secure communication between remote sites, allowing data to be transmitted over the public Internet without being intercepted.

IPv6 is the latest version of the Internet Protocol and offers several advantages over IPv4, including increased address space and improved security. With the deployment of IPv6, BGP has become an essential tool for maintaining efficient routing between different IPv6 networks.

GRE tunnels allow for the creation of secure, private network connections between different sites, regardless of their location. These tunnels can be established using BGP, which provides a robust and stable method for managing the routing of data between different devices.

Overall, the use of BGP, IPv6, and GRE tunnels provides organizations with a powerful and flexible set of tools for building secure and efficient networks. Whether connecting remote sites or building complex network architectures, these technologies provide the foundation for modern networking solutions.

/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

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.