Tue 17 Oct 2006
and info documentation files, and quick reference man pages. Second, most of these commands never appear in a Linux router configuration. The best way to learn about Zebra configuration is to look at some reasonable examples. The zebra.conf File The zebra routing manager is required if you want to use any of the Zebra routing daemons. zebra maintains the kernel routing table, maintains the network interface list, defines the static routes, and manages the sharing of information between the different routing protocols. zebra is configured by the zebra.conf file. Listing 7.5 shows a sample zebra.conf file for a Linux system using two Ethernet interfaces: Listing 7.5: Sample zebra.conf File ! The hostname of this router hostname subnet60gw ! The password required for vtysh access password Wats?Watt? ! The password required for privileged vtysh commands enable password CHLLlns ! The first network interface interface eth0 ip address 172.16.60.1/24 multicast ! The second network interface interface eth1 ip address 172.16.1.9/24 ! The path to the log file log file /var/log/zebra.log ! A sample static route ip route 172.16.50.0/24 172.16.1.50 ! Comments in the various Zebra configuration files begin with an exclamation mark (!). The comments in Listing 7.5 explain the commands that follow them. The sample file in Listing 7.5 is larger and more complex than most. It was made that way to provide a full range of examples, but it is worthwhile to remember that your zebra.conf file will probably be smaller. The hostname command defines the hostname of the router. This is the name that will be used in routing protocol exchanges that use router names. zebra.conf files often start with this command. Next come two commands that define passwords. The password command is necessary if you plan to use the vtysh interface. If this password is not defined, the vtysh interface is disabled for zebra. The second password provides greater configuration control to the vtysh interface. Without the password defined by the enable password command, the vtysh interface can only be used to query zebra for information. With this second password, the zebra configuration can be controlled from the interface. We look at vtysh in more detail later. The first interface command defines the configuration of eth0. The command contains two clauses: ip address, which defines the address of the interface; and multicast, which turns on the multicasting flag for the interface. The multicast flag might be used if you planned to use a 209
Note: If you are looking for cheap and reliable provider to host and run your servlet application check Vision servlet hosting services