0

I can't seem to get the last NIC on my server working just right. I have an HP Proliant server with 4 NICs currently serving as my home router. Eth0 is my WAN interface, eth1 and eth2 are setup to serve dhcp on two different subnets. Everything is working fine except for the last NIC on the server, eth3. I am wanting this to be bridged to the first subnet on eth1. I have tried numerous bridging configurations but I am doing something wrong. Here is my interfaces script found in /etc/networking, please note this is how it is currently working and have removed the bridging configurations some time ago since I have been researching this for awhile, so eth3 isn't setup at all right now.

#Loopback lo
auto lo
iface lo inet loopback

#WAN on eth0
auto eth0
iface eth0 inet dhcp

#Subnet 1 on eth1
auto eth1
iface eth1 inet static
    address 192.168.1.1     
    netmask 255.255.255.0
    broadcast 192.168.1.255
    network 192.168.1.0

#subnet 2 on eth2
auto eth2
iface eth2 inet static
    address 10.13.0.1
    netmask 255.255.255.240
    broadcast 10.13.0.15
    network 10.13.0.0

#alias on eth1:0
auto eth1:0
iface eth1:0 inet static
    address 192.168.1.2
    netmask 255.255.255.0
    broadcast 192.168.1.255
    network 192.168.1.0

The Alias is for a webserver serving my internal network, it is also just a face for dnsmasq to using port 53 on.

Ubuntu Server 18.04 LTS, Netplan is disabled, using ifupdown. ISC-DHCP-SERVER serving dhcp.

Sudo
  • 11

1 Answers1

0

The quickest and easiest route to bridging an interface that is being used by many services (like dhcp, dns or iptables etc.) is to rename the interface (Changing Network Interfaces name Ubuntu 16.04). Then proceed to name the bridge with the original interface name. This worked for me with everything that I am running on linux. Its not elegant but hey, beats setting everything up again. Here is my current script where I renamed eth1 to phys1 from the script in the question and the bridge is now named eth1:

#Loopback lo
auto lo
iface lo inet loopback

#WAN on eth0
auto eth0
iface eth0 inet dhcp

#phys1
auto phys1
iface phys1 inet manual

#Subnet 1 bridge interface on eth1
auto eth1
iface eth1 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    broadcast 192.168.1.255
    network 192.168.1.0
    bridge_ports phys1 eth3

#subnet 2 on eth2
auto eth2
iface eth2 inet static
    address 10.13.0.1
    netmask 255.255.255.240
    broadcast 10.13.0.15
    network 10.13.0.0

#eth3
auto eth3
iface eth3 inet manual

#alias on eth1:0
auto eth1:0
iface eth1:0 inet static
    address 192.168.1.2
    netmask 255.255.255.0
    broadcast 192.168.1.255
    network 192.168.1.0

I personally don't like netplan, so I hope this helps anyone with similar tastes.

Sudo
  • 11