latest CR update breaks gre2 interface

Issues related to configuring your network
Post Reply
sles
Posts: 68
Joined: 2007/08/21 04:43:38

latest CR update breaks gre2 interface

Post by sles » 2017/03/26 13:04:31

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!

sles
Posts: 68
Joined: 2007/08/21 04:43:38

Re: latest CR update breaks gre2 interface

Post by sles » 2017/03/26 13:23:48

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!

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: latest CR update breaks gre2 interface

Post by TrevorH » 2017/03/26 17:10:17

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

sles
Posts: 68
Joined: 2007/08/21 04:43:38

Re: latest CR update breaks gre2 interface

Post by sles » 2017/03/27 04:25:08

OK, thank you.

sles
Posts: 68
Joined: 2007/08/21 04:43:38

Re: latest CR update breaks gre2 interface

Post by sles » 2017/03/27 14:58:07


User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: latest CR update breaks gre2 interface

Post by avij » 2017/03/27 16:44:12


Post Reply