gnu zebra free software that runs routing protocols supports rip v1/v2, ospf, bgp configuration...
TRANSCRIPT
![Page 1: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/1.jpg)
GNU Zebra
• www.zebra.org
• Free software that runs routing protocols
• Supports RIP v1/v2, OSPF, BGP
• Configuration syntax is like cisco
• Linux or *BSD
![Page 2: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/2.jpg)
Zebra by daemons
• Zebra – the main program, interface config, static routing, communication with kernel routing tables
• Ospfd – ospf specific
• Bgpd – bgp specific
• Config is specific to demon
![Page 3: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/3.jpg)
“Console” communication with each zebra process is via
telnet localhost <port#>, with a separate port # for each process. There’s a default port, but you can set the port on command line.
Commands are cisco-style, but only the commands pertinent to that process work. ie "show ip route" will work when telnetted to zebra, but not work when telnetted to bgpd. Likewise, "show ip bgp" will not work for the zebra process, but will for bgpd.
![Page 4: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/4.jpg)
running
Installed in ITL lab.
binaries in /usr/local/sbin. The configs are in /usr/local/etc
Example started with
"zebra -P 5554" and "bgpd -P 5555"
![Page 5: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/5.jpg)
telnet localhost 5554 (to connect to zebra)
telnet localhost 5555 (to connect to bgpd)
Vty password must be set and enable password may be set
![Page 6: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/6.jpg)
hostname Router
password zebra
enable password zebra
interface lo
interface eth0
interface eth1
ip route 222.222.222.0/24 Null0
line vty
end
![Page 7: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/7.jpg)
hostname zebrabgpd
password zebra
log stdout
router bgp 65000
network 222.222.222.0/24
neighbor 172.21.110.5 remote-as 500
line vty
end
![Page 8: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/8.jpg)
zebrabgpd# sh ip bgp summary
BGP router identifier 192.168.10.63, local AS number 65000
3 BGP AS-PATH entries
0 BGP community entries
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.21.110.5 4 500 1073 1068 0 0 0 16:26:45 10
Total number of neighbors 1
![Page 9: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/9.jpg)
zebrabgpd# sh ip bgp
BGP table version is 0, local router ID is 192.168.10.63
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.5.0.0/16 172.21.110.5 0 0 500 i
*> 172.21.0.0 172.21.110.5 0 0 500 ?
*> 172.22.0.0 172.21.110.5 0 0 500 ?
*> 172.23.0.0 172.21.110.5 0 0 500 ?
![Page 10: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/10.jpg)
(continued)
*> 172.25.0.0/23 172.21.110.5 0 500 25 i
*> 172.26.0.0/23 172.21.110.5 0 500 25 i
*> 192.168.10.0 172.21.110.5 0 0 500 ?
*> 192.168.20.0 172.21.110.5 0 0 500 ?
*> 192.168.80.0 172.21.110.5 0 0 500 i
*> 192.168.90.0 172.21.110.5 0 0 500 i
*> 222.222.222.0 0.0.0.0 0 32768 i
![Page 11: GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD](https://reader036.vdocuments.us/reader036/viewer/2022081816/5697bf8b1a28abf838c8b154/html5/thumbnails/11.jpg)
WARNING
• A zebra is not = to a horse!!!
• Zebras have never been domesticated, anywhere in the world
• I(zebra) > I(tiger)
Zookeeper injuries from zebras exceed zookeeper injuries from tigers. (from Guns, Germs, and Steel by Diamond)