EdgeRouter - Configure an interface bond

Note: bonding in EdgeMax routers is done in software and is not hardware offloaded, so often bonding interfaces will result in lower performance than an offloaded interface.  
 
These two sets of commands configure interface bonding.
Router1

Use the following commands on Router1:

configure
set interfaces bonding bond0 mac 00:00:00:00:02:02
set interfaces bonding bond0 address 5.0.0.2/24
commit
set interfaces ethernet eth1 bond-group bond0
set interfaces ethernet eth2 bond-group bond0
commit
exit
Router2

Use the following commands on Router2:

configure
commit
set interfaces bonding bond0 mac 00:00:00:00:01:01
set interfaces bonding bond0 address 5.0.0.1/24
commit
set interfaces ethernet eth1 bond-group bond0
set interfaces ethernet eth2 bond-group bond0
commit
exit
Bond Group

To display status information for the bond group, use the following commands:

ubnt@ubnt:~$ show interfaces bonding 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                        S/L  Description                 
---------    ----------                        ---  -----------                 
bond0        5.0.0.1/24                        u/u   
ubnt@ubnt:~$ show interfaces bonding detail  
bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether 00:00:00:00:01:01 brd ff:ff:ff:ff:ff:ff
    inet 5.0.0.1/24 brd 5.0.0.255 scope global bond0
    inet6 fe80::200:ff:fe00:101/64 scope link 
       valid_lft forever preferred_lft forever

    RX:  bytes    packets     errors    dropped    overrun      mcast
        177813       1296          0          0          0        362
    TX:  bytes    packets     errors    dropped    carrier collisions
        113698       1413          0          0          0          0

 

Powered by Zendesk