dhclient and custom Linux routing tables (VRF)

Anders Löwinger anders at abundo.se
Sat Jun 8 21:43:00 UTC 2019


On 2019-06-07 13:23, Mateusz Viste wrote:
> # dhclient eth0 

I've done this without problem - recently tested in ubuntu 18.04. You 
need to create a namespace for the network.

example:

# create namespace

ip netns add client1

# create logical interface with vlan tag

ip link add link enp2s0 name enp2s0.212 type vlan id 212

# move interface into namespace

ip link set enp2s0.212 netns client1

# start bash in namespace

ip netns exec clientbash


# Request an IP address

dhclient


-- 
MVH
Anders Löwinger, Abundo AB, 072-206 0322

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190608/72d20429/attachment.html>


More information about the dhcp-users mailing list