11
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

GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD

Embed Size (px)

Citation preview

Page 1: GNU Zebra  Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD

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

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

“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

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

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

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

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

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

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

(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

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)