Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 17 additions & 27 deletions files/etc/board.d/70nethesis_boxes
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nethesis-nethbox-z9)
ucidef_set_network_device_path "eth10" "pci0000:00/0000:00:1d.0/0000:09:00.0" # ethernet
ucidef_set_network_device_path "eth11" "pci0000:00/0000:00:1d.1/0000:0a:00.0" # ethernet
ucidef_set_interfaces_lan_wan "eth4" "eth5"
elif [ -L "/sys/bus/pci/devices/0000:01:00.1" ]
elif [ -L "/sys/bus/pci/devices/0000:01:01.1" ]
then
#Intel I210 or I211 network adapter (Z9)
ucidef_set_network_device_path "eth0" "pci0000:00/0000:00:1c.0/0000:02:00.0" # ethernet
Expand All @@ -66,6 +66,22 @@ nethesis-nethbox-z9)
ucidef_set_network_device_path "eth10" "pci0000:00/0000:00:01.1/0000:01:00.2" # fiber
ucidef_set_network_device_path "eth11" "pci0000:00/0000:00:01.1/0000:01:00.3" # fiber
ucidef_set_interfaces_lan_wan "eth0" "eth1"
elif [ -L "/sys/bus/pci/devices/0000:01:00.0" ]
then
#Intel I210 or I211 network adapter (Z9 variant)
ucidef_set_network_device_path "eth0" "pci0000:00/0000:00:1c.0/0000:02:00.0" # ethernet
ucidef_set_network_device_path "eth1" "pci0000:00/0000:00:1c.3/0000:03:00.0" # ethernet
ucidef_set_network_device_path "eth2" "pci0000:00/0000:00:1c.4/0000:04:00.0" # ethernet
ucidef_set_network_device_path "eth3" "pci0000:00/0000:00:1c.5/0000:05:00.0" # ethernet
ucidef_set_network_device_path "eth4" "pci0000:00/0000:00:1c.6/0000:06:00.0" # ethernet
ucidef_set_network_device_path "eth5" "pci0000:00/0000:00:1c.7/0000:07:00.0" # ethernet
ucidef_set_network_device_path "eth6" "pci0000:00/0000:00:1d.0/0000:08:00.0" # ethernet
ucidef_set_network_device_path "eth7" "pci0000:00/0000:00:1d.1/0000:09:00.0" # ethernet
ucidef_set_network_device_path "eth8" "pci0000:00/0000:00:01.0/0000:01:00.0" # fiber
ucidef_set_network_device_path "eth9" "pci0000:00/0000:00:01.0/0000:01:00.1" # fiber
ucidef_set_network_device_path "eth10" "pci0000:00/0000:00:01.0/0000:01:00.2" # fiber
ucidef_set_network_device_path "eth11" "pci0000:00/0000:00:01.0/0000:01:00.3" # fiber
ucidef_set_interfaces_lan_wan "eth0" "eth1"
fi
else
# unidentified model
Expand Down Expand Up @@ -96,35 +112,9 @@ nethesis-nethbox-z7)
ucidef_set_network_device_path "eth6" "pci0000:00/0000:00:01.0/0000:01:00.0" # fiber
ucidef_set_network_device_path "eth7" "pci0000:00/0000:00:01.0/0000:01:00.1" # fiber
ucidef_set_interfaces_lan_wan "eth0" "eth1"
else
# standard Z7 model
ucidef_set_network_device_path "eth0" "pci0000:00/0000:00:1c.0/0000:02:00.0" # ethernet
ucidef_set_network_device_path "eth1" "pci0000:00/0000:00:1c.3/0000:03:00.0" # ethernet
ucidef_set_network_device_path "eth2" "pci0000:00/0000:00:1c.4/0000:04:00.0" # ethernet
ucidef_set_network_device_path "eth3" "pci0000:00/0000:00:1c.5/0000:05:00.0" # ethernet
ucidef_set_network_device_path "eth4" "pci0000:00/0000:00:1c.6/0000:06:00.0" # ethernet
ucidef_set_network_device_path "eth5" "pci0000:00/0000:00:1c.7/0000:07:00.0" # ethernet
ucidef_set_interfaces_lan_wan "eth0" "eth1"
fi
;;
nethesis-nethbox-z3)
ucidef_set_network_device_path "eth0" "pci0000:00/0000:00:1c.0/0000:01:00.0" # ethernet
ucidef_set_network_device_path "eth1" "pci0000:00/0000:00:1c.3/0000:02:00.0" # ethernet
ucidef_set_network_device_path "eth2" "pci0000:00/0000:00:1c.4/0000:03:00.0" # ethernet
ucidef_set_network_device_path "eth3" "pci0000:00/0000:00:1c.5/0000:04:00.0" # ethernet
ucidef_set_network_device_path "eth4" "pci0000:00/0000:00:1c.6/0000:05:00.0" # ethernet
ucidef_set_network_device_path "eth5" "pci0000:00/0000:00:1c.7/0000:06:00.0" # ethernet
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
nethesis-nethbox-z1)
ucidef_set_network_device_path "eth0" "pci0000:00/0000:00:1c.0/0000:01:00.0" # ethernet
ucidef_set_network_device_path "eth1" "pci0000:00/0000:00:1c.1/0000:02:00.0" # ethernet
ucidef_set_network_device_path "eth2" "pci0000:00/0000:00:1c.2/0000:03:00.0" # ethernet
ucidef_set_network_device_path "eth3" "pci0000:00/0000:00:1c.3/0000:04:00.0" # ethernet
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
esac
board_config_flush

exit 0

Loading