Bug 1729542 - "ip tun add" fails with wrong error
Summary: "ip tun add" fails with wrong error
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: iproute
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: Andrea Claudi
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-12 14:52 UTC by Matteo Croce
Modified: 2019-08-28 11:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description Matteo Croce 2019-07-12 14:52:01 UTC
"ip tun add" fails with wrong error if remote is not specified:

root@rhel8:~# ip tun add grezz0 mode gre
add tunnel "gre0" failed: File exists

if the remote is specified, the tunnel creation works:

root@rhel8:~# ip tun add grezz0 mode gre remote 1.2.3.4
root@rhel8:~# ip link show dev grezz0                                                                                                                                                                                                        
6: grezz0@NONE: <POINTOPOINT,NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/gre 0.0.0.0 peer 1.2.3.4


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