Below are the steps in installing ospf in pfsense.
- start by downloading the openospfd package from the freebsd website. In the console or terminal, type :
- #pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/net/openospfd-4.3.tbz
- This will download and install (libevent-1.4.6 package) its dependency.
- Create a simple config file "/usr/local/etc/ospfd.conf", where 1.2.3.4 is the IP address of the interface, and rl0 is the interface:
# cat /usr/local/etc/ospfd.conf
router-id: 1.2.3.4
area 0.0.0.0 {
interface rl0
} - Change the permission for the configuration file :
# chmod 600 /usr/local/etc/ospfd.conf - Test the ospf config with the command below:
# /usr/local/sbin/ospfd -n -v - To start, use :
# /usr/local/sbin/ospfd - Rename the file below:
# mv /usr/local/etc/rc.d/openospfd /usr/local/etc/rc.d/openospfd.sh - Enable ospf from boot up
# vi /usr/local/etc/rc.d/openospfd.sh <-- add line openospfd_enable="YES"
When the config-check command (# /usr/local/sbin/ospfd -n -v) was run, below was the putput from my system.
router-id 192.168.0.225
fib-update yes
rfc1583compact no
spf-delay 1
spf-holdtime 5
area 0.0.0.0 {
interface rl0:192.168.0.245 {
hello-interval 10
metric 10
retransmit-interval 5
router-dead-time 40
router-priority 1
transmit-delay 1
auth-type none
}
}
No comments:
Post a Comment