Vagrant: Error while activating network: Call to virNetworkCreate failed: internal error: Network is already in use by interface

Network is already in use by interface ” Threw me for a minute

The issue was that an IP address specified in the Vagrant file was in use by the host i was using. Changed the IP’s in the vagrant file.. Problem solved


==> worker1: An error occurred. The error will be shown after all tasks complete.
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.

An error occurred while executing the action on the 'central'
machine. Please handle this error then try again:

Error while activating network: Call to virNetworkCreate failed: internal error: Network is already in use by interface br0.

An error occurred while executing the action on the 'worker1'
machine. Please handle this error then try again:

Error while activating network: Call to virNetworkCreate failed: internal error: Network is already in use by interface br0.

An error occurred while executing the action on the 'worker2'
machine. Please handle this error then try again:

Bonding in active-backup using linux bridges on Ubuntu 18

Because this was WAAYY more difficult to find any decent doco on that I had ever expected, here is what worked for me

I deleted the netplan config file at /etc/netplan/01-netcfg.yaml

rm /etc/netplan/01-netcfg.yaml

Ensure that ‘bonding’ appears in /etc/modules (I’s not here by default)

echo bonding >> /etc/modules

 

Here is /etc/network/interfaces

source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback

allow-hotplug ens3f0
iface ens3f0 inet manual
bond-master bond0

allow-hotplug ens3f1
iface ens3f1 inet manual
bond-master bond0

allow-hotplug bond0
iface bond0 inet static
address 172.16.103.12/24
gateway 172.16.103.254
mtu 9000

bond-mode active-backup
bond-miimon 100
bond-slaves none

 

Linux static routes & fixing “Error: either “to” is duplicate, or gw is a garbage.”

I was having troubles adding a route using ip route, I was getting “Error: either “to” is duplicate, or “172.16.1.254” is a garbage.”

[root@adlwest-nms1 ~]# ip route add 172.16.103.0/24 172.16.1.254 dev eth1
Error: either "to" is duplicate, or "172.16.1.254" is a garbage.

But running ip route add subnet/netmask via gw worked

[root@adlwest-nms1 ~]# ip route add 172.16.103.0/24 via 172.16.1.254
[root@adlwest-nms1 ~]# ping 172.16.103.41
PING 172.16.103.41 (172.16.103.41) 56(84) bytes of data.
64 bytes from 172.16.103.41: icmp_seq=1 ttl=62 time=1.04 ms
64 bytes from 172.16.103.41: icmp_seq=2 ttl=62 time=0.992 ms

Mikrotik BGP

To show what routes you are receiving from a particular peer on Mikrotik

 

ip route print detail where received-from={PeerName}

 

OR

ip route print detail where bgp-as-path=123456

Quanta LB6M commands

From http://www.kontron.com/downloads/software/fastpath-configuration-guide-v1.2.pdf?product=89439

3.2.1.2

Example 2: Set Up VLAN Routing for the VLANs and the Switch.

The following code sequence shows how to enable routing for the VLANs:

(Ethernet Fabric) #vlan database
(Ethernet Fabric) (Vlan) #vlan routing 10
(Ethernet Fabric) (Vlan) #vlan routing 20
(Ethernet Fabric) (Vlan) #exit
(Ethernet Fabric) #show ip vlan
This returns the logical interface IDs that will be used
instead of slot/port in subsequent routing commands.
Assume that VLAN 10 is assigned ID
2/1 and VLAN 20 is assigned ID 2/2.
Enable routing for the switch:
(Ethernet Fabric) (Config) #config
(Ethernet Fabric) (Config) #ip routing
(Ethernet Fabric) (Config) #exit
The next sequence shows an example of conf iguring the
IP addresses and subnet masks for the virtual router
ports.
(Ethernet Fabric) (Config) #config
(Ethernet Fabric) (Config) #interface 2/1
(Ethernet Fabric) (Config) (Interface 2/1) #ip address 192.150.3.1 255.255.255.0
(Ethernet Fabric) (Config) (Interface 2/1) #exit
(Ethernet Fabric) (Config) #interface 2/2
(Ethernet Fabric) (Config) (Interface 2/2) #ip address 192.150.4.1 255.255.255.0
(Ethernet Fabric) (Config) (Interface 2/2) #exit
(Ethernet Fabric) (Config) #exit

(S2) #ip ssh server enable

 

(S2) #show spanning-tree mst port summary 0 all

            STP                  STP            Port
Interface   Mode   Type         State           Role       Desc
--------- -------- ------- ----------------- ---------- ----------
0/1       Enabled          Disabled          Disabled
0/2       Enabled          Disabled          Disabled
0/3       Enabled          Forwarding        Root
0/4       Enabled          Discarding        Alternate
0/5       Enabled          Disabled          Disabled
0/6       Enabled          Disabled          Disabled
0/7       Enabled          Disabled          Disabled
0/8       Enabled          Disabled          Disabled
0/9       Enabled          Disabled          Disabled
0/10      Enabled          Disabled          Disabled
0/11      Enabled          Disabled          Disabled
0/12      Enabled          Disabled          Disabled
0/13      Enabled          Disabled          Disabled
0/14      Enabled          Disabled          Disabled
0/15      Enabled          Disabled          Disabled

(S2) #show port all

                  Admin    Physical   Physical   Link   Link    LACP   Actor
 Intf      Type   Mode     Mode       Status     Status Trap    Mode   Timeout
--------- ------ --------- ---------- ---------- ------ ------- ------ --------
0/1              Enable    10G Full              Down   Enable  Enable long
0/2              Enable    10G Full              Down   Enable  Enable long
0/3              Enable    10G Full   10G Full   Up     Enable  Enable long
0/4              Enable    10G Full   10G Full   Up     Enable  Enable long
0/5              Enable    10G Full              Down   Enable  Enable long
0/6              Enable    10G Full              Down   Enable  Enable long
0/7              Enable    10G Full              Down   Enable  Enable long
0/8              Enable    10G Full              Down   Enable  Enable long
0/9              Enable    10G Full              Down   Enable  Enable long
0/10             Enable    10G Full              Down   Enable  Enable long
0/11             Enable    10G Full              Down   Enable  Enable long
0/12             Enable    10G Full              Down   Enable  Enable long
0/13             Enable    10G Full              Down   Enable  Enable long
0/14             Enable    10G Full              Down   Enable  Enable long
0/15             Enable    10G Full              Down   Enable  Enable long
0/16             Enable    10G Full              Down   Enable  Enable long
0/17             Enable    10G Full   10G Full   Up     Enable  Enable long
0/18             Enable    10G Full              Down   Enable  Enable long