462 CN4093 Application Guide for N/OS 8.4
BGP Failover Configuration
UsethefollowingexampletocreateredundantdefaultgatewaysforaCN4093ata
WebHost/ISPsite,eliminatingthepossibility,shouldonegatewaygodown,that
requestswillbeforwardedtoanupstreamrouterunknowntotheswitch.
AsshowninFigure 45,theswitchisconnectedtoISP1andISP
2.Thecustomer
negotiateswithbothISPstoallowtheswitchtousetheirpeerroutersasdefault
gateways.TheISPpeerrouterswillthenneedtoannouncethemselvesasdefault
gatewaystotheCN4093.
Figure 45. BGPFailoverConfigurationExample
OntheCN4093,onepeerrouter(thesecondaryone)isconfiguredwith
alongerAS
paththantheother,sothatthepeerwiththeshorterASpathwillbeseenbythe
switchastheprimarydefaultgateway.ISP2,thesecondarypeer,isconfigured
withametricof“3,”therebyappearingtotheswitchtobethreerouterhopsaway.
1.
DefinetheVLANs.
Forsimplicity,bothdefaultgatewaysareconfiguredinthesameVLANinthis
example.ThegatewayscouldbeinthesameVLANordifferentVLANs
.
2. DefinetheIPinterfaceswithIPv4addresses.
TheswitchwillneedanIPinterfaceforeachdefaultgatewaytowhichitwillbe
connected.EachinterfacemustbeplacedintheappropriateVLAN.These
interfaceswillbeusedastheprimaryandsecondarydefaultgatewaysforthe
switch.
ISP 1
AS 100
BladeCenter
Server 1
IP: 200.200.200.10
Server 2
IP: 200.200.200.11
IP: 200.200.200.1
IP: 210.210.210.1
ISP 2
AS 200
Peer 1 Router
(Primary)
IP:200.200.200.2
Default gateway,
with routes having
shorter AS PATH
GbE Switch Module
announces routes with
metric of “3”
Peer 2 Router
(Secondary)
IP:210.210.210.2
Metric = AS path
length (metric of ‘3’) = local
AS repeated 3 times
CN 4093(config)# vlan 1
CN 4093(config)# interface ip 1 address 200.200.200.1 255.255.255.0 enable
CN 4093(config-ip-if)# exit
CN 4093(config)# interface ip 2 address 210.210.210.1 255.255.255.0 enable
CN 4093(config-ip-if)# exit