Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DHCP for multiple NICs

Normally I never connect any of my laptops to the lan using a wired connection. However, I've been moving a laptop between a wired and wifi connection and I've noticed a problem that appears to be related to DHCP trying to use the same ip address for both. It seems to be causing a conflict. Is there a way to allocate different ip addresses to avoid a conflict?


This thread was automatically locked due to age.
  • Hi,
    rather than a DHCP issue, I would suspect you have network definitions for the different MAC (LAN and WIFI) with the same IP address is my experience with this issue.

    Ian
  • I have configured DHCP for all of my hosts. Until now, I hadn't switched any between wired and wifi. utm does not allow there to be multiple ipv4/ipv6 addresses for a host, so I used the same addresses, which causes a conflict. Considering that hosts can and do often have more than one nic (e.g., wired and wifi or multiple wired) this is a limitation that should be fixed. I can't think of of another fix than to create a separate host entry for each nic.
  • Hi, you can create a DHCP reservation for each NIC (using the MAC addresses); if you make the IP different for each, there should be no conflict (it works for me).

    If you don't make a reservation, it should work fine as well, unless the client OS is doing something really strange (what OS is it?).

    Is your DHCP scope large enough?

    Barry
  • I must be missing something. I'm looking at the definition of a host and it does not seem to allow more than one ipv4 and ipv6 address. You can set the addresses using more than one mac address or duid, but there doesn't seem to be any way to allocate more than one ip address for a host, aside from creating another host, which presumably would have to have a different name.
  • Hi,
    Maybe you've found a problem in the 9.1 changes to the static mappings/hosts systems; pre 9.1 doesn't work that way.
    Are you now forced to do a host/dns mapping when you want to do a MAC/DHCP reservation?

    Barry
  • Hi,
    Maybe you've found a problem in the 9.1 changes to the static mappings/hosts systems; pre 9.1 doesn't work that way.
    Are you now forced to do a host/dns mapping when you want to do a MAC/DHCP reservation?

    Barry
    Yes, it seems to be a problem, but I don't recall exactly how it worked pre-9.1. DHCP reservations are done in the host / dns configuration.
  • I just noticed another gotcha. On Windows 7, the same duid is used for the wired and wireless interfaces, which makes it impossible to set unique ipv6 addresses for wired and wireless interfaces. There are unique iaids, however, so together with the duids, they could be used to identify interfaces and set the addresses, if they were visible in the reservations. I disabled reservations for ipv6 and dhcp is allocating two addresses, which are indistinguishable from the webserver. The actual reservations in dhcpd6.leases are unique.