Chapter 10: BGP Configuration Guide
140 SmartSwitch Router User Reference Manual
In this example, OSPF is configured as the IGP in the autonomous system. The following lines in the router SSR6 configuration file configure OSPF:The following lines in the Cisco router configure OSPF:The following lines in the SSR6 set up peering with the Cisco router using the Routing group type.
#
# Create a secondary ad dress for the loopback i nterface
#
interface add ip lo0 ad dress-netmask 172.23.1.2 6/30
ospf create area backbo ne
ospf add interface to-S SR4 to-area backbone
ospf add interface to-S SR1 to-area backbone
#
# This line is necessary because we want CISCO to pe er with our loopback
# address.This will mak e sure that the loopback address gets announced
# into OSPF domain
#
ospf add stub-host 172. 23.1.26 to-area backbone cost 1
ospf set interface to-S SR4 priority 2
ospf set interface to-S SR1 priority 2
ospf set interface to-S SR4 cost 2
ospf start
The following lines on the CISCO 4500 configure s it for OSPF.
router ospf 1
network 10.12.1.1 0.0. 0.0 area 0
network 10.12.1.6 0.0. 0.0 area 0
network 172.23.1.14 0. 0.0.0 area 0
# Create a internal rout ing group.
bgp create peer-group ibgp1 ty pe routing autonomous-system 64801 proto any
interface all
# Add CISCO to the above group
bgp add peer-host 172.23 .1.25 group ibgp1
# Set our local address. This line is necessary because we want CISCO to
# peer with our loopback
bgp set peer-group ibgp1 local-address 172.23.1 .26
# Start BGP
bgp start