IPv6 BGP is enabled on the Network > Routing page, but must be configured on the SonicOS Command Line Interface (CLI).
The following restrictions apply to SonicOS 6.2:
In the following diagram, AS 200 is a transit AS for AS 100 and AS 300.
Figure 59. Autonomous System with multiple BGP routers configuration
Figure 60. Basic BGP over IPv6 configuration
To configure basic BGP over IPv6, configure routers R1 and R2 as follows:
EBGP Multihop enables you to establish a neighbor connection between two external peers that are not directly connected. Multihop is available only for eBGP and is not available in for iBGP. When the firewall has an external neighbor that does not have a direct connection, you can use the ebgp−multihop command to establish a neighbor connection.
To configure EBGP Multihop, configure routers R1 and R2 as follows:
To configure IPv6 BGP Outbound Route Filter (ORF), configure routers R1 and R2 as follows:
To check the routes on R1 and R2, use the show bgp ipv6 unicast command.
The route on R1 should have IPv6 address 1010::1/128.
The route on R2 should have IPv6 address 1111::1/128.
To configure IPv6 BGP Distribute List, configure routers R1 and R2 as follows:
To check the routes on R1 and R2, use the show bgp ipv6 unicast command.
The route on R1 should have IPv6 address 1010::1/128.
The route on R2 should have IPv6 address 1111::1/128.
To configure IPv6 BGP Route-Map, configure routers R1 and R2 as follows:
To check the routes on R1 and R2, use the show bgp ipv6 unicast command.
The route on R1 should have IPv6 address 1010::1/128.
The route on R2 should have IPv6 address 1111::1/128.
Figure 61. Autonomous System regular expression configuration
To check the routes on router RTA, use the show bgp ipv6 unicast command.
To configure AS regular expressions on RTA and deny all routes originated in AS100:
To check the routes on router RTA, use the show bgp ipv6 unicast command.
To modify the AS path to deny all routes learned from the AS100:
To check the routes on router RTA, use the show bgp ipv6 unicast command.
Figure 62 shows three ASs and the routing protocols used by the BGP routers.
Figure 62. Autonomous systems EBGP route selection configuration
The RTC router in AS300 advertises route 1000::/64 to both AS100 and to AS200.
The route from RTC (AS300) to RTA (AS100) runs OSPF.
The route from RTC (AS300) to RTB (AS200) runs eBGP.
The route from RTA (AS100) to RTB (AS200) runs eBGP.
To check the routes on router RTA, use the show ipv6 route command.
Since RTC is directly connected to RTA, the route from OSPF is actually a better route than the route learned by BGP. To ensure that the route between RTA and RTC is selected for the routing table, you can use the distance command to change the default administrative distance of the BGP route to a higher administrative distance than the OSPF route. For example:
You can also use the backdoor neighbor command to set the BGP route as the preferred route. For example:
To check the routes on router RTA, use the show ipv6 route command.
Figure 63. IPv6 BGP synchronization example
NOTE: You can make RTB think that IGP has already propagated the route information by adding a static route to 6666::6/128 on RTB and making sure that the other routers can reach 6666::6/128.
|
In this example, RTC (AS2) advertises address 6666::6/128 to RTA (AS100). In AS100, RTA and RTB are running iBGP, so RTB learns address 6666::6/128 and is able to reach it via next hop 5.5.5.5 (RTC). Next hop is carried via iBGP. However, to reach the next hop (RTC), RTB must send traffic through RTE, but RTE does not know IP address 6666::6/128.
If RTB advertises 6666::6/128 to RTD (AS400), traffic that tries to reach 6666::6/128 from RTD must pass through RTB and RTE in AS100. However, since RTE has not learned 6666::6/128, all packets will be dropped at RTE.
To configure BGP Synchronization on RTB in AS100:
To disable BGP Synchronization on RTB in AS100:
Figure 64. BGP route reflection configuration
To configure route reflection in an AS:
To check the routes, use the show bgp ipv6 unicast command:
You should see route 2020:20:20:20::20/128.
You should see route 1010:10:10:10::10/128.
The local preference designates a route to a certain network as the preferred exit route to that network from the AS. The route with a highest local preference is the preferred route. The default value of the local preference is 100, but this can be changed using the set local-preference command.
Figure 65. IPv6 BGP local preference configuration
To configure the local preference of a preferred route in an AS:
To verify the route, use the show bgp ipv6 unicast command:
Figure 66. BGP peer group update policy configuration
To configure an IPv6 BGP peer group and its update policies:
To verify that the correct local preference route is configured, use the show bgp ipv6 unicast command:
Figure 67. BGP confederation configuration
To configure a BGP Confederation:
Verify that R1, R2, and R3 can learn this route that is advertised by R5:
Verify that R2 can learn this route from R1 even though they are not directly connected:
NOTE: IPv6 BGP uses the ZebOS debug interface. The default setting for all debug switches is closed. Entering the CLI debug command on the console opens the debug switch.
|