Blue net won't start

Post Reply
GrueMaster
Posts: 29
Joined: December 28th, 2017, 2:46 pm

Blue net won't start

Post by GrueMaster » May 28th, 2019, 4:44 pm

Update 131. I recently added the blue network to our main firewall, but the network fails to start on reboot. /var/ipfire/ethernet/settings shows the correct interface with the correct mac, setup is configured correctly, but the interface fails to start on reboot. I had a temporary system running our firewall in the office until I moved our server farm from a colo to the office. It worked fine (except for a failing onboard nic). The main server is a Dell Broadwell 1U single proc server with dual onboard 1G (Intel) nics and a single addon 1G nic. The red is on port 1 of the onboard, the blue is on the other onboard, green is on the extra nic. If I manually start blue (ifconfig blue0 up), it will come up and traffic will flow, but no IP. I have to add it with 'ifconfig blue0 192.168.10.1'. Then, plugging the wifi router (known good, worked with temporary firewall just fine), no DHCP. I have the router plugged into the WLAN port. I can plug my laptop into the wifi router and create a static IP of 192.168.10.40, and use it to access the firewall directly at https://192.168.10.1:444 no problem. But the whole thing should 'just work'.

Is this another issue with 131 (I already ran into the other DHCP issue where it drops some of the predefined addresses)?

GrueMaster
Posts: 29
Joined: December 28th, 2017, 2:46 pm

Re: Blue net won't start

Post by GrueMaster » May 28th, 2019, 5:27 pm

Ok, figured it out. Apparently, the /var/ipfire/ethernet/settings file needs to have the Blue network before the Green when Green is bridged (libvirt running LDAP server). If BLUE is after, it fails to come up.

Failed settings:

Code: Select all

CONFIG_TYPE=1
GREEN_DEV=green0
GREEN_MODE=bridge
GREEN_SLAVES=18:d6:c7:01:49:93
GREEN_DESCRIPTION='"pci: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)"'
GREEN_DRIVER=r8169
BLUE_DEV=blue0
BLUE_MACADDR=50:9a:4c:75:23:66
BLUE_DESCRIPTION='"pci: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe"'
BLUE_DRIVER=tg3
BLUE_ADDRESS=192.168.10.1
BLUE_NETMASK=255.255.255.0
BLUE_NETADDRESS=192.168.10.0
BLUE_BROADCAST=192.168.10.255
RED_DEV=red0 (redacted red config for security)
GREEN_ADDRESS=222.10.0.1
GREEN_NETMASK=255.255.255.0
GREEN_NETADDRESS=222.10.0.0
GREEN_BROADCAST=222.10.0.255
#GREEN_MACADDR=18:d6:c7:01:49:93
Working settings:

Code: Select all

CONFIG_TYPE=3
BLUE_DEV=blue0
BLUE_MACADDR=50:9a:4c:75:23:66
BLUE_DESCRIPTION='"pci: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe"'
BLUE_DRIVER=tg3
BLUE_ADDRESS=192.168.10.1
BLUE_NETMASK=255.255.255.0
BLUE_NETADDRESS=192.168.10.0
BLUE_BROADCAST=192.168.10.255
GREEN_DEV=green0
GREEN_MODE=bridge
GREEN_SLAVES=18:d6:c7:01:49:93
GREEN_DESCRIPTION='"pci: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)"'
GREEN_DRIVER=r8169
GREEN_ADDRESS=222.10.0.1
GREEN_NETMASK=255.255.255.0
GREEN_NETADDRESS=222.10.0.0
GREEN_BROADCAST=222.10.0.255
RED_DEV=red0 (redacted red config for security)
#GREEN_MACADDR=18:d6:c7:01:49:93

User avatar
Arne.F
Core Developer
Core Developer
Posts: 8499
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Blue net won't start

Post by Arne.F » May 29th, 2019, 4:24 am

The order in this file is not important but in the first file the blue network is disabled (CONFIG_TYPE=1)
Arne

Support the project on the donation!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

GrueMaster
Posts: 29
Joined: December 28th, 2017, 2:46 pm

Re: Blue net won't start

Post by GrueMaster » May 30th, 2019, 5:09 pm

I'm not sure why the config_type was 1. That was how it spilled out of setup. Might have been a copy/paste artifact as the original config was type 1 (red/green) with green in bridge mode (manual edit). I had thought all I did was enter setup and change the type to red/blue/green and tell it which mac was blue.

Hard to reproduce here as it is a production system (and I have very little time right now).

Post Reply