Now I have to specify every single IP address I want to assign to a network interface. If you need to have tens of them on a single interface it
Now I have to specify every single IP address I want to assign to a network interface. If you need to have tens of them on a single interface it´s a bit pesky task. I wonder if it would be possible to specify something like (example only) config_eth0=( "192.168.1.2/27:192.168.1.30/27 brd 192.168.1.31" ) and assign all of them on a single line? Hope this is not a dupe of some bug. :p Reproducible: Always Steps to Reproduce:
does this work ? config_eth0=( "192.168.1.{2..30}/27 brd 192.168.1.31" ) if not, what about eval config_eth0=( "192.168.1.{2..30}/27 brd 192.168.1.31" )
OK, I tried config_eth0=( "192.168.1.1/24 brd 192.168.1.255" "192.168.1.{10..20}/24 brd 192.168.1.255" ) This does not work: Error: either "local" is duplicate, or "192.168.1.11/24" is a garbage. eval config_eth0=( "192.168.1.1/24 brd 192.168.1.255" "192.168.1.{10..20}/24 brd 192.168.1.255" ) The second one is better, but not quite there: * Bringing up eth0 * 192.168.1.1/24 [ ok ] * brd * No loaded modules provide "brd" (brd_start) * 192.168.1.255 [ ok ] * 192.168.1.10/24 [ ok ] * 192.168.1.11/24 [ ok ] * 192.168.1.12/24 [ ok ] * 192.168.1.13/24 [ ok ] * 192.168.1.14/24 [ ok ] * 192.168.1.15/24 [ ok ] * 192.168.1.16/24 [ ok ] * 192.168.1.17/24 [ ok ] * 192.168.1.18/24 [ ok ] * 192.168.1.19/24 [ ok ] * 192.168.1.20/24 [ ok ] * brd * No loaded modules provide "brd" (brd_start) * 192.168.1.255 [ ok ] # ip addr show eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:0c:6e:bd:65:3e brd ff:ff:ff:ff:ff:ff inet 192.168.1.1/24 scope global eth0 inet 192.168.1.255/32 scope global eth0 inet 192.168.1.10/24 scope global secondary eth0 inet 192.168.1.11/24 scope global secondary eth0 inet 192.168.1.12/24 scope global secondary eth0 inet 192.168.1.13/24 scope global secondary eth0 inet 192.168.1.14/24 scope global secondary eth0 inet 192.168.1.15/24 scope global secondary eth0 inet 192.168.1.16/24 scope global secondary eth0 inet 192.168.1.17/24 scope global secondary eth0 inet 192.168.1.18/24 scope global secondary eth0 inet 192.168.1.19/24 scope global secondary eth0 inet 192.168.1.20/24 scope global secondary eth0
OK, I have this working in CVS config_eth0=( "192.168.{1..3}.{1..3}/24 brd +" ) expands into config_eth0=( "192.168.1.1/24 brd +" "192.168.1.2/24 brd +" "192.168.1.3/24 brd +" "192.168.2.1/24 brd +" "192.168.2.2/24 brd +" "192.168.2.3/24 brd +" "192.168.3.1/24 brd +" "192.168.3.2/24 brd +" "192.168.3.3/24 brd +" ) Will be in baselayout-1.12.0-alpha3
OK, thanks!
Fixed in baselayout-1.12.0_pre1-r1