Configure BGP on mbox

mox supports Border Gateway Protocol (BGP) for both IPv4 and IPv6. Below are some examples of mbox BGP configuration. 

BGP WITH DUAL ISP LINKS (dual homing)

In this example, customer has two uplinks to ISP, with it’s own dedicated AS number and public addressing space.

support doc - BGP design (dual ISP).jpg

 

Primary mbox config:!interface eth0description "Link to ISP1"enableip address 201.201.136.134/30!interface eth1description "Link to customer Net"enableip address 119.201.130.1/24vrrp-group 10 state MASTER priority 120 authentication Letmein99 virtual_ipaddress 119.201.130.3 start!router bgp 65003neighbor 201.201.136.133 remote-as 65001network 119.201.130.0/24! Secondary mbox config:!interface eth0description "Link to ISP2"enableip address 202.201.136.134/30!interface eth1description "Link to customer Net"enableip address 119.201.130.2/24vrrp-group 10 state SLAVE priority 80 authentication Letmein99 virtual_ipaddress 119.201.130.3 start!!use a route-map to prepend routes advertised from secondary mboxroute-map MBOXBK permit 10set as-path prepend 65003 65003 65003!router bgp 65003neighbor 202.201.136.133 remote-as 65002neighbor 202.201.136.133 route-map MBOXBK outnetwork 119.201.130.0/24! Troubleshooting/Verification commands:========================================show ip bgpshow ip bgp neighborshow ip bgp summaryshow ip route bgp

BGP WITH IPv6 SUPPORT

In this example, we configure mbox to support both IPv4 and IPv6 routes

support doc - BGP IPv6.jpg
mbox config:!interface eth0description "Connection to WAN"link full 1000enableip address 201.201.136.134/30ipv6 address 2001:D20:1800::5/127!interface eth1description "Connection to LAN"enableip address 119.201.130.1/24ipv6 address 2001:D20:1804::5/48!router bgp 65003bgp router-id 119.201.130.1neighbor 201.201.136.133 remark "IPv4 BGP peering"neighbor 201.201.136.133 remote-as 65001neighbor 2001:D20:1800::4 remark "IPv6 BGP peering"neighbor 2001:D20:1800::4 remote-as 65001no neighbor 2001:D20:1800::4 activatenetwork 119.201.130.0/24address-family-ipv6 neighbor 2001:D20:1800::4 activate network 2001:D20:1804::/48!Troubleshooting/Verification commands:========================================show ip bgpshow ip bgp neighborshow ip bgp summaryshow ip route bgp show ipv6 bgpshow ipv6 bgp neighborshow ipv6 bgp summaryshow ipv6 route bgp