Problem with shared-network

Simon Hobson dhcp1 at thehobsons.co.uk
Thu Jun 4 20:14:05 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



More information about the dhcp-users mailing list