Thu 19 Oct 2006
[root]# cat /etc/zebra/ospfd.conf ! Enable OSPF; connect to the backbone area ! Use simple authentication password a-DA-zip enable password TX4123 ! interface eth0 ip ospf authentication-key UTrustME ip ospf priority 10 ! router ospf ospf router-id 172.16.1.5 redistribute bgp network 172.16.1.0/24 area 0 ! Passwords and addresses have changed. Beyond these cosmetic changes, there is nothing new in the zebra.conf file that needs to be discussed. The ospfd.conf file has two interesting changes. First, this router is assigned a higher priority number. (Given the work it will be doing to handle BGP, we decided not add the burden of being the designated router for OSPF.) Second a redistribute bgp clause has been added because we want the router to advertise the routes it learns from BGP to the other OSPF routers. The largest new part of this configuration is the bgpd.conf file. In Listing 7.14, a possible bgpd.conf file for a router to attach the OSPF backbone area (described for Listing 7.13) to an external autonomous routing domain using BGP is defined. Listing 7.14: A Sample bgpd.conf File ! Enables BGP ! Our ASN is 264; our neighbors are in ASN 164 ! Advertise directly connected routes and routes ! learned from OSPF password BDRwar enable password awtoMA ! router bgp 249 redistribute connected redistribute ospf neighbor 26.6.0.103 remote-as 164 neighbor 26.20.0.72 remote-as 164 ! The router bgp 249 statement enables BGP and assigns the autonomous system number (ASN). BGP exchanges routing information between autonomous systems; thus, an ASN is required for BGP to function. Listing 7.14 says that the ASN of our autonomous system is 249. Note To exchange routing data between official routing domains, you need an official ASN; you can’t just make one up, and you can’t use the ones in this example they are the official ASNs of two government networks I worked on. For information on filing the paperwork to apply for your own official ASN, go to http://www.iana.org/, and follow the links to the appropriate registry for your part of the world. If you use BGP to link together independent networks within a single autonomous system, and the routing data stay within that autonomous system, use one of the ASN numbers reserved for private use. The numbers 217
Note: If you are looking for good and affordable webspace to host and run your servlet application check Virtualwebstudio servlet hosting services