To change the order of the network interfaces (eth0 -> eth1) within a Sophos UTM (for example a software installation) you can edit the 70-persistent-net.rules file with the shell within /etc/udev/rules.d/. So connect to your UTM and change the file with vi:
vi /etc/udev/rules.d/70-persistent-net.rules
the file contains the following:
# This file was automatically generated by the Astaro Installer, then
# possibly later on written by the /lib/udev/write_net_rules generator
# script.
#
# You can modify it, as long as you keep each rule on a single line.# PCI device 0x8086:0x150c (ø¢6 ^A)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1a:8c:12:06:80″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″# PCI device 0x8086:0x150c (P£6 ^A)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1a:8c:12:06:81″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″# PCI device 0x8086:0x150c (à £6 ^A)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1a:8c:12:06:82″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth2″# PCI device 0x8086:0x150c (p¤6 ^A)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:1a:8c:12:06:83″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth3″
to write within the file, press “i”. You can change the NAME variable, press ESC to leave the insert mode and save the file with “:wq”. After this, reload your Sophos UTM with “shutdown -r now”.
Merry Christmas and a happy new year! ;-)
One Response