Interface names when putting 802.1q VLAN on top of bonding configuration

Mike Bernardo mike at aion.cx
Thu May 27 18:36:49 PDT 2021


Hi,

I have the below working config, is there a way to get the name to be 'vlan20', instead of 'bonding-lan.20' ? I have tried a bunch of stuff and so far nothing has worked.

Thanks for any help!

Mike

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fdb9:bf48:0362::/48'

config interface 'lan'
        option proto 'bonding'
        option auto '1'
        option ipaddr '172.20.32.250'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option bonding_policy '802.3ad'
        option link_monitoring 'mii'
        option slaves 'eth1'
        option lacp_rate 'fast'
        option miimon '100'
        option use_carrier 1
        option xmit_hash_policy 'layer3+4'
        option gateway '172.20.32.1'
        option force_link '1'

config interface 'vlan20'
        option auto '1'
        option force_link '1'
        option ifname 'bonding-lan.20'
        option proto 'static'
        option name 'vlan20'
        option ipaddr '172.20.34.2'
        option netmask '255.255.255.128'


root at OpenWrt:/etc/config# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:50:99:d4:f7:80 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bonding-lan state UP group default qlen 1000
    link/ether d0:50:99:d4:f7:81 brd ff:ff:ff:ff:ff:ff
4: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 52:d7:61:b2:0c:b3 brd ff:ff:ff:ff:ff:ff
29: bonding-lan: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether d0:50:99:d4:f7:81 brd ff:ff:ff:ff:ff:ff
    inet 172.20.32.250/24 brd 172.20.32.255 scope global bonding-lan
       valid_lft forever preferred_lft forever
    inet6 fdb9:bf48:362::1/60 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::d250:99ff:fed4:f781/64 scope link
       valid_lft forever preferred_lft forever
30: bonding-lan.20 at bonding-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether d0:50:99:d4:f7:81 brd ff:ff:ff:ff:ff:ff
    inet 172.20.34.2/25 brd 172.20.34.127 scope global bonding-lan.20
       valid_lft forever preferred_lft forever
    inet6 fe80::d250:99ff:fed4:f781/64 scope link
       valid_lft forever preferred_lft forever


More information about the openwrt-devel mailing list