Re: Problem with shared-network
Posted by
Simon Hobson on
URL: http://isc-dhcp-users.193.s1.nabble.com/Problem-with-shared-network-tp145p150.html
On 4 Jun 2015, at 17:16,
[hidden email] 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
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users