Problem with shared-network

robert at spotswood-computer.net robert at spotswood-computer.net
Fri Jun 5 15:34:25 UTC 2015


>
> On 4 Jun 2015, at 17:16, robert at spotswood-computer.net wrote:
>
>> I have a Debian 7.0 running isc-dhcp-server 4.2.2.
>>
>> My server has a single NIC, and using iproute, I've added additional
>> addresses (some lines snipped for brevity):
>>
>> eth0      Link encap:Ethernet  HWaddr 00:50:56:XX:XX:XX
>>          inet addr:192.168.220.111  Bcast:192.168.220.255
>> Mask:255.255.255.0
>>
>> eth0:1    Link encap:Ethernet  HWaddr 00:50:56:XX:XX:XX
>>          inet addr:10.111.111.1  Bcast:10.255.255.255
>> Mask:255.255.255.0
>
> Try ditching the alias interface and just add the address to the main
> interface, so you'd end up with :
> eth0      Link encap:Ethernet  HWaddr 00:50:56:XX:XX:XX
>          inet addr:192.168.220.111  Bcast:192.168.220.255
> Mask:255.255.255.0
>          inet addr:10.111.111.1  Bcast:10.255.255.255  Mask:255.255.255.0
>
> That can be done with "ip addr add 10.111.111.1/24 dev eth0", and it can
> be automated by putting it in /etc/network/interfaces as a post-up line :
>   post-ip ip addr add 10.111.111.1/24 dev eth0

Sadly, I thought of the too after I sent my first message. No change. Here
is my current "ip addr show" for eth0:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UP qlen 1000
    link/ether 00:50:56:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    inet 192.168.200.111/24 brd 192.168.200.255 scope global eth0
    inet 172.35.24.54/22 brd 172.35.27.255 scope global eth0:2
    inet 10.111.111.1/24 brd 10.111.111.255 scope global eth0
    inet 192.168.200.54/24 scope global secondary eth0:0
    inet6 fd00:200:0:1::1/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:fe8f:XXXX/64 scope link
       valid_lft forever preferred_lft forever

Interestingly, ifconfig does NOT show 10.111.111.1. (It is there and
working, I can ping that address.) I wonder if the ISC DHCP server does
not recognize addresses added by iproute2?



More information about the dhcp-users mailing list