Create the Zebra and OSPFD configuration files:
[Root@localhost ~]# cp/usr/local/etc/zebra.conf.sample/usr/local/etc/zebra.conf
[root@localhost ~]# cp/usr/ Local/etc/ospfd.conf.sample/usr/local/etc/ospfd.conf
Launch zebra and OSPFD processes:
[Root@localhost ~]# zebra-d
[root@localhost ~]# ospfd-d
Log into Zebra router: "Default port is 2601, password default is Zebra"
[root@localhost ~]# telnet localhost 2601
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is ' ^] '.
Hello, this is Quagga (version 1.0.20160309).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Password:zebra
router>
router>
router>
router>?
Echo echo a message back to the vty
enable Turn in privileged mode command
exit exit current MO De and previous mode help Description of the
Interactive Help system
List Print command li St
quit Exit current mode and down to previous mode
show show running system Information
TE Rminal Set Terminal line parameters The Who Display who's on
vty
router>
Login OSPFD Service: "Default port is 2604, default password is Zebra"
[root@localhost ~]# telnet localhost 2604
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is ' ^] '.
Hello, this is Quagga (version 1.0.20160309).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Password:
ospfd>
ospfd>
ospfd>
ospfd>
Echo Echo a message back to the vty
enable Turn in privileged mode command
exit exit current mode and down To previous mode help Description of the Interactive Help system
list Print command list
quit< C22/>exit current mode and down to previous mode
show show running System Information
terminal Set te Rminal line parameters The Who Display who's on vty
ospfd>
Configure OSPF
ospfd> Enable
ospfd# Configure terminal
ospfd (config) # router
ospfd (config) # router OSPF
OSPFD ( Config-router) #network 10.92.18.0/30 area 0
ospfd (config-router) # exit
ospfd (config) # exit
ospfd# show ip OSPF neighbor all
neighbor-ID Pri State Dead time Address Interface rxmtl
rqstl dbsml 2.2.2.2 1 full/dr 39.460s 10.92.18.1 eth0:10.92.18.2 0 0 0
ospfd# Write
Configuration saved to/usr/local/etc/ospfd.conf
ospfd#
OSPF configuration is complete.