TechTitus Posted December 2, 2022 Share Posted December 2, 2022 Hello fellow unraiders. I've been up on very little sleep trying to fix my network and did something stupid. I deleted my network.config file and need someone to post the settings for network.conf with a static IP so I can recreate the file. I understand the file gets created when missing for DHCP but I unfortunately don't have a physical router. I'm using opnsense in a VM on unRAID so the server won't be able to pull an address on boot. I was trying to move the server over to a different vlan but I apparently did something wrong which sent me down this hole. This after spending hours trying to figure out why the DHCP server wasn't working in opnsense. Thank you to everyone in advance. Quote Link to comment
JorgeB Posted December 2, 2022 Share Posted December 2, 2022 # Generated settings: IFNAME[0]="br0" BRNAME[0]="br0" BRSTP[0]="no" BRFD[0]="0" BRNICS[0]="eth0" PROTOCOL[0]="ipv4" USE_DHCP[0]="no" IPADDR[0]="192.168.1.99" NETMASK[0]="255.255.255.0" GATEWAY[0]="192.168.1.1" DNS_SERVER1="8.8.8.8" DNS_SERVER2="8.8.4.4" USE_DHCP6[0]="yes" DHCP6_KEEPRESOLV="no" SYSNICS="1" Might not work if you have more than one NIC. Quote Link to comment
TechTitus Posted December 2, 2022 Author Share Posted December 2, 2022 3 hours ago, JorgeB said: # Generated settings: IFNAME[0]="br0" BRNAME[0]="br0" BRSTP[0]="no" BRFD[0]="0" BRNICS[0]="eth0" PROTOCOL[0]="ipv4" USE_DHCP[0]="no" IPADDR[0]="192.168.1.99" NETMASK[0]="255.255.255.0" GATEWAY[0]="192.168.1.1" DNS_SERVER1="8.8.8.8" DNS_SERVER2="8.8.4.4" USE_DHCP6[0]="yes" DHCP6_KEEPRESOLV="no" SYSNICS="1" Might not work if you have more than one NIC. Thank you. Hopefully one or two more people will respond before I try this. I don't remember having a bridge but the nic is eth0. Quote Link to comment
Hoopster Posted December 2, 2022 Share Posted December 2, 2022 3 hours ago, TechTitus said: post the settings for network.conf with a static IP Here are my setting for static IP and Docker VLAN (eth1 not currently used). # Generated settings: IFNAME[0]="br0" DHCP_KEEPRESOLV="yes" DNS_SERVER1="1.1.1.1" DNS_SERVER2="1.0.0.1" DHCP6_KEEPRESOLV="no" BRNAME[0]="br0" BRNICS[0]="eth0" BRSTP[0]="no" BRFD[0]="0" PROTOCOL[0]="ipv4" USE_DHCP[0]="no" IPADDR[0]="192.168.1.10" NETMASK[0]="255.255.255.0" GATEWAY[0]="192.168.1.1" METRIC[0]="1" USE_DHCP6[0]="yes" VLANID[0,1]="3" DESCRIPTION[0,1]="Dockers" PROTOCOL[0,1]="ipv4" METRIC[0,1]="2" VLANS[0]="2" IFNAME[1]="eth1" PROTOCOL[1]="ipv4" METRIC[1]="3" SYSNICS="2" Quote Link to comment
JorgeB Posted December 2, 2022 Share Posted December 2, 2022 4 minutes ago, TechTitus said: I don't remember having a bridge but the nic is eth0. That can be on or off, if for VMs mostly. Quote Link to comment
TechTitus Posted December 2, 2022 Author Share Posted December 2, 2022 5 minutes ago, JorgeB said: That can be on or off, if for VMs mostly. Ah ok. I'll give it a try. Quote Link to comment
TechTitus Posted December 2, 2022 Author Share Posted December 2, 2022 (edited) 46 minutes ago, JorgeB said: That can be on or off, if for VMs mostly. I must be doing something wrong. I setup the network.crg file but I still cannot reach the server. I logged into the server locally and the browser webGUI does not load. Says that the connection to localhost was unable to connect. Edited December 2, 2022 by TechTitus Quote Link to comment
Prickle28 Posted December 2, 2022 Share Posted December 2, 2022 You dont happen to have a recent flash backup do you? could you recover your network.cfg from that. or rollback unraid to that backup. Quote Link to comment
TechTitus Posted December 3, 2022 Author Share Posted December 3, 2022 2 hours ago, Prickle28 said: You dont happen to have a recent flash backup do you? could you recover your network.cfg from that. or rollback unraid to that backup. I wish I did. I had been up for 23 hours and was just trying to get it working. Quote Link to comment
Recommended Posts
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.