Installing bridge-utils

sudo apt-get update
sudo apt-get -y install bridge-utils
brctl addbr br0
ip link set dev br0 up
sudo ifconfig br0 inet 192.168.99.1
 sudo apt -y install isc-dhcp-server

sudo mcedit /etc/dhcp/dhcpd.conf  add to the end of file :

subnet 192.168.99.0 netmask 255.255.255.0 {
    option routers 192.168.99.1;

    option domain-name-servers 192.168.99.1;
    pool {
        range 192.168.99.8 192.168.99.64;
     }
}

sudo service isc-dhcp-server restart

sudo sysctl net.ipv4.ip_forward=1

sudo mcedit /etc/sysctl.conf

uncomment

net.ipv4.ip_forward=1

Install bind 9:

sudo apt -y install bind9

sudo service bind9 restart

NAT configuration with iptables:

sudo iptables --flush

sudo iptables -t nat --flush

iptables --delete-chain

sudo iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE

sudo iptables -A FORWARD -i br0 -j ACCEPT

Automatically Create the Bridge at Start-up

 /etc/network/interfaces file

auto br0
iface br0 inet static
bridge_stp off
bridge_fd 0
bridge_maxwait 0
address 192.168.99.1
netmask 255.255.255.0

 

Links:

https://help.ubuntu.com/community/NetworkConnectionBridge