Hello!
Just installed latest CR updates (which are inlude initscripts ), rebooted, and found that there is no gre2 interface in system,
here it's definition:
DEVICE=gre2
ONBOOT=yes
MY_INNER_IPADDR=192.168.201.53
MY_OUTER_IPADDR=192.168.201.49
PEER_OUTER_IPADDR=192.168.201.50
PEER_INNER_IPADDR=192.168.201.54
TTL=255
MTU=1436
BOOTPROTO=none
TYPE=GRE
if I start it by ifup gre2 - it is up and everything is fine, but it does not appears after boot:
ifconfig gre2
gre2: error fetching interface information: Device not found
I tried this 3 times with the same result.
gre1 is up during boot though.
Here is it's definition:
DEVICE=gre1
ONBOOT=yes
MY_INNER_IPADDR=192.168.200.14
MY_OUTER_IPADDR=192.168.200.10
PEER_OUTER_IPADDR=192.168.200.9
PEER_INNER_IPADDR=192.168.200.13
TTL=255
MTU=1436
BOOTPROTO=none
TYPE=IPIP
There is no info about gre2 in boot.log at all.
Could you tell me what can be wrong here?
Thank you!
latest CR update breaks gre2 interface
Re: latest CR update breaks gre2 interface
OK, update contains something new about IPIP and GRE and this is wrong:
diff -ur network-cr network
--- network-cr 2017-03-26 17:17:31.307909773 +0400
+++ network 2016-04-12 13:14:00.000000000 +0400
@@ -98,11 +98,6 @@
continue
fi
- if [ "$TYPE" = "IPSEC" ] || [ "$TYPE" = "IPIP" ] || [ "$TYPE" = "GRE" ]; then
- vpninterfaces="$vpninterfaces $i"
- continue
- fi
-
if [ "${DEVICE%%.*}" != "$DEVICE" -o "${DEVICE##vlan}" != "$DEVICE" ] ; then
vlaninterfaces="$vlaninterfaces $i"
continue
@@ -192,11 +187,6 @@
if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
- if [ "$TYPE" = "IPSEC" ] || [ "$TYPE" = "IPIP" ] || [ "$TYPE" = "GRE" ]; then
- vpninterfaces="$vpninterfaces $i"
- continue
- fi
-
if [ "$TYPE" = "Bridge" ]; then
bridgeinterfaces="$bridgeinterfaces $i"
continue
Because if I run old script
./network start
then I get gre2 up.
This is, no doubt, bug.
I'll create bug report
Thank you!
diff -ur network-cr network
--- network-cr 2017-03-26 17:17:31.307909773 +0400
+++ network 2016-04-12 13:14:00.000000000 +0400
@@ -98,11 +98,6 @@
continue
fi
- if [ "$TYPE" = "IPSEC" ] || [ "$TYPE" = "IPIP" ] || [ "$TYPE" = "GRE" ]; then
- vpninterfaces="$vpninterfaces $i"
- continue
- fi
-
if [ "${DEVICE%%.*}" != "$DEVICE" -o "${DEVICE##vlan}" != "$DEVICE" ] ; then
vlaninterfaces="$vlaninterfaces $i"
continue
@@ -192,11 +187,6 @@
if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
- if [ "$TYPE" = "IPSEC" ] || [ "$TYPE" = "IPIP" ] || [ "$TYPE" = "GRE" ]; then
- vpninterfaces="$vpninterfaces $i"
- continue
- fi
-
if [ "$TYPE" = "Bridge" ]; then
bridgeinterfaces="$bridgeinterfaces $i"
continue
Because if I run old script
./network start
then I get gre2 up.
This is, no doubt, bug.
I'll create bug report
Thank you!
Re: latest CR update breaks gre2 interface
Make sure you report it on bugzilla.redhat.com too or it will never get fixed. If the bug exists in RHEL then officially it's not a bug in CentOS since we aim to be identical.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: latest CR update breaks gre2 interface
OK, thank you.
Re: latest CR update breaks gre2 interface
Thank you, there is fix already
https://github.com/fedora-sysv/initscripts/pull/86
https://github.com/fedora-sysv/initscripts/pull/86