OPNsense Forum

English Forums => General Discussion => Topic started by: mihak on March 18, 2021, 09:08:28 pm

Title: Multiple IP leases on one network port - how?
Post by: mihak on March 18, 2021, 09:08:28 pm
My ISP started to allow two public IP assignments per connection and I can run two separate devices connected (via ethernet switch) to ISP's CAT6 cable, getting two independent public IPs through DHCP. One of them is OPNsense box, but I'd like to eliminate the switch and get both public IPs assigned to OPNsense.


How could I get two interfaces with separate DHCP-assigned IP addresses that are both attached to the same physical network port? Virtual IP allows only static IP assignment, no DHCP.


I am already using a custom MAC address on the WAN port - is there an option (that I cannot see) to add a second (virtual?) MAC to the adapter that would allow a second DHCP lease and a second interface?