Jump to content

pfSense - virbr0 DHCP


Recommended Posts

Posted

I'm creating a lab using pfSense in unraid.

 

I'm using br0 interface as WAN and virtbr0 interface as LAN, while I was able to setup pfSense through the emulated CPU option I'm having some issues on some VMs when I assign them to virtbr0. I see a DHCP race between ipSense and a built-in DHCP server (?).

 

How can I deactivate virtbr0 DHCP server so I can have pfSense assigning and managing the address space ?

Posted (edited)

I think I found a possible answer to my question.

 

libvirt documentation states the following regarding isolated networks: https://libvirt.org/formatnetwork.html#examplesPrivate

 

After some search I was able to find the following:

 

root@Tower:/etc/libvirt/qemu/networks# cat default.xml 
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh net-edit default
or other application using the libvirt API.
-->

<network>
  <name>default</name>
  <uuid>(redacted)</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='(redacted)'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
    </dhcp>
  </ip>
</network>

So I think I will be able to just leave libvirt with the default DHCP server and change pfSense to obtain the address automatically [from this DHCP server] instead.

Edited by caml

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...