Oct 28, 2009 19:58
/usr/ports/net/quagga
есть также /usr/ports/net/openospfd и /usr/ports/net/openbgpd
Устанавливаем, в рц конф -
defaultrouter="NO"
quagga_enable="YES"
quagga_flags="-d"
quagga_daemons="zebra ospfd"
quagga_delay="30"
# ripd ripngd ospfd bgpd isisd
# zebra_flags="-dP 0"
# bgpd_flags="-dnrP 0" and so on
#quagga_extralibs_path="/usr/local/lib"
router_enable="NO"
watchquagga_enable="YES"
#watchquagga_flags="..."
В /usr/local/etc/quagga файлы по типу ospfd.conf
С конфигом:
hostname ospf-srv1
password enter
enable password password
log file /var/log/ospfd.log
interface carp0
interface em0
interface fxp0
interface lo0
interface ng0
interface rl0
router ospf
ospf router-id 192.168.0.1
redistribute static
network 192.168.0.1/24 area 0.0.0.0
neighbor 192.168.0.2
default-information originate
line vty
zebra.conf
hostname zebra-srv
password enter
enable password password
log file /var/log/zebra.log
interface em0
description Interface to External Network
ip address 10.176.10.10/22
interface fxp0
description Interface to Internal Network
ip address 192.168.0.1/24
Коннект к демонам через telnet (telnet 127.0.0.1 2604)
zebra 2601/tcp # zebra vty
ripd 2602/tcp # ripd vty (zebra)
ripngd 2603/tcp # ripngd vty (zebra)
ospfd 2604/tcp # ospfd vty (zebra)
bgpd 2605/tcp # bgpd vty (zebra)
ospf6d 2606/tcp # ospf6d vty (zebra)
ospfapi 2607/tcp # OSPF-API
isisd 2608/tcp # ISISd vty (zebra)
configure terminal
router ospf
redistribute kernel
write mem
quagga