From 2a96dfdc8f50605a84059b07e64b8ae6b41b5688 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 6 May 2018 17:36:05 +0200 Subject: [PATCH] Add 'README.rename.netdevices'. --- README.rename.netdevices | 22 ++++++++++++++++++++++ remote-copy_gateway-config.sh | 7 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 README.rename.netdevices diff --git a/README.rename.netdevices b/README.rename.netdevices new file mode 100644 index 0000000..33af2b9 --- /dev/null +++ b/README.rename.netdevices @@ -0,0 +1,22 @@ +# - ========== +# - How to rename network interface back to eth* (instead of i.e. enp0sXX) +# - ========== + +Solutions: +========== + +1.) Add 'net.ifnames=0' to parameter 'GRUB_CMDLINE_LINUX' at /etc/default/grub + + GRUB_CMDLINE_LINUX="aufs=tmpfs console=tty0 console=ttyS0,38400n8 reboot=bios net.ifnames=0" + + +2.) (not tested!) Create a file /etc/systemd/network/10-eth.link with the contents + + [Match] + MACAddress=ff:ff:ff:ff:ff:ff + [Link] + Name=eth0 + +replacing ff:ff:ff:ff:ff:ff with the MAC address of the device you wanted to change. +After reboot the name was as desired. + diff --git a/remote-copy_gateway-config.sh b/remote-copy_gateway-config.sh index 5ded203..cf1c716 100755 --- a/remote-copy_gateway-config.sh +++ b/remote-copy_gateway-config.sh @@ -251,6 +251,10 @@ Notice: You have to change some configuration files becaus the because the configuration of network interfaces must not be equal. + !! Take care, to use the right device names !! + Maybe they are called i.e. 'enp0sXX', but you can rename it. + See also : README.rename.netdevices + For the backup gateway host: eth1 --> LAN eth2 --> WAN or ppp0 (DSL device) @@ -263,8 +267,9 @@ Notice: So you have to change the following files dsl-provider.${_network}: ppp0 comes over eth2 interfaces.${_network}: see above + default_isc-dhcp-server.${_network} ipt-firewall.${_network}: LAN device (mostly $local_if_1) = eth1 - second LAN WLAN or what ever (if present) = eth0 + second LAN WLAN or what ever (if present) = eth0 EOF