IPv6 default gateway



  • I have a /48 prefix.
    I need to set the default address for the WAN interface.

    This works manually:

    [2.2.3-RELEASE][root@pfsense.zepherin.com]/root: route -n add -inet6 default -iface pppoe3
    add net default: gateway pppoe3
    [2.2.3-RELEASE][root@pfsense.zepherin.com]/root: netstat -rn -6 | grep pppoe3
    default                           pppoe3                        US       pppoe3
    
    

    How do I configure this in pfSense?



  • Not with cli. Use GUI.



  • @hda:

    Not with cli. Use GUI.

    Precisely.  The GUI resists any attempt.  Creation of a default route for IPv6 on the WAN interface requires the specification of an address.
    I have tried just "%pppoe3" hoping it would be sufficiently smart, but no.
    "-iface pppoe3" also fails as the address.

    I have also created a route in the routes management screen but it seems to think there will be a dynamic address supplied.

    If you know how to use the GUI to produce the same result as the cli route command, please point me towards the correct screen with whatever tricks required.



  • [Interfaces: LAN](Static IPv6 configuration)(IPv6 Upstream Gateway)=none for default.
    Why would you create another with ./(add a new one.) ? WAN gateway is normally outside your influence.



  • @hda:

    Not with cli. Use GUI.

    OK.  Got it.  I Used "fe80::%pppoe3" in the default gateway creation bit.
    This results in

    default                           fe80::%pppoe3                 UGS      pppoe3
    
    

    being applied as the default route, and this works.



  • @hda:

    [Interfaces: LAN](Static IPv6 configuration)(IPv6 Upstream Gateway)=none for default.
    Why would you create another with ./(add a new one.) ? WAN gateway is normally outside your influence.

    The WAN gateway will result in a default route being applied.
    In order to route globally routable IPv6 addresses, one needs either explicit routes (such as a "2000:/3" route) or equivalently a default route (equivalently "::/0").

    I have a /48 which was not provided by my ISP, and have no IPv6 allocation from my ISP, so did not have any V6 address supplied by them for essentially a point-to-point route from either side of the interface.

    The route I have applied results in the default behaviour to be to squirt all globally routable IPv6 packets other than my /48 out the pppoe3 interface, which was precisely what I wanted.

    The trick was to trick the GUI into accepting something which works, and the 'fe80::%pppoe3' appears to do so.


  • Banned

    @amgems:

    I have a /48 which was not provided by my ISP, and have no IPv6 allocation from my ISP, so did not have any V6 address supplied by them for essentially a point-to-point route from either side of the interface.

    Huh??? Are you using some tunnel, or what?



  • @doktornotor:

    Huh??? Are you using some tunnel, or what?

    No.  Native IPv6.


  • Banned

    Yeah. Native IPv6 that does not come from your ISP. Hmmm. How exactly should that work? Dude, you make no sense.



  • Native IPv6 which does not use a prefix provided by my ISP.