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.
primary mbox connecting to primary link, secondary mbox connecting to secondary link
customer owns dedicated ASN, with dedicated public addressing space (ASN and public addressing can be assigned by ISP if both links are from same ISP)
primary and secondary mbox run VRRP, with primary mbox being the active router, therefore all traffic goes out from primary mbox by default
secondary mbox advertise client network with pre-pend option, so that routes from secondary mbox is less preferred (therefore standby) for return traffic, so that return traffic also comes back from primary link by default (therefore, both outbound and inbound traffic through primary link).
In case of primary link/mbox failure, primary mbox VRRP status changes to standby and stops advertising routes to Internet; secondary mbox assume active VRRP status for outbound traffic, and advertises customer network for return traffic (therefore both outbound and inbound traffic go through secondary link)
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
mbox runs both IPv4 and IPv6 dual stack.
mbox is configured to receive/advertise both IPv4 and IPv6 routes