[FROG] simple frr ospf example setup
Moritz Warning
moritzwarning at web.de
Fri Aug 21 19:05:28 UTC 2020
Hi,
I am a newbie with frr/ospf. My aim is to run two ospfd instances in a Linux network namesspace each and let them talk to each other via a virtual link (interface called uplink).
My test setup is attached. But I do not see any traffic. This is probably some basic configuration error. I did have a look at the documentation, but it did not seem to cover such simple setups.
A few pointer in the right direction would be helpful.
thanks,
mwarning
$ ip netns add ns-0
$ ip netns add ns-1
# Node 0:
$ sudo ip netns exec ns-0 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: uplink at if3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether ce:e6:b3:5d:d3:70 brd ff:ff:ff:ff:ff:ff link-netns switch
inet 192.168.1.0/24 scope global uplink
valid_lft forever preferred_lft forever
inet6 fe80::cce6:b3ff:fe5d:d370/64 scope link
valid_lft forever preferred_lft forever
$ cat ospf0.conf
router ospf
ospf router-id 192.168.1.0
network 192.168.1.0/24 area 1
$ sudo ip netns exec ns-0 ospfd --terminal -f ./ospf0.conf -i /run/frr/ospfd0.pid
# Node 1:
$ sudo ip netns exec ns-1 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
7: uplink at if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 12:45:ca:46:19:52 brd ff:ff:ff:ff:ff:ff link-netns switch
inet 192.168.1.1/24 scope global uplink
valid_lft forever preferred_lft forever
inet6 fe80::1045:caff:fe46:1952/64 scope link
valid_lft forever preferred_lft forever
$ cat ospf1.conf
router ospf
ospf router-id 192.168.1.1
network 192.168.1.0/24 area
$ sudo ip netns exec ns-1 ospfd --terminal -f ./ospf1.conf -i /run/frr/ospfd1.pid
More information about the frog
mailing list