Author Topic: ZebOS BGP Setup Successfully!  (Read 4152 times)

Offline jmelika

  • Administrator
  • Hero Member
  • *****
  • Posts: 341
  • Karma: 7
ZebOS BGP Setup Successfully!
« on: July 10, 2007, 07:40:54 AM »
I was able to successfully use my NetScaler running version 7.0 as a BGP router.  Setup your Netscaler with your NSIP, and MIP on the LAN side, plug in your feed line(s) to another port on the Netscaler box and setup the IP addresses as given to you by your ISP.  Setup your default gateway as given to you by your ISP also.

Once that is done, you now have to advertise your subnet using BGP.  Here is how:
1. Login to your Netscaler box using SSH
2. Type vtysh to get to ZebOS.
3. Here is my ZebOS configuration:

Current configuration:
!
!
interface lo0
 ip address 127.0.0.1/8
!
interface vlan0
 ip address l.a.n.2/16
!
interface vlan2
 ip address w.a.n.186/30
!
router bgp <my_as_number)
 network my.sub.net.0/22
 aggregate-address my.sub.net.0/22 summary-only
 redistribute kernel
 neighbor w.a.n.185 remote-as <the_isps_as_number>
 neighbor w.a.n.185 description ISP1_next_hop
 neighbor w.a.n.185 soft-reconfiguration inbound
 neighbor w.a.n.185 route-map DO_NOT_ACCEPT in
 neighbor w.a.n.185 route-map nexthop out
!
ip prefix-list DO_NOT_ADVERTISE seq 5 permit 0.0.0.0/0
ip prefix-list MY_NETS_2_ADVERTISE seq 5 permit my.sub.net.0/22
!
!
route-map DO_NOT_ACCEPT deny 10
!
route-map nexthop deny 5
 match ip address prefix-list DO_NOT_ADVERTISE
!
route-map nexthop permit 10
 match ip address prefix-list MY_NETS_2_ADVERTISE
 set ip next-hop w.a.n.186
!
end