Thu 19 Oct 2006
version 2 explicitly tells gated to run RIPv2. The keyword multicast says to listen for updates on the RIPv2 multicast address. Finally, the authentication parameter defines the type of RIPv2 router authentication that will be used. In this case, we use simple password authentication. The password is EZdozIt. This example provides a RIPv2 host configuration that could be used on any system with only slight modifications. Our sample host receives its RIP updates from local routers. In the next section, one of these routers is configured. Running OSPF with gated Listings 7.13 and 7.14 define the configuration of a router that uses RIPv2 on one subnet and OSPF on another. That same configuration can be replicated with gated. Listing 7.16 is a sample gated OSPF router configuration. Listing 7.16: A gated OSPF/RIPv2 Interior Router Configuration # Don’t time-out subnet 60 interfaces { interface 172.16.60.1 passive ; } ; # Define the OSPF router id routerid 172.16.1.9 ; # Enable RIP-2; announce OSPF routes to # subnet 60 with a cost of 5. rip yes { broadcast ; defaultmetric 5 ; interface 172.16.60.1 version 2 multicast authentication simple “EZDozIt” ; } ; # Enable OSPF; subnet 1 is the backbone area; # use password authentication. ospf yes { backbone { authtype simple ; interface 172.16.1.9 { priority 5 ; authkey “UTrustME” ; } ; } ; } ; The configuration begins with an interfaces statement. It tells the router that the systems on subnet 60 may not provide RIPv2 updates. Normally, if no routing information is received on an interface, the interface is marked as inactive and assumed to be “down.” This statement ensures that the interface is not assumed to be “down” just because the hosts on the subnet do not advertise RIPv2 updates. Unlike the interface clause in Listing 7.15, this statement is not subordinate to a protocol statement. The routerid definition statement defines the address that will be used to identify this router for OSPF. Routers have more than one network interface and therefore more than one IP address. To ensure that the correct address is used in the OSPF link-state advertisements, specifically define the OSPF routerid. 222
Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra servlet hosting services