dopeytree Posted August 26, 2022 Share Posted August 26, 2022 (edited) Server has 3 nics but a bug has made the nic's mac addresses get mixed up so now it thinks the 2.5gb card is the eth0 which means I can't login... I have have a look on the key and have found network-rules.cfg # PCI device 0x10ec:0x8125 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="88:c9:b3:b0:a9:91", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x8086:0x15fa (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d8:5e:d3:77:e4:25", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x10ec:0x8125 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="88:c9:b3:b0:a9:90", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" will try this # PCI device 0x10ec:0x8125 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="88:c9:b3:b0:a9:91", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x8086:0x15fa (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d8:5e:d3:77:e4:25", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x10ec:0x8125 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="88:c9:b3:b0:a9:90", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" Edited August 26, 2022 by dopeytree Quote Link to comment
Solution JorgeB Posted August 26, 2022 Solution Share Posted August 26, 2022 Delete network-rules.cfg and it will be recreated, eth0 will be the one used for management. 1 Quote Link to comment
dopeytree Posted August 26, 2022 Author Share Posted August 26, 2022 does it default to dhcp ip? Quote Link to comment
JorgeB Posted August 26, 2022 Share Posted August 26, 2022 That's controlled by network.cfg, you can also delete/rename that one if you want to go back to default DHCP. Quote Link to comment
dopeytree Posted August 26, 2022 Author Share Posted August 26, 2022 (edited) ok so it does remake network-rules.crg but it doesn't remake network.crg and the re-made network-rules.crg it still messing up the mac addresses it's a bug. Not sure why it keeps doing it. this is what it generated in the new file. I'm wanting to connect to the d8 mac address which is the built in 1gig. the other 2 are 2.5gbe for fidlying with later on. # PCI device 0x10ec:0x8125 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="88:c9:b3:b0:a9:90", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x10ec:0x8125 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="88:c9:b3:b0:a9:91", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x8086:0x15fa (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d8:5e:d3:77:e4:25", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" This is whats in the network one # Generated settings: IFNAME[0]="" DHCP_KEEPRESOLV="yes" DNS_SERVER1="1.1.1.1" DHCP6_KEEPRESOLV="no" BONDNICS[0]="eth0" BONDING_MODE[0]="1" BONDING_MIIMON[0]="100" BRNICS[0]="bond0" BRSTP[0]="0" BRFD[0]="0" USE_DHCP[0]="no" IPADDR[0]="192.168.1.100" NETMASK[0]="255.255.255.0" GATEWAY[0]="192.168.1.1" IFNAME[1]="br1" BONDNAME[1]="bond1" BONDNICS[1]="eth1" BONDING_MODE[1]="0" BONDING_MIIMON[1]="100" BRNAME[1]="br1" BRNICS[1]="bond1" BRSTP[1]="no" BRFD[1]="0" PROTOCOL[1]="ipv4" USE_DHCP[1]="no" IPADDR[1]="192.168.1.102" NETMASK[1]="255.255.255.0" GATEWAY[1]="192.168.33.1" IFNAME[2]="br2" BONDNAME[2]="bond2" BONDING_MIIMON[2]="100" BRNAME[2]="br2" BRSTP[2]="no" BRFD[2]="0" BONDING_MODE[2]="5" BONDNICS[2]="eth2" BRNICS[2]="bond2" PROTOCOL[2]="ipv4" USE_DHCP[2]="no" IPADDR[2]="192.168.1.103" NETMASK[2]="255.255.255.0" GATEWAY[2]="192.168.33.1" SYSNICS="3" Is there anything I should be changing? I tried just pulling the 2.5gbe card out but didnt seem to make any difference. Edited August 26, 2022 by dopeytree Quote Link to comment
dopeytree Posted August 26, 2022 Author Share Posted August 26, 2022 (edited) Ok... perhaps its as simple as the order they are in that file. Anyway all back in now. Perhaps something happened to my pfSense router aswell as at the moment I'm back onto the main ISP's router. Currently copying over data from an old disk to the SSD cache. Speed says its going at around 970MB/s not quite sure how it's doing it but I like it. Thanks for pointing me to the solution. I actually quite like tinkering. Edited August 26, 2022 by dopeytree 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.