Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add interfaces for unnumbered OSPF config

...

Code Block
languagetext
cumulus@switch:~$ net add ospf vrf vrf1 
cumulus@switch:~$ net add ospf vrf vrf1 router-id 4.4.4.4
cumulus@switch:~$ net add ospf vrf vrf1 log-adjacency-changes detail
cumulus@switch:~$ net add ospf vrf vrf1 network 10.0.0.0/24 area 0.0.0.1
cumulus@switch:~$ net add ospf vrf vrf1 network 9.9.0.0/16 area 0.0.0.0
cumulus@switch:~$ net add ospf vrf vrf1 redistribute connected
cumulus@switch:~$ net add ospf vrf vrf1 redistribute bgp
cumulus@switch:~$ net add interface swp1 ospf network point-to-point
cumulus@switch:~$ net add interface swp2 ospf network point-to-point
cumulus@switch:~$ net pending
cumulus@switch:~$ net commit

These commands create the following configuration in the /etc/frr/frr.conf file:

Code Block
languagetext
!
interface swp1
 ip ospf network point-to-point
!
interface swp2
 ip ospf network point-to-point
!
router ospf vrf vrf1
 ospf router-id 4.4.4.4
 log-adjacency-changes detail
 redistribute connected
 redistribute bgp
 network 9.9.0.0/16 area 0.0.0.0
 network 10.0.0.0/24 area 0.0.0.1
!

...