Download Bering-uClibc User's Guide - Communication Systems Group
Transcript
Zebra configuration
of the backbone (you will be told if that is the case), you should export a host route (192.168.0.X/32).
The neighbor IP address and ASN will be given to you by your maintener.
After editing configuration files, do a backup and start zebra and bgpd ("svi zebra start" and "svi bgpd
start" or reboot the router). The routes should appear within your kernel routing table ("ip route").
You need to open the appropiate ports in shorewall (fw <-> loc for internal and fw <-> net for external
routing protocols) to make the routing exchange possible.
Configuring Zebra with telnet
The individual daemons also provide a vty interface for Cisco like configuration. There are two ways of
doing this: by telnetting to localhost (this method is not further described, because Bering-uClibc doesn't
provide a telnet client due to securrity reasons) and by telnetting to the router with telnet from a client
machine. Opening ports on the firewall is always a securitty risk, so only do this is you trust your localnet.
Open the zebra port and one of more of the daemon ports in shorewall (loc to net):
Table 12.1. Daemon ports:
zebra
2601/tcp
# zebra vty
ripd
2602/tcp
# RIPd vty
ripngd
2603/tcp
# RIPngd vty
ospfd
2604/tcp
# OSPFd vty
bgpd
2605/tcp
# BGPd vty
ospf6d
2606/tcp
# OSPF6d vty
First configure the routing daemons as described in the previous section, additional you can set a password and a Hostname as described below:
Password: The password is like a standard user password, and think about the "enable password" like
the "root password" of an UNIX box. If you don't put an "enable password", it won't be necessary (id
est, empty password).
Hostname: You can also configure hostnames : If you use foo-zebra as hostname the router's name is
"foo" for zebra process, and foo-bgpd for the bgpd process. The hostname only influences the command
prompt when you connect to a router (with telnet firewall bgpd for instance).
After backup and starting of the different daemons, you can connect to them with: telnet <firewall>
<port or name>
Check the BGP configuration: Connect to your BGP routing process : telnet firewall bgpd ; you will
be prompted for a password. At the prompt, issue enable and give your enable password. Then, show ip
bgp will show BGP routes ; show ip bgp summary will show neighbors state. The latter should look like
this: firewall-bgpd# sh ip bg su Neighbor V AS MsgRcvd MsgSent TblVer
InQ OutQ Up/Down State/Pref 192.168.168.168 4 65168 14062 13971 0 0 0
1d23h59m 6 192.168.192.1 4 65301 6110 6250 0 0 0 2d00h01m 1 firewall-bgpd#
Notice that you can abbreviate commands. If you see big variations between MsgRcvd and MsgSent,
that may be a hint of network failures.
281