Bug 1691552

Summary: missing ip6gre tunnel type in initscripts
Product: Red Hat Enterprise Linux 7 Reporter: Serafin Rusu <serafin>
Component: initscriptsAssignee: Jan Macku <jamacku>
Status: CLOSED ERRATA QA Contact: Daniel Rusek <drusek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: fsumsal, initscripts-maint-list, jamacku, lnykryn, serafin
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: initscripts-9.49.49-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1743251 (view as bug list) Environment:
Last Closed: 2020-03-31 19:43:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1743251    
Attachments:
Description Flags
if-up tunnel patch
none
network-functions patch none

Description Serafin Rusu 2019-03-21 21:26:33 UTC
Description of problem:
I wanted to create a ifcfg config file for a ip6gre tunnel.
I searched in network-functions and ifup-tunnel for a way to configure and I didn't find anything. After research I realized it was not yet implemented. So I want to help you to add this feature.

Version-Release number of selected component (if applicable):
initscripts-9.49.46-1.el7.x86_64


How reproducible:
try to create a ifcfg file for ip6gre tunnel

Steps to Reproduce:
1.
2.
3.

Actual results:
not implemented

Expected results:
use GRE6 as type in ifcfg file

Additional info:

I'm using config file like this:

DEVICE=home6
BOOTPROTO=none
ONBOOT=yes
TYPE=GRE6
PEER_INNER_IPADDR=10.86.0.42 # yes I know, I just want to transport ipv4 on ipv6 only server :)
MY_INNER_IPADDR=10.86.0.41
PEER_OUTER_IPADDR=2a02:f6e2:f030:2328:5a2:872:71d8:3125
MY_OUTER_IPADDR=2a02:3fcd:7ba6:5b8b:cf90:57e3:a715:6464

Comment 2 Serafin Rusu 2019-03-21 21:27:13 UTC
Created attachment 1546709 [details]
if-up tunnel patch

Comment 3 Serafin Rusu 2019-03-21 21:27:53 UTC
Created attachment 1546710 [details]
network-functions patch

Comment 4 Lukáš Nykrýn 2019-03-22 09:42:14 UTC
Could you first submit that as a pull request to:
https://github.com/fedora-sysv/initscripts

Comment 5 Jan Macku 2019-07-10 08:39:47 UTC
I can build package with suggested changes, but I don't have infrastructure to fully test it.

Would you mind to test it, before it goes to dist git? Thank you.

Comment 6 Serafin Rusu 2019-07-10 09:01:48 UTC
Sure

Comment 7 Jan Macku 2019-07-11 12:31:39 UTC
There is initscripts-9.49.46-1.el7.x86_64 package with added option for ipv6 GRE tunnel:

https://fedorapeople.org/~jamacku/initscripts-9.49.46-1-ip6gre.zip

Please be aware that this is testing build and Red Hat doesn't support it.

Please could you test it and let me know? Thank you.

Comment 8 Serafin Rusu 2019-07-26 22:55:48 UTC
I checked the files form zip but It seems like the patch was not applied.

the files sysconfig/network-scripts/ifup-tunnel and sysconfig/network-scripts/network-functions does not have GRE6 string

Comment 9 Jan Macku 2019-07-30 10:30:40 UTC
I did build it again and patch should be applied now. I am sorry for previous build.

New build: https://fedorapeople.org/~jamacku/initscripts-9.49.46-1-ip6gre.zip

Please be aware that this is testing build and Red Hat doesn't support it.

Please could you test it and let me know? Thank you.

Comment 10 Serafin Rusu 2019-08-09 20:31:38 UTC
Now it's ok.
I just tested and it works fine. 
Thanks!

[root@testv6 network-scripts]# cat ifcfg-home6 
DEVICE=home6
BOOTPROTO=none
ONBOOT=yes
TYPE=GRE6
PEER_INNER_IPADDR=10.86.0.42 # yes I know, I just want to transport ipv4 on ipv6 only server :)
MY_INNER_IPADDR=10.86.0.41
PEER_OUTER_IPADDR=2a01:xxxx:xxxx:xxxx::2
MY_OUTER_IPADDR=2a01:xxxx:xxxx:xxxx:xxxx::2

[root@testv6 network-scripts]# ifup home6
[root@testv6 network-scripts]# ifconfig home6
home6: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1448
        inet 10.86.0.41  netmask 255.255.255.255  destination 10.86.0.42
        unspec 2A-01-04-F8-01-40-60-56-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@testv6 network-scripts]# ip -6 tunnel list
ip6gre0: gre/ipv6 remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)
ip6tnl0: ipv6/ipv6 remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)
home6: gre/ipv6 remote 2a01:xxxx:xxxx:xxxx::2 local 2a01:xxxx:xxxx:xxxx:xxxx::2 encaplimit 4 hoplimit 64 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000)
[root@testv6 network-scripts]# dmesg | grep -i gre
[    0.281145] ACPI: Added _OSI(Processor Aggregator Device)
[1201601.834734] gre: GRE over IPv4 demultiplexor driver
[1201601.840191] ip6_gre: GRE over IPv6 tunneling driver
[root@testv6 network-scripts]#

Comment 11 Jan Macku 2019-08-13 08:12:54 UTC
Thank you. This will be fixed in RHEL 7.9.

Comment 12 Jan Macku 2019-08-19 12:17:42 UTC
Since there is still bit of time, it will make into RHEL 7.8.

Comment 16 errata-xmlrpc 2020-03-31 19:43:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1042