How to setup network to real lan ubuntu 18.04?

How to setup Bridged Network to my dhcp server (pfsense) exampel interface: eno1 How to connect opennebula machines to real lan?

You will need to use bridged networking and setup a Linux bridge first of all, for your virtual networks set these up as ethernet , this way opennebula won’t manage the IP addressing and the DHCP broadcast will reach your DHCP server / device .

Can you send some more info , your hosts network config

So for example change your ethernet to a bridge first of all (not sure if you are using netplan can’t remember when they introduced it), change IP accordingly

/etc/network/interfaces

auto lo
iface lo inet loopback

auto br0
iface br0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Then in opennebula you create a new virtual network , set physical port as br0 then type ethernet , should L2 then.

Or look at using vlans same principle

  1. Open Network Connections to set up network settings in Ubuntu. …
  2. Under the “Wired” tab, click on “Auto eth0” and select “Edit."
  3. Click on “IPV4 Settings” tab. …
  4. Check the IP address settings. …
  5. Type the following command into terminal: “sudo ifconfig” without quotes.
  6. Get your new addresses.