转载自http://blog.sina.com.cn/s/blog_68b156d50101kfcq.html,作者:郑大哲
部分资料摘自http://blog.chinaunix.net/uid-25513153-id-212353.html
首先启动Quagga的守护进程,
- #sudo zebra –d
利用telnet进入zebra配置
zinkin@zinkin-desktop:~/quagga/quagga-0.99.17$ telnet localhost 2601Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Hello, this is Quagga (version 0.99.17).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Password:(输入 zebra)
Router> en
Password:(输入 zebra)
Router# show in
Interface eth0 is up, line protocol detection is disabled
Interface lo is up, line protocol detection is disabled
Router# show interface
Interface eth0 is up, line protocol detection is disabled
Interface lo is up, line protocol detection is disabled
Router#
Router#:conf t进入配置模式
Router(config)# interface eth0 (进入接口f0/0)
Router(config-if)# ip address 192.168.1.1/24 (设置接口ip地址和子网掩码)
Router(config-if)# no shutdown (启用接口)
开启RIP协议
- #cp /usr/local/etc/ripd.conf.sample /usr/local/etc/ripd.conf
- #vi /usr/local/etc/ripd.conf
加入如下内容
- router rip
- version 2
- network eth0
- network eth1
保存退出
ripd配置完成,执行
- #zebra –d
- #ripd –d
rip正常启动后,可以用ip route show看看路由是否已经建立。