Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Problems changing the bridge group of ethernet interfaces.

$
0
0

As I mention in another thread, I am having problems with the performance of bridged interfaces.

 

In the course of testing I need to attach/unattach ethernet interfaces to bridge groups.

 

I was running version 1.8.0 when I was getting funny script errors, however, after upgrading to 1.8.5, I am still getting those, so I am reporting them.

 

   In the following snippet I show what are the changes I am introducing, and the error message I get.

 

josep@ubnt-eli# compare
[edit interfaces bridge br0]
-address 172.16.201.1/24
[edit interfaces ethernet eth2]
+address 172.16.201.1/24
[edit interfaces ethernet eth2 bridge-group]
-bridge br0
[edit]
josep@ubnt-eli# commit
[ interfaces ethernet eth2 bridge-group ]
Use of uninitialized value $newbridge in string ne at /opt/vyatta/sbin/vyatta-bridge.pl line 89.
Use of uninitialized value $newbridge in concatenation (.) or string at /opt/vyatta/sbin/vyatta-bridge.pl line 90.
Moving interface eth2 from br0 to 
Use of uninitialized value $bridge in concatenation (.) or string at /opt/vyatta/sbin/vyatta-bridge.pl line 99.
Incorrect number of arguments for command
Usage: brctl addif <bridge> <device>	add interface to bridge

Commit failed
[edit]
josep@ubnt-eli# 

  I have been getting thi sort of error in all the experiments I have been running.

 

  However, the state the ERL finds itself after the error varies. IN this particular case, it seems the commit went through.

 

josep@ubnt-eli# run show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                        S/L  Description                 
---------    ----------                        ---  -----------                 
br0          -                                 u/D                              
br1          192.168.1.2/24                    u/D                              
eth0         -                                 u/D                              
eth1         192.168.100.2/24                  u/u                              
eth1.2       10.67.42.72/10                    u/u  MovistarTV                  
eth1.3       10.22.133.136/18                  u/u  Voip                        
eth1.6       -                                 u/u  Internet                    
eth2         172.16.201.1/24                   u/u                              
l2tpeth0     -                                 u/u                              
lo           127.0.0.1/8                       u/u                              
             172.31.0.2/32                    
             ::1/128                          
pppoe0       x.x.x.x                           u/u                              
tun0         172.31.1.2/30                     u/u      
josep@ubnt-eli# run show bridge br0
bridge name     bridge id               STP enabled     interfaces
br0             0000.000000000000       no              
[edit]
josep@ubnt-eli# 

 

However, nterface eth2 appears still within bridge group br0, with an uncommitted change of br0 dletion from the bridge group. So I discard, and this time, delete the bridge group. Now I get this error:

 

josep@ubnt-eli# delete interfaces ethernet eth2 bridge-group 
[edit]
josep@ubnt-eli# commit
[ interfaces ethernet eth2 bridge-group ]
Removing interface eth2 from bridge br0
can't delete eth2 from br0: Operation not supported

Commit failed
[edit]
josep@ubnt-eli# 

  After discarding again my interface configuration is this:

 

 bridge br0 {
     aging 300
     bridged-conntrack disable
     hello-time 2
     max-age 20
     priority 0
     promiscuous disable
     stp false
 }
 bridge br1 {
     address 192.168.1.2/24
     aging 300
     bridged-conntrack disable
     hello-time 2
     max-age 20
     priority 32768
     promiscuous disable
     stp false
 }
 ethernet eth0 {
     duplex auto
     speed auto
 }
 ethernet eth1 {
     address 192.168.100.2/24
     duplex auto
     speed auto
     vif 2 {
         address 10.67.42.72/10
         description MovistarTV
     }
     vif 3 {
         address dhcp
         description Voip
     }
     vif 6 {
         description Internet
         pppoe 0 {
             default-route force
             firewall {
                 in {
                     name INTERNET_IN
                 }
                 local {
                     name INTERNET_LOCAL
                 }
             }
             mtu 1492
             name-server auto
             password XYZ
             user-id XYZ
         }
     }
 }
 ethernet eth2 {
     bridge-group {
         bridge br0
     }
     duplex auto
     speed auto
 }

 

So, I cannot get rid of the attachment of eth2 to bridge br0 in the configuration, although clearly the router has already taken the interface out of the bridge...

 

Well, any idea of what is wrong and what I can do to fix this?

 

I was going to directly edit config.boot... to change the incorrect eth2 configuration.

 

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>