A
A
alkhankhel2015-03-27 15:04:35
linux
alkhankhel, 2015-03-27 15:04:35

How to configure on linux the ability to receive multiple IPs from a DHCP server on one network interface?

DHCP server issues external IP addresses with Internet access (IPoE). The task, having one physical network interface, is to emulate several interfaces, each of which will have its own MAC address and will be able to accept the proposed IP from DHCP.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
t_q_l, 2015-03-27
@alkhankhel

Create a new interface with name [email protected] and MAC address 51:41:4a:6c:47:ab:

/sbin/ip li add link eth0 mac1 address 51:41:4a:6c:47:ab type macvlan

K
Konkase, 2015-03-27
@Konkase

you can try this: (you need a switch)

auto vlan2
iface vlan2 inet dhcp
  vlan_raw_device eth0
auto vlan3
iface vlan3 inet dhcp
  vlan_raw_device eth0

well, run dhcpclient on these interfaces.
Or use software like openvswitch

V
vovokaa, 2015-07-06
@vovokaa

The matter is that it is necessary to connect all access ports from a switch. I will not solve the problem with one poppy replacement. Because I tried, but I did this: hwaddr ether xx:xx:xx:xx:xx:xx in /etc/network/interfaces

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question