Sample zebra.conf
hostname hostname(1) password YourVTYPassword enable password YourEnablePassword? log file /var/log/zebra/zebra.log interface lo
ipv6 nd suppress-ra
interface eth0
ipv6 nd suppress-ra
interface sit0
ipv6 nd suppress-ra
use tap0 if using ETHERTAP, or wan0 if using TUN
interface tap0
interface wan0
ipv6 nd suppress-ra
interface ppp0
ipv6 nd suppress-ra
not sure if smux is necessary, mine works without it even though I spend hours trying to get it working
smux is "SNMP Multiplexer" it lets you query the routing daemon, but requires a SNMP daemon to be running
(hence why you may see smux "errors")
line vty
allows you to configure zebra via a telnet connection to localhost on port 2601 (zebra), requires password set
If you dont have IPv6 Support, you will need to remove the ipv6 lines
--- /etc/snmp/snmpd.conf --------------------------------------------------
#
smuxpeer .1.3.6.1.4.1.3317.1.2.1 snmpcommunity smuxpeer .1.3.6.1.4.1.3317.1.2.2 snmpcommunity smuxpeer .1.3.6.1.4.1.3317.1.2.3 snmpcommunity smuxpeer .1.3.6.1.4.1.3317.1.2.4 snmpcommunity smuxpeer .1.3.6.1.4.1.3317.1.2.5 snmpcommunity
- obsolete hardcoded OID
smuxpeer .1.3.6.1.6.3.1 snmpcommunity
- OSPF2MIB
smuxpeer .1.3.6.1.2.1.14 snmpcommunity
- BGP4MIB ("mib-2.15 of RFC1657")
smuxpeer .1.3.6.1.2.1.15 snmpcommunity
- RIPV2MIB
smuxpeer .1.3.6.1.2.1.4.23 snmpcommunity
- IPFWMIB
smuxpeer .1.3.6.1.2.1.4.24 snmpcommunity
--- /etc/zebra/zebra.conf -------------------------------------------------
smux peer 1.3.6.1.4.1.3317.1.2.5 snmpcommunity
--- /etc/zebra/ospfd.conf -------------------------------------------------
smux peer 1.3.6.1.2.1.14 snmpcommunity
--- /etc/zebra/bgpd.conf -------------------------------------------------
smux peer 1.3.6.1.2.1.14 snmpcommunity
Warning: snmpcommunity is technically a password and should be considered insecure, - it syslogs it all over the place! (Stupid snmpd.) Note that snmpd.conf doesn't have the space in 'smuxpeer' while Zebra does.
2 pages link to zebra.conf: