Give IP to bridge / loopback by net add interface error!

  • 1
  • Problem
  • Updated 1 year ago
  • (Edited)
When read the Cumulus Linux userguide 3.2.1 there is instruct add IP into bridge with command: 

net add interface bridge ip address

I tested but it gave me:

ERROR: 'net (add|del) bridge ...' must be used to edit the bridge interface

And when test with command:

net add interface lo ip address

It gave the error:

ERROR: 'net (add|del) loopback ...' must be used to edit a loopback interface

I want to know why the userguide gave me the instruction but i cannot run the command? And need to know how to do it right? Thanks!
Photo of Tuan Anh Do

Tuan Anh Do

  • 110 Points 100 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Nipul Shah

Nipul Shah, Employee

  • 280 Points 250 badge 2x thumb
Hi Tuan,

Thanks for pointing out the error from the command provided in the user guide. We will have that fixed.

For 3.2.1, using NCLU to configure the IP address for an SVI, please use:

cumulus@switch:~$ net add bridge bridge ports swp1-2
cumulus@switch:~$ net add vlan 10 ip address<br>
That example is from this section in the user guide:

For configuring the IP address for a loopback interface, please use:
cumulus@switch:$ net add loopback lo ip address
Photo of Tuan Anh Do

Tuan Anh Do

  • 110 Points 100 badge 2x thumb
Thank you for your reply!
Photo of Pete B

Pete B, Official Rep

  • 2,774 Points 2k badge 2x thumb
Thanks for catching this. Sorry for the confusion, Tuan. I updated the docs.