[FROG] simple frr ospf example setup

Don Slice dslice at cumulusnetworks.com
Fri Aug 21 20:33:21 UTC 2020


Can you ping between the pertinent interfaces?  In other words, did you
verify reachability between 192.168.1.1 and 192.168.1.0?  BTW, I
would avoid using the .0 address on a /24.  Historically, this has
represented the subnet and not one of the addresses on the subnet.  There
are circumstances it makes sense (/31 addressing for example) but is
normally not done, at least as far as I know.

On Fri, Aug 21, 2020 at 3:08 PM Moritz Warning <moritzwarning at web.de> wrote:

> 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
>
> _______________________________________________
> frog mailing list
> frog at lists.frrouting.org
> https://lists.frrouting.org/listinfo/frog
>


-- 
Don Slice
Cumulus Networks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/frog/attachments/20200821/b2ed7f87/attachment.htm>


More information about the frog mailing list