Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix indents

...

  1. Log into the CumulusVX-leaf1 VM using the default credentials:

    • username: cumulus

    • password: CumulusLinux!

  2. As the sudo user, edit the /etc/frr/daemons file in a text editor. Set zebra, bgpd, and ospfd to yes, and save the file.

    Code Block
    languagetext
    zebra=yes
    bgpd=yes
    ospfd=yes
    ...
  3. Run the following commands to configure the switch:

    Code Block
    languagetext
    cumulus@switch:~$ net add loopback lo ip address 10.2.1.1/32
    cumulus@switch:~$ net add interface swp1 ip address 10.2.1.1/32
    cumulus@switch:~$ net add interface swp2 ip address 10.2.1.1/32
    cumulus@switch:~$ net add interface swp3 ip address 10.4.1.1/24
    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 add ospf router-id 10.2.1.1
    cumulus@switch:~$ net add ospf network 10.2.1.1/32 area 0.0.0.0
    cumulus@switch:~$ net add ospf network 10.4.1.0/24 area 0.0.0.0
    cumulus@switch:~$ net pending
    cumulus@switch:~$ net commit

    These commands configure both /etc/network/interfaces and /etc/frr/frr.conf. The output of each file is shown below.

    Note

    To edit the configuration files directly as the sudo user, copy the configurations below.

    Code Block
    languagetext
    title/etc/network/interfaces
    # The loopback network interface
    auto lo
      iface lo inet loopback
        address 10.2.1.1/32
    
    # The primary network interface
    auto eth0
      iface eth0 inet dhcp
    
    auto swp1
      iface swp1
        address 10.2.1.1/32
    
    auto swp2
      iface swp2
        address 10.2.1.1/32
    
    auto swp3
      iface swp3
        address 10.4.1.1/24
    Code Block
    languagetext
    title/etc/frr/frr.conf
    service integrated-vtysh-config
    
    interface swp1
      ip ospf network point-to-point
    
    interface swp2
      ip ospf network point-to-point
    
    router-id 10.2.1.1
    
    router ospf
      ospf router-id 10.2.1.1
      network 10.2.1.1/32 area 0.0.0.0
      network 10.4.1.0/24 area 0.0.0.0
  4. Restart the networking service:

    Code Block
    languagetext
    cumulus@switch:~$ sudo systemctl restart networking
  5. Restart FRRouting:

    Code Block
    languagetext
    cumulus@switch:~$ sudo systemctl restart frr.service

...

  • CumulusVX-leaf2:

    Code Block
    languagetext
    titleNCLU Commands
    cumulus@switch:~$ net add loopback lo ip address 10.2.1.2/32
    cumulus@switch:~$ net add interface swp1 ip address 10.2.1.2/32
    cumulus@switch:~$ net add interface swp2 ip address 10.2.1.2/32
    cumulus@switch:~$ net add interface swp3 ip address 10.4.2.1/24
    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 add ospf router-id 10.2.1.2
    cumulus@switch:~$ net add ospf network 10.2.1.2/32 area 0.0.0.0
    cumulus@switch:~$ net add ospf network 10.4.2.0/24 area 0.0.0.0
    cumulus@switch:~$ net pending
    cumulus@switch:~$ net commit
    Code Block
    languagetext
    title/etc/network/interfaces
    # The loopback network interface
    auto lo
      iface lo inet loopback
        address 10.2.1.2/32
    
    # The primary network interface
    auto eth0
      iface eth0 inet dhcp
    
    auto swp1
      iface swp1
        address 10.2.1.2/32
    
    auto swp2
      iface swp2
        address 10.2.1.2/32
    
    auto swp3
      iface swp3
        address 10.4.2.1/24
    Code Block
    languagetext
    title/etc/frr/frr.conf
    service integrated-vtysh-config 
    
    interface swp1
      ip ospf network point-to-point
    
    interface swp2
      ip ospf network point-to-point
    
    router-id 10.2.1.2
    
    router ospf
      ospf router-id 10.2.1.2                                                           
      network 10.2.1.2/32 area 0.0.0.0  
      network 10.4.2.0/24 area 0.0.0.0
  • CumulusVX-spine1:

    Code Block
    languagetext
    titleNCLU Commands
    cumulus@switch:~$ net add loopback lo ip address 10.2.1.3/32
    cumulus@switch:~$ net add interface swp1 ip address 10.2.1.3/32
    cumulus@switch:~$ net add interface swp2 ip address 10.2.1.3/32
    cumulus@switch:~$ net add interface swp3 ip address 10.4.3.1/24
    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 add ospf router-id 10.2.1.3
    cumulus@switch:~$ net add ospf network 10.2.1.3/32 area 0.0.0.0
    cumulus@switch:~$ net add ospf network 10.4.3.0/24 area 0.0.0.0
    cumulus@switch:~$ net pending
    cumulus@switch:~$ net commit
    Code Block
    languagetext
    title/etc/network/interfaces
    # The loopback network interface
    auto lo
      iface lo inet loopback
        address 10.2.1.3/32
    
    # The primary network interface
    auto eth0
      iface eth0 inet dhcp
    
    auto swp1
      iface swp1
        address 10.2.1.3/32
    
    auto swp2
      iface swp2
        address 10.2.1.3/32
    
    auto swp3
    iface swp3
    iface swp3    address 10.4.3.1/24
    Code Block
    languagetext
    title/etc/frr/frr.conf
    service integrated-vtysh-config 
    
    interface swp1
      ip ospf network point-to-point
    
    interface swp2
      ip ospf network point-to-point
    
    router-id 10.2.1.3
    
    router ospf
      ospf router-id 10.2.1.3
      network 10.2.1.3/32 area 0.0.0.0
      network 10.4.3.0/24 area 0.0.0.0
  • CumulusVX-spine2:

    Code Block
    languagetext
    titleNCLU Commands
    cumulus@switch:~$ net add loopback lo ip address 10.2.1.4/32
    cumulus@switch:~$ net add interface swp1 ip address 10.2.1.4/32
    cumulus@switch:~$ net add interface swp2 ip address 10.2.1.4/32
    cumulus@switch:~$ net add interface swp3 ip address 10.4.4.1/24
    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 add ospf router-id 10.2.1.4
    cumulus@switch:~$ net add ospf network 10.2.1.4/32 area 0.0.0.0
    cumulus@switch:~$ net add ospf network 10.4.4.0/24 area 0.0.0.0
    cumulus@switch:~$ net pending
    cumulus@switch:~$ net commit
    Code Block
    languagetext
    title/etc/network/interfaces
    # The loopback network interface
    auto lo
      iface lo inet loopback
        address 10.2.1.4/32
    
    # The primary network interface
    auto eth0
      iface eth0 inet dhcp
    
    auto swp1
      iface swp1
        address 10.2.1.4/32
    
    auto swp2
      iface swp2
        address 10.2.1.4/32
    
    auto swp3
    iface swp3
    iface swp3    address 10.4.4.1/24
    Code Block
    languagetext
    title/etc/frr/frr.conf
    service integrated-vtysh-config 
    
    interface swp1
      ip ospf network point-to-point
    
    interface swp2
      ip ospf network point-to-point
    
    router-id 10.2.1.4
    
    router ospf
      ospf router-id 10.2.1.4
      network 10.2.1.4/32 area 0.0.0.0
      network 10.4.4.0/24 area 0.0.0.0

...