- Fetch the package 'zebra' from the FTP server (disk3) and install it
- Copy the sample configuration files into place
# rpm -Uvh zebra-0.93b-1.i386.rpm
# cd /usr/share/doc/zebra-0.93b
# cp zebra.conf.sample /etc/zebra/zebra.conf
# cp ospfd.conf.sample /etc/zebra/ospfd.conf
- Have a look at these files; they are very simple
- On the router machine, edit /etc/zebra/ospfd.conf and add an OSPF
section listing the network(s) on which you wish to exchange OSPF
information
router ospf
redistribute connected
network 192.188.58.64/27 area 0
- Configure your interfaces as normal
# ifconfig eth0 x.x.x.x netmask y.y.y.y
# ifconfig eth1 x.x.x.x netmask y.y.y.y
- Start zebra and ospfd:
# /etc/rc.d/init.d/zebra start
# /etc/rc.d/init.d/ospfd start
- Check your forwarding table (netstat -rn)
- You can manage the router using telnet: the interface is just like a
Cisco router! This lets you make configuration changes in real time.
# telnet 127.0.0.1 2601 -- to manage zebra
Try: show interface
enable
show run
show ip route
# telnet 127.0.0.1 2604 -- to manage ospfd
Try: show ip ospf neighbours
show ip ospf route
Hint: use [TAB] for command completion, and '?' to get a list of options
- On the client machine, you can just point default route at the router.
Or if you wish to play with zebra, then install it as above. You will need a
'network' statement on both machines to exchange information.
If you were running this in production, remember to change the default
passwords!