Contents
|
We want to run dynamic IP routing.
We use the GNU Zebra implementation. It is easy to configure and it is Free. Zebra provides implementations of several routing protocols - OSPF, RIP, BGP.
Different configuration files are in /etc/zebra: zebra.conf (common), ripd.conf (RIP), ospfd.conf (OSPFv2)
zebra=yes ripd=yes
Sample zebra.conf
hostname Router ! password zebra ! enable password zebra ip route 0.0.0.0/0 169.229.255.128 ! log file /var/log/zebra/zebra.log
Network options
router ripd
network <a.b.c.d/mask> ! OR network eth0
neighbor <a.b.c.d>
Route distribution
redistribute connected
redistribute static
redistribute kernel
Route Filtering
RIP supports route filtering when we want to restrict the dynamic routing to certain networks. For example, we do not want to forward routes that go to our default network connection.
access-list private permit 10.0.0.0/8 access-list private deny any
distribute-list private in ath0 distribute-list private out ath0
Sample ripd.conf
hostname ripd ! password zebra ! ! debug rip events ! debug rip packet ! router rip network 10.0.101.0/24 network 10.0.105.0/24 network 10.0.201.0/24 redistribute connected redistribute static distribute-list private in ath0 distribute-list private out ath0 distribute-list private in ath1 distribute-list private out ath1 distribute-list private in tun0 distribute-list private out tun0 access-list private permit 10.0.0.0/8 access-list private deny any ! log file /var/log/zebra/ripd.log
TODO
ifconfig tun0 <local-IP/netmask> pointopoint <peer-IP>
Recent comments
1 week 4 days ago
5 weeks 8 hours ago
5 weeks 1 day ago
6 weeks 4 days ago
7 weeks 6 days ago
8 weeks 2 days ago
8 weeks 4 days ago
9 weeks 2 days ago
9 weeks 4 days ago
10 weeks 1 day ago