|
Applicable Version: 10.00 onwards
Overview
Border Gateway Protocol (BGP) is the protocol which makes core routing decisions on the Internet. It maintains a table of IP networks or 'prefixes' which designate network reach-ability among autonomous systems (AS), which is a collection of networks controlled by a common or single administrator. BGP allows the Internet to be a truly decentralized system.
Cyberoam can be configured to communicate with neighbouring ASs using BGP. This article describes how you can configure BGP in Cyberoam.
Scenario
As shown in the diagram, the entire network forms an AS 8800. Configure Cyberoam to act as a BGP peer or neighbour to AS 5566 and, hence, publish servers in Zone1 (123.186.23.0/27) and Zone 2 (81.236.82.0/27) over the Internet.
Prerequisites
Prior to configuration, obtain the following details from your ISP:
- BGP AS Number
- Update Source IP
Configuration
To publish servers over the Internet using BGP, configure Cyberoam as an External BGP peer with the ISP router and an Internal BGP peer with the internal router.
Configuring Cyberoam as EBGP Peer
To Configure Cyberoam as an EBGP peer, follow the steps given below.
Step 1: Create Firewall Rule to Allow Cyberoam to Receive BGP Updates
Go to Firewall à Rule à Rule create a new rule which allows BGP traffic from WAN to LOCAL Zones.
Step 2: Configure Cyberoam as EBGP Peer
1. Login to Cyberoam CLI Console.
2. From the Main Menu, choose Option 3 – Route Configuration.
3. From the Router Management Menu, choose Option 1 – Configure Unicast Routing.
4. From the Unicast Routing Configuration Menu, choose Option 3 – Configure BGP.
5. In the BGP command prompt, fire the following commands.
● Enable BGP configuration
bgp> enable
· Declare Router-ID to identify neighbours
bgp(config)# router bgp 8800
bgp(config-router)#bgp router-id 123.234.12.5
● Set peer parameters
bgp(config-router)#neighbor 123.234.12.6 remote-as 5566
bgp(config-router)#neighbor 123.234.12.6 ebgp-multihop 4
bgp(config-router)#neighbor 123.234.12.6 update-source 123.234.12.5
Step 3: Publish Server Zones to the ISP
To publish server networks, fire the following commands
bgp(config-router)#network 123.186.23.0 mask 225.255.255.224
bgp(config-router)#network 123.234.12.4/30
The above steps configure Cyberoam as an EBGP peer to the ISP router. To check whether the EBGP peer has been successfully created, execute the following command:
bgp(config-router)#do show ip bgp summary
Configuring Cyberoam as IBGP Peer
To Configure Cyberoam as an IBGP peer, follow the steps given below.
Step 1: Create Firewall Rule to Allow BGP Updates on LAN Interface
Go to Firewall à Rule à Rule create a new rule which allows BGP traffic from LAN to LOCAL Zones.
Step 2: Configure Cyberoam as IBGP Peer
1. Login to Cyberoam CLI Console.
2. From the Main Menu, choose Option 3 – Route Configuration.
3. From the Router Management Menu, choose Option 1 – Configure Unicast Routing.
4. From the Unicast Routing Configuration Menu, choose Option 3 – Configure BGP.
5. In the BGP command prompt, fire the following commands.
● Enable BGP configuration
bgp> enable
● Set peer parameters
bgp(config)# router bgp 8800
bgp(config-router)#neighbor 123.186.23.20 remote-as 8800
bgp(config-router)#neighbor 123.186.23.20 update-source 123.186.23.18
The above steps configure Cyberoam as an IBGP peer to the Internal router. To check whether the IBGP peer has been successfully created, execute the following command:
bgp(config-router)#do show ip bgp summary
Step 3: Configure Internal Router to form Cyberoam’s IBGP Peer
Here, we have shown the configuration of a Cisco router. Login to the router’s CLI and fire the following commands
● Enable BGP configuration
bgp> enable
● Declare Router-ID to identify neighbours
bgp(config)# router bgp 8800
bgp(config-router)#bgp router-id 123.186.23.20
● Declare server networks
R2(config-router)#net 81.236.82.0 mask 255.255.255.224
R2(config-router)#net 123.186.23.0 mask 255.255.255.224
● Set peer parameters
R2(config-router)#neighbor 123.186.23.18 remote-as 8800
R2(config-router)#neighbor 123.186.23.18 update-source 123.186.23.20
The above steps configure Cyberoam and the Internal Router as IBGP peers.
Document Version: 1.0 – 14/09/2012
|