On Thu, Oct 17, 2013 at 5:39 PM, Bob Proulx <[email protected]> wrote: > Steffen Dettmer wrote: >> >> I'd like to configure multiple IP addresses to a VLAN tagged >> interface. I tried >> >> auto eth3.107 >> iface eth3.77 inet static >> address 10.0.5.15 >> netmask 255.255.255.0 >> iface eth3.77 inet static >> address 10.0.5.16 >> netmask 255.255.255.0 > > At which time it appears more obvious that while you have an "auto" > line for eth3.107 you do not have one for eth3.77. Do you mean this? > > auto eth3.77 > iface eth3.77 inet static > address 10.0.5.15 > netmask 255.255.255.0 > iface eth3.77 inet static > address 10.0.5.16 > netmask 255.255.255.0 > > Of course I know nothing about vlan configuration so I am likely wrong > here. I just know that visually it doesn't match. However all of the > docs I see just now suggest using a bridge. Perhaps something like this. > > auto eth0 > allow-hotplug eth0 > iface eth0 inet static > address 10.0.5.15 > netmask 255.255.255.0 > iface eth0 inet static > address 10.0.5.16 > netmask 255.255.255.0 > iface eth0.77 inet manual > auto br0.77 > iface br0.77 inet manual > bridge_ports eth0.77 > bridge_fd 0 > bridge_maxwait 0 > > But again, I just did that blind from the online docs. I am not a > vlan expert. Feel free to tell me I am wrong and do not know > anything. :-)
You're bridging in strange/incorrect way. :( It's br0.77 that should have an ip address assigned and the physical devices should have "inet manual" only. >> but I get an error message that ifup tries to configure the VLAN >> interface twice, but the addresses are set. >> >> When I remove the second "iface eth3.77 inet static" line, which >> should be correct according to my understanding of "man interfaces", >> where it is not forbidding to pass multiple "address" directives in a >> stanza, I get an error about unexpected "address" line and the >> addresses are not set. > > Configuring multiple IP addresses on interfaces like that is new in > recent versions of ifupdown. Whether it works or not depends upon > the version of the program. Previously it was necessary to use > different tagged interfaces or to use up/down commands to add > additional ip addresses. Oops! I should've said that too in my earlier email! -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/CAOdo=SyP7+mV=Yw_cSo+8KiCf=muz8_4pvzuvt36vedjvgu...@mail.gmail.com

