Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2024 03:04:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 277125] ifconfig: ioctl (SIOCAIFADDR): File exists to existing P2P dest_addr
Message-ID:  <bug-277125-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277125

            Bug ID: 277125
           Summary: ifconfig: ioctl (SIOCAIFADDR): File exists to existing
                    P2P dest_addr
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: alex@i.org.ua

Making backup GRE link and getting destination IP address from another link
(OSPF, bird2, frr).

# ifconfig gre3
gre3: flags=3D8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
        options=3D80000<LINKSTATE>
        tunnel inet 10.8.98.3 --> 10.8.98.1
        groups: gre
        nd6 options=3D9<PERFORMNUD,IFDISABLED>

# route get 10.8.34.65/30
   route to: 10.8.34.65
destination: 10.8.34.64
       mask: 255.255.255.252
    gateway: 10.8.34.2
        fib: 0
  interface: ipsec0
      flags: <UP,GATEWAY,DONE,PROTO1>
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0

# route get 10.8.34.66
   route to: 10.8.34.66
destination: 10.8.34.66
    gateway: 10.8.34.2
        fib: 0
  interface: ipsec0
      flags: <UP,GATEWAY,HOST,DONE,PROTO1>
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0

# ifconfig gre3 10.8.34.65/30 10.8.34.66
ifconfig: ioctl (SIOCAIFADDR): File exists


It works properly here
# route delete 10.8.34.66 && ifconfig gre3 10.8.34.65/30 10.8.34.66 && echo=
 ok
delete host 10.8.34.66
ok


and here, when another IP from /30 is used
#ifconfig gre3 10.8.34.65/30 10.8.34.67 && echo ok
ok

# uname -a | blur
FreeBSD ... 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 GENERIC amd64

Expecting local assignments should have more priority.
Didn't tried with another FreeBSD release, but 13.2 is affected.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277125-227>