RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1691552 - missing ip6gre tunnel type in initscripts
Summary: missing ip6gre tunnel type in initscripts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: initscripts
Version: 7.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Macku
QA Contact: Daniel Rusek
URL:
Whiteboard:
Depends On:
Blocks: 1743251
TreeView+ depends on / blocked
 
Reported: 2019-03-21 21:26 UTC by Serafin Rusu
Modified: 2020-03-31 19:43 UTC (History)
5 users (show)

Fixed In Version: initscripts-9.49.49-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1743251 (view as bug list)
Environment:
Last Closed: 2020-03-31 19:43:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
if-up tunnel patch (290 bytes, patch)
2019-03-21 21:27 UTC, Serafin Rusu
no flags Details | Diff
network-functions patch (310 bytes, patch)
2019-03-21 21:27 UTC, Serafin Rusu
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1042 0 None None None 2020-03-31 19:43:19 UTC

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


Note You need to log in before you can comment on or make changes to this bug.