Routing

 View Only
last person joined: yesterday 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  IPoE Dualstack in the same session

    Posted 9 days ago
    Edited by Jodi Meier 8 days ago

    Hi All,

    Wondering if anyone has experienced the same issues as I have, everything I try it seems to fail.

    Essentially, I'm trying to put a dualstack IPoE session into a defined RI using a dhcp local server and vlan 200. The config is working in the default RI (and with 1 profile), I just cant seem to get it working when in another RI:

    Type: VLAN
    Logical System: default
    Routing Instance: default
    Interface: et-0/0/2.3221225875
    Interface type: Dynamic
    Underlying Interface: et-0/0/2
    Dynamic Profile Name: dv-profile
    Dynamic Profile Version: 5
    State: Active
    Session ID: 555
    PFE Flow ID: 420
    VLAN Id: 200
    Login Time: 2024-05-15 13:58:52 UTC
    IPv4 rpf-check Fail Filter Name: rpf-pass-dhcp
    IPv6 rpf-check Fail Filter Name: rpf-pass-dhcpv6

    Type: DHCP
    IP Address: 192.168.0.3
    IP Netmask: 255.255.255.0
    Domain name server inet: 8.8.8.8 
    IPv6 Address: 2001:db8:1234::2
    IPv6 Prefix: 2a0c:db8:abcd:1::/64
    Domain name server inet6: 2606:4700::1111 2001:4860:4860::8888 
    Logical System: default
    Routing Instance: default
    Interface: et-0/0/2.3221225873
    Interface type: Static                  
    Underlying Interface: et-0/0/2.3221225873
    MAC Address: 14:33:75:d9:7b:e4
    State: Active
    Radius Accounting ID: 554
    Session ID: 554
    PFE Flow ID: 418
    VLAN Id: 200
    Agent Circuit ID: LAB-OLT-AA:1:1:5:VENET_LAB-IPv6-2.0_LAN1:0:200:
    Login Time: 2024-05-15 13:50:30 UTC
    DHCP Options: len 59
    35 01 01 7d 27 00 00 0d e9 22 01 06 31 34 33 33 37 35 02 0d
    53 32 33 30 59 34 38 30 30 30 30 36 39 03 09 45 58 33 33 30
    31 2d 54 30 32 04 c0 a8 00 03 37 07 01 03 06 0c 0f 1c 2b
    DHCPV6 Options: len 48
    00 01 00 0a 00 03 00 01 14 33 75 d9 7b e4 00 14 00 00 00 03
    00 0c eb b2 f7 cf 00 00 00 00 00 00 00 00 00 08 00 02 1a f4
    00 06 00 04 00 17 00 52
    DHCP Header: len 44
    01 01 06 00 66 3a b4 1c 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 14 33 75 d9 7b e4 00 00 00 00 00 00
    00 00 00 00
    DHCPV6 Header: len 4
    01 79 cc b9
    IP Address Pool: DHCP-v4
    IPv6 Address Pool: IPv6-IA-NA-pool
    IPv6 Delegated Address Pool: IPv6-PD-POOL
    Accounting interval: 600
    Access Line Attributes:
      Agent Circuit ID: LAB-OLT-AA:1:1:5:VENET_LAB-IPv6-2.0_LAN1:0:200:

    Interface config:
    set interfaces et-0/0/2 flexible-vlan-tagging
    set interfaces et-0/0/2 auto-configure vlan-ranges dynamic-profile dv-profile accept inet
    set interfaces et-0/0/2 auto-configure vlan-ranges dynamic-profile dv-profile accept inet6
    set interfaces et-0/0/2 auto-configure vlan-ranges dynamic-profile dv-profile ranges 200-200
    set interfaces et-0/0/2 auto-configure remove-when-no-subscribers

    Current working dynamic interface/dhcp profile:
    set dynamic-profiles dv-profile routing-instances "$junos-routing-instance" interface "$junos-interface-name" any
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" demux-source inet
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" demux-source inet6
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" vlan-id "$junos-vlan-id"
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" demux-options underlying-interface "$junos-underlying-interface"
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet rpf-check fail-filter rpf-pass-dhcp
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet mtu 1500
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet unnumbered-address "$junos-loopback-interface"
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 rpf-check fail-filter rpf-pass-dhcpv6
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 mtu 1500
    set dynamic-profiles dv-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 unnumbered-address "$junos-loopback-interface"

    So default RI, great that works, I then try to include the dynamic profile within a newly configured RI, or configure an additional dhcp profile, and  it always fails (with dhcp service dropping packets due to no routing-instance), I feel its something to do with the dynamic vlan being created and installed into the default RI:

    Routing instance config:
    set routing-instances TEST-BNG instance-type vrf
    set routing-instances TEST-BNG system services dhcp-local-server dhcpv6 overrides delegated-pool IPv6-PD-POOL
    set routing-instances TEST-BNG system services dhcp-local-server dhcpv6 overrides delete-binding-on-renegotiation
    set routing-instances TEST-BNG system services dhcp-local-server dhcpv6 overrides dual-stack DS
    set routing-instances TEST-BNG system services dhcp-local-server dhcpv6 group IPv6-STACKED interface et-0/0/2.0
    set routing-instances TEST-BNG system services dhcp-local-server pool-match-order ip-address-first
    set routing-instances TEST-BNG system services dhcp-local-server duplicate-clients-in-subnet incoming-interface
    set routing-instances TEST-BNG system services dhcp-local-server overrides client-discover-match incoming-interface
    set routing-instances TEST-BNG system services dhcp-local-server overrides dual-stack DS
    set routing-instances TEST-BNG system services dhcp-local-server group IPv6-STACKED interface et-0/0/2.0
    set routing-instances TEST-BNG system services dhcp-local-server dual-stack-group DS protocol-master inet
    set routing-instances TEST-BNG access address-assignment neighbor-discovery-router-advertisement IPv6-IA-NA-pool
    set routing-instances TEST-BNG access address-assignment pool IPv6-PD-POOL family inet6 prefix 2001:db8:abcd::/48
    set routing-instances TEST-BNG access address-assignment pool IPv6-PD-POOL family inet6 range v6-pd prefix-length 64
    set routing-instances TEST-BNG access address-assignment pool IPv6-IA-NA-pool family inet6 prefix 2001:db8:1234::/64
    set routing-instances TEST-BNG access address-assignment pool IPv6-IA-NA-pool family inet6 range v6-range-0 low 2001:db8:1234::2/128
    set routing-instances TEST-BNG access address-assignment pool IPv6-IA-NA-pool family inet6 range v6-range-0 high 2001:db8:1234::ffff:ffff:ffff:ffff/128
    set routing-instances TEST-BNG access address-assignment pool IPv6-IA-NA-pool family inet6 dhcp-attributes maximum-lease-time 3600
    set routing-instances TEST-BNG access address-assignment pool IPv6-IA-NA-pool family inet6 dhcp-attributes dns-server 2606:4700::1111
    set routing-instances TEST-BNG access address-assignment pool IPv6-IA-NA-pool family inet6 dhcp-attributes dns-server 2001:4860:4860::8888
    set routing-instances TEST-BNG access address-assignment pool DHCP-v4 family inet network 192.168.0.0/24
    set routing-instances TEST-BNG access address-assignment pool DHCP-v4 family inet range range1 low 192.168.0.2
    set routing-instances TEST-BNG access address-assignment pool DHCP-v4 family inet range range1 high 192.168.0.254
    set routing-instances TEST-BNG access address-assignment pool DHCP-v4 family inet dhcp-attributes maximum-lease-time 1000
    set routing-instances TEST-BNG access address-assignment pool DHCP-v4 family inet dhcp-attributes name-server 8.8.8.8
    set routing-instances TEST-BNG access address-protection
    set routing-instances TEST-BNG interface lo0.101
    set routing-instances TEST-BNG route-distinguisher 100:300
    set routing-instances TEST-BNG vrf-target target:100:300

    set interfaces lo0 unit 101 family inet address 192.168.0.1/32 primary
    set interfaces lo0 unit 101 family inet address 192.168.0.1/32 preferred

    set interfaces lo0 unit 101 family inet6 address 2a0c:a741:1::1/128 primary
    set interfaces lo0 unit 101 family inet6 address 2a0c:a741:1::1/128 preferred

    Profile that doesnt work:
    set routing-instances TEST-BNG system services dhcp-local-server dual-stack-group DS dynamic-profile l3-profile
    set dynamic-profiles l3-profile predefined-variables routing-instance TEST-BNG
    set dynamic-profiles l3-profile routing-instances "$junos-routing-instance" interface "$junos-interface-name" any
    set dynamic-profiles l3-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" demux-options underlying-interface "$junos-underlying-interface"
    set dynamic-profiles l3-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet rpf-check fail-filter rpf-pass-dhcp
    set dynamic-profiles l3-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet mtu 1500
    set dynamic-profiles l3-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet unnumbered-address "$junos-loopback-interface"
    set dynamic-profiles l3-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 rpf-check fail-filter rpf-pass-dhcpv6
    set dynamic-profiles l3-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 mtu 1500
    set dynamic-profiles l3-profile interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 unnumbered-address "$junos-loopback-interface"


    Any helps or pointers would be appreciated as I'm obviously going wrong somewhere :) 
    Many Thanks,



    ------------------------------
    Andy
    ------------------------------



  • 2.  RE: IPoE Dualstack in the same session

    Posted 8 days ago

    I managed to get this working by creating a dhcp local server in the default RI and attaching the test RI dhcp profile to the dual-stack group

    Thanks,



    ------------------------------
    ANDREW WHITTLE
    ------------------------------