OpenWrt Forum Archive

Topic: multiple ip6addr on an interface

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

with regards to https://dev.openwrt.org/changeset/28240

I am assming this means it is possible to assign more than one ip6addr to the same interface.  Yet if I add multiple lines in /etc/config/network, uci only configures the last IPv6 address to that particular interface.  Anyone can point me in the right direction?

config interface foo
  ...
  option ip6addr fdca:1111::1/64

config alias foo2
  option interface foo
  option ip6addr fdca:2222::1/64

config alias foo3
  option interface foo
  option ip6addr fdca:3333::1/64

...

yes, yes this works.  thank you very much;

config 'alias' 'loopback2'
        option 'interface' 'loopback'
        option 'ip6addr' 'fec0:0:0:ffff::1/64'

config 'alias' 'loopback3'
        option 'interface' 'loopback'
        option 'ip6addr' 'fec0:0:0:ffff::2/64'

now I can keep those stupid ipv6 windows-generated DNS requests local.

Thanks again.

The discussion might have continued from here.