[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Configuring multiple IP addresses on VLAN interface using ifupdown



On Fri, Oct 18, 2013 at 12:35 PM, Miles Fidelman
<mfidelman@meetinghouse.net> 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
>>
>> but I get an error message that ifup tries to configure the VLAN
>> interface twice, but the addresses are set.
>
> for what it's worth, my (working, for years) /etc/network/interfaces file
> looks like this:
>
> auto lo eth0 eth0:1 eth0:2 eth0:3 eth0:4 eth0:5 eth0:6 eth0:7 eth0:8 eth0:9
> eth0
> :10 eth0:11 eth0:12 eth0:13 eth0:14 eth0:15
>
> iface eth0 inet static
>     address 207.154.13.48
>     netmask 255.255.255.224
>     network 207.154.13.32
>     broadcast 207.154.13.63
>     gateway 207.154.13.33
>     # dns-* options are implemented by the resolvconf package, if installed
>     dns-nameservers 209.59.0.18 209.59.0.2
>     dns-search neighborhoods.net
>
> iface eth0:1 inet static
>     address 207.154.13.49
>     netmask 255.255.255.224
>     broadcast 207.154.13.63

eth0:1 is an alias.


Reply to: