Reset Network to default


Recommended Posts

  • 1 year later...
On 7/20/2018 at 9:17 PM, Squid said:

Delete /config/network.cfg on the flash drive and reboot

I just did that on v.6.8.0 and it didnt create a new file and I had to get the UI up on the console :-)

And create the file again... Is there any other way to reset network settings?

Edited by casperse
Link to comment
1 hour ago, Squid said:

That is exactly how you do it.  Whether or not the file gets recreated until a change is made to the settings doesn't matter as unRaid will utilize its defaults in the interim.

Hi @Squid Ok so I would still have to go to settings and apply what would then be the default settings?

 

I seem to have caused myself a lot of problems after my changes some dockers work and others doesn't work both are using bridge?

 

I copied the network cfg back and rebooted unraid... in Fix Common Problems - I can see this:

image.thumb.png.f0cfba4bfcaf1bfa3eef3c12448e5683.png

 

My network settings are the same as before pointing to my router as DNS... (I have tried to change them to above DNS same result)

image.thumb.png.0d4fe6d01b075088f909c2fd99b8c3d1.png

 

Should I delete the file again....

 

 

Link to comment

I know the error is in these settings:

 

New network.cfg 
(Removed 4 NIC for pfsense VM.....)

# Generated settings:
IFNAME[0]="br0"
BONDNAME[0]="bond0"
BONDING_MIIMON[0]="100"
BRNAME[0]="br0"
BRSTP[0]="no"
BRFD[0]="0"
DESCRIPTION[0]="eth0"
BONDING_MODE[0]="5"
BONDNICS[0]="eth0 eth1"
BRNICS[0]="bond0"
PROTOCOL[0]="ipv4"
USE_DHCP[0]="no"
IPADDR[0]="192.168.0.6"
NETMASK[0]="255.255.255.0"
GATEWAY[0]="192.168.0.1"
DNS_SERVER1="192.168.0.1"
USE_DHCP6[0]="yes"
DHCP6_KEEPRESOLV="no"
IFNAME[1]="br4"
BONDNAME[1]="bond4"
BONDNICS[1]="eth4"
BONDING_MODE[1]="1"
BONDING_MIIMON[1]="100"
BRNAME[1]="br4"
BRNICS[1]="bond4"
BRSTP[1]="no"
BRFD[1]="0"
PROTOCOL[1]="ipv4"
USE_DHCP[1]="no"
IPADDR[1]="192.168.0.13"
NETMASK[1]="255.255.255.0"
GATEWAY[1]="192.168.0.1"
SYSNICS="2"

OLD ONE:

 

# Generated settings:
IFNAME[0]="br0"
BONDNAME[0]="bond0"
BONDING_MIIMON[0]="100"
BRNAME[0]="br0"
BRSTP[0]="no"
BRFD[0]="0"
BONDING_MODE[0]="5"
BONDNICS[0]="eth0 eth1 eth2 eth3"
BRNICS[0]="bond0"
DESCRIPTION[0]="eth0"
PROTOCOL[0]="ipv4"
USE_DHCP[0]="no"
IPADDR[0]="192.168.0.6"
NETMASK[0]="255.255.255.0"
GATEWAY[0]="192.168.0.1"
DNS_SERVER1="192.168.0.1"
USE_DHCP6[0]="yes"
DHCP6_KEEPRESOLV="no"
IFNAME[1]="br4"
BONDNAME[1]="bond4"
BONDNICS[1]="eth4 eth5"
BONDING_MODE[1]="1"
BONDING_MIIMON[1]="100"
BRNAME[1]="br4"
BRNICS[1]="bond4"
BRSTP[1]="no"
BRFD[1]="0"
PROTOCOL[1]="ipv4"
USE_DHCP[1]="no"
IPADDR[1]="192.168.0.13"
NETMASK[1]="255.255.255.0"
GATEWAY[1]="192.168.0.1"
SYSNICS="2"

Unraid server without Network is like a car without wheels :-)

Link to comment
On 7/20/2018 at 3:17 PM, Squid said:

Delete /config/network.cfg on the flash drive and reboot

This is exactly how you do it, but you need to realize that the default is to use DHCP. So if you were trying to use some static IP to access your server then that would probably explain why you couldn't get to it.

Link to comment
18 minutes ago, Squid said:

There's also a network-routes file or similiarly named within the config folder you can also delete.  But, if you didn't reboot then nothing changes...

I am on my 11 reboot I have traced all my latest changes and are reversing them all....

 

Following the video guide I disabled the 4 NIC by adding this code:

vfio-pci.ids=8086:10e8

 

And I disabled the: IOMMU ACS Override to find the correct pci id (Would this destroy my dockers internet connections?)

 

I then replaced the files with the old ones on the flash drive

 

network.cfg

network-rules.cfg

 

and rebooted same problem

 

And I keep getting the DNS error? must be some routing missing?

 

 

 

Link to comment
15 minutes ago, casperse said:

rebooted same problem

So have you tried default settings again

On 7/20/2018 at 3:17 PM, Squid said:

Delete /config/network.cfg on the flash drive and reboot

with the new information I gave?

37 minutes ago, trurl said:

you need to realize that the default is to use DHCP. So if you were trying to use some static IP to access your server then that would probably explain why you couldn't get to it.

 

Link to comment

Ok after many more reboots - and some patience waiting for all the dockers to startup I now finally have a working network (And I will never touch it again! 😊)

Got the 4 NIC disabled with the "blue text" and deleted both files again. I then did a static IP again (I normally have DHCP to MAC address)

Doesn't make much sense because I could go to the UI every time accessing the fixed IP but my Dockers would just not work and now they do...

 

Thanks for your input! Deleting everything is still the key...

Link to comment
  • 1 year later...

I'm gonna ask here since search on the forum didn't bring anything related to my question. I'm on v6.9.1 stable

 

Is it still the correct way to reset pci network card and add this command "vfio-pci.ids=8086:105e" to syslinux config file and then reboot the server so changes can take effect.

 

This is the network card with 2 eth NICs

IOMMU group 47:[8086:105e] 01:00.0 Ethernet controller: Intel Corporation 82571EB/82571GB Gigabit Ethernet Controller D0/D1 (copper applications) (rev 06)

IOMMU group 48:[8086:105e] 01:00.1 Ethernet controller: Intel Corporation 82571EB/82571GB Gigabit Ethernet Controller D0/D1 (copper applications) (rev 06)

They are both market as "currently in use by Unraid" and I cannot BIND SELECTED TO VFIO AT BOOT. 

 

I would like to use this network card assigned to VM passthrough. If my assumption is correct, does this command need to stay in syslinux config permanently.

 

EDIT:

Didn't do my search homework thoroughly. I found the solution in this post bellow

Spoiler

 

Edited by yogy
Link to comment
11 minutes ago, yogy said:

I'm gonna ask here since search on the forum didn't bring anything related to my question. I'm on v6.9.1 stable

 

Is it still the correct way to reset pci network card and add this command "vfio-pci.ids=8086:105e" to syslinux config file and then reboot the server so changes can take effect.

 

This is the network card with 2 eth NICs

IOMMU group 47:[8086:105e] 01:00.0 Ethernet controller: Intel Corporation 82571EB/82571GB Gigabit Ethernet Controller D0/D1 (copper applications) (rev 06)

IOMMU group 48:[8086:105e] 01:00.1 Ethernet controller: Intel Corporation 82571EB/82571GB Gigabit Ethernet Controller D0/D1 (copper applications) (rev 06)

They are both market as "currently in use by Unraid" and I cannot BIND SELECTED TO VFIO AT BOOT. 

 

I would like to use this network card assigned to VM passthrough. If my assumption is correct, does this command need to stay in syslinux config permanently.

just connect to it via a network bridge, any particular reason needing iit as a direct passthrough

Link to comment
  • 11 months later...

I moved my array from an HPE microserver to an r710 and I assigned the r710 the same IP as I'd assigned the HPE. Everything is working fine and is accessible via LAN but I can't access anything from the net. Would deleting the network.cfg file fix this? Could you look at my settings and suggest anything? Thank you! 

 

FireShot Capture 001 - BarkerServer_NetworkSettings - barkerserver.png

route.JPG

ping.JPG

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.