Menu

IFACE: Adding IPv4 address to ng0 failed: File exists + iBGP or OSPF

Help
Grzesiek G
2024-12-11
2025-08-01
  • Grzesiek G

    Grzesiek G - 2024-12-11

    The configuration is
    FreeBSD 14.1-RELEASE-p5
    mpd5-5.9_18
    Bird2
    Two PPPoE routers running the mpd daemon.
    Broadcasting combined PPPoE routes between PPPoE and BGP routers (bird2).
    Pppoe login associated with a static IP/32 address.

    MPD does not establish a tunnel if there is an entry from the bird daemon in the Routing table.

    net.route.multipath: 1

    error
    [B-1] IFACE: Adding IPv4 address to ng0 failed: File exists

    netstat -rn
    10.20.20.2 10.10.10.1 UGH em1

    mpd.conf
    pppoe_server:

        create bundle template B
        set ipcp ranges 192.168.249.1 127.0.0.2
        set ipcp dns 10.20.30.1 10.20.30.2
        set ipcp no vjcomp
        set iface enable tcpmssfix
        set iface mtu 1500
        set iface group tun
        set iface up-script /usr/local/etc/mpd5/vpn-linkup
        set iface down-script /usr/local/etc/mpd5/vpn-linkdown
    
        create link template common pppoe
    
        set link action bundle B
        set link disable pap eap
        set link enable chap
        set link mtu 1492
        set link mru 1492
        set link keep-alive 20 40
        set auth disable internal
        set auth max-logins 1 CI
        set link no multilink
        set link latency 1
        load radius
        set pppoe service "
    

    mpd5 erroe
    [igb0-3] RADIUS: Rec'd RAD_ACCOUNTING_RESPONSE for user 'userppoe'
    [B-1] IPCP: rec'd Configure Request #106 (Ack-Rcvd)
    [B-1] IPADDR 0.0.0.0
    [B-1] NAKing with 10.20.20.2
    [B-1] PRIDNS 0.0.0.0
    [B-1] NAKing with 10.20.30.1
    [B-1] SECDNS 0.0.0.0
    [B-1] NAKing with 10.20.30.2
    ...
    [B-1] IPCP: state change Ack-Rcvd --> Opened
    [B-1] IPCP: LayerUp
    [B-1] 192.168.249.1 -> 10.20.20.2
    [B-1] IFACE: Adding IPv4 address to ng0 failed: File exists
    [B-1] IFACE: IfaceChangeAddr() error, closing IPCP
    [B-1] IPCP: parameter negotiation failed
    [B-1] IPCP: state change Opened --> Stopping
    [B-1] IPCP: SendTerminateReq #2
    [B-1] IPCP: LayerDown
    [B-1] IFACE: Removing IPv4 address from ng0 failed: Can't assign requested address

     
  • Eugene Grosbein

    Eugene Grosbein - 2025-01-11

    This is known and yet unfixed problem in FreeBSD 14.0+ kernel.
    You may find 13.4-RELEASE more usable until that's fixed.

     
  • Eugene Grosbein

    Eugene Grosbein - 2025-01-11
     
  • Eugene Grosbein

    Eugene Grosbein - 2025-01-11

    Sorry, I referred to different problem. The one I meant is https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277125
    The fix has been committed to CURRENT but not in STABLE branches yet.

    Are you in position to test the fix with your system? You'll need to install sources, apply attached patch, rebuild kernel only, install the kernel and reboot.

     
  • Eugene Grosbein

    Eugene Grosbein - 2025-01-11

    Nevermind. I've managed to test the fix myself, it works. I've merged the fix to stable branches.
    So, you can either update to 14.2-STABLE or wait for 14.3-RELEASE.

     
  • Grzesiek G

    Grzesiek G - 2025-07-01

    I updated to version 14.3. I tested it and it works as expected.
    Thank you for your help.

     
  • Yannick C

    Yannick C - 2025-08-01

    Hi Grzesiek,
    It looks we have the same bug, I've updated to FreeBSD 14.3-RELEASE and the bug is still present for me.
    please check my post :
    https://sourceforge.net/p/mpd/discussion/44693/thread/2b3e5ea536/?limit=100

     

Log in to post a comment.

MongoDB Logo MongoDB