Junos OS

 View Only
last person joined: yesterday 

Ask questions and share experiences about Junos OS.

vSRX packet-based mode DHCP server in a routing-instance not working

  • 1.  vSRX packet-based mode DHCP server in a routing-instance not working

    Posted 07-24-2024 08:54
    Edited by Jodi Meier 07-24-2024 12:17

    Hi all, 

    I'm trying to configure DHCP server pool in a vSRX in packet mode inside a routing-instance, but doesn't seem to be working . 

    The dhcp pool in the global routing table works fine but the dhcp on the routing-instance VOICE doesn't work. 

    If I assign manually an IP to the client I can ping the gateway interface ae1.30 IP fine. 

    I'm seeing this message in the logs: 

    Jul 24 11:28:17.606922 [MSTR][INFO] [default:default][RLY][INET][ae1.30] --[ OPTION code 255, len   0 ]--
    Jul 24 11:28:17.606934 [MSTR][INFO]  jdhcpd_is_alq_topology_discover_configured: There is no relay configuration in routing context default.default

    Jul 24 11:28:17.607027 [MSTR][NOTE] [default:default][RLY][INET][ae1.30] jdhcpd_packet_handle: BOOTPREQUEST ae1.30 arrived on unconfigured interface DISCOVER, flags 23, config 0x0
    Jul 24 11:28:17.607050 [MSTR][WARN]  jdhcpd_packet_free: freeing packet 0x54621f8
    Jul 24 11:28:21.519367 [MSTR][DEBUG] jdhcpd_io_reader: Entered
    Jul 24 11:28:21.519417 [MSTR][DEBUG] jdhcpd_packet_info_new: PACKET - Allocated new v4 packet 0x54621f8
    Jul 24 11:28:21.519443 [MSTR][NOTE]  jdhcpd_io_reader: Recv DHCP packet on logical-system default, routing-instance default, if ae1.30 size 305
    Jul 24 11:28:21.519466 [MSTR][DEBUG][default:default][RLY][INET][ae1.30] --[ DHCP/BOOTP   from == 0.0.0.0, port == 68 ]--

    This is the config: 

    set chassis aggregated-devices ethernet device-count 3
    set security forwarding-options family inet6 mode packet-based
    set security forwarding-options family mpls mode packet-based
    set interfaces ge-0/0/0 flexible-vlan-tagging
    set interfaces ge-0/0/0 unit 101 description DATA-WAN
    set interfaces ge-0/0/0 unit 101 vlan-id 101
    set interfaces ge-0/0/0 unit 101 family inet no-redirects
    set interfaces ge-0/0/0 unit 101 family inet address 100.68.1.23/31
    set interfaces ge-0/0/0 unit 102 vlan-id 102
    set interfaces ge-0/0/0 unit 102 family inet no-redirects
    set interfaces ge-0/0/0 unit 102 family inet address 100.68.1.75/31
    set interfaces ge-0/0/0 unit 103 vlan-id 103
    set interfaces ge-0/0/0 unit 103 family inet no-redirects
    set interfaces ge-0/0/0 unit 103 family inet address 100.68.1.77/31
    set interfaces ge-0/0/1 gigether-options 802.3ad ae1
    set interfaces ge-0/0/2 flexible-vlan-tagging
    set interfaces ge-0/0/2 unit 101 vlan-id 101
    set interfaces ge-0/0/2 unit 101 family inet no-redirects
    set interfaces ge-0/0/2 unit 101 family inet address 192.168.253.1/30
    set interfaces ge-0/0/2 unit 102 vlan-id 102
    set interfaces ge-0/0/2 unit 102 family inet address 192.168.253.5/30
    set interfaces ge-0/0/2 unit 103 vlan-id 103
    set interfaces ge-0/0/2 unit 103 family inet address 192.168.253.9/30
    set interfaces ae1 flexible-vlan-tagging
    set interfaces ae1 native-vlan-id 1
    set interfaces ae1 aggregated-ether-options lacp active
    set interfaces ae1 unit 0 vlan-id 1
    set interfaces ae1 unit 0 family inet address 192.168.1.1/24
    set interfaces ae1 unit 5 vlan-id 5
    set interfaces ae1 unit 5 family inet address 10.5.0.3/28
    set interfaces ae1 unit 10 vlan-id 10
    set interfaces ae1 unit 10 family inet address 10.10.6.3/23
    set interfaces ae1 unit 20 vlan-id 20
    set interfaces ae1 unit 20 family inet address 192.168.2.1/26
    set interfaces ae1 unit 30 vlan-id 30
    set interfaces ae1 unit 30 family inet address 192.168.197.1/24
    set interfaces ae1 unit 888 vlan-id 888
    set interfaces ae1 unit 888 family inet address 100.71.1.46/28
    set interfaces fxp0 unit 0
    set interfaces lo0 unit 0 family inet address 100.70.0.76/32
    set policy-options policy-statement ebgp-export term direct from protocol direct
    set policy-options policy-statement ebgp-export term direct then accept
    set policy-options policy-statement ebgp-export term static from protocol static
    set policy-options policy-statement ebgp-export term static then accept
    set policy-options policy-statement ibgp-export term direct from protocol direct
    set policy-options policy-statement ibgp-export term direct then accept
    set access address-assignment pool meraki family inet network 192.168.1.0/24
    set access address-assignment pool meraki family inet range meraki low 192.168.1.10
    set access address-assignment pool meraki family inet range meraki high 192.168.1.250
    set access address-assignment pool meraki family inet dhcp-attributes name-server 8.8.8.8
    set access address-assignment pool meraki family inet dhcp-attributes router 192.168.1.1
    set routing-instances VOICE protocols bgp group peer-VOICE-PE type external
    set routing-instances VOICE protocols bgp group peer-VOICE-PE export ebgp-export
    set routing-instances VOICE protocols bgp group peer-VOICE-PE peer-as 65000
    set routing-instances VOICE protocols bgp group peer-VOICE-PE neighbor 100.68.1.74
    set routing-instances VOICE protocols bgp group peer-VOICE-elva type internal
    set routing-instances VOICE protocols bgp group peer-VOICE-elva export ibgp-export
    set routing-instances VOICE protocols bgp group peer-VOICE-elva neighbor 192.168.253.6
    set routing-instances VOICE interface ge-0/0/0.102
    set routing-instances VOICE interface ge-0/0/2.102
    set routing-instances VOICE interface ae1.30
    set routing-instances VOICE system services dhcp-local-server group dhcp-voice interface ae1.30
    set routing-instances VOICE access address-assignment pool VOICE family inet network 192.168.197.0/24
    set routing-instances VOICE access address-assignment pool VOICE family inet range VOICE low 192.168.197.18
    set routing-instances VOICE access address-assignment pool VOICE family inet range VOICE high 192.168.197.123
    set routing-instances VOICE access address-assignment pool VOICE family inet dhcp-attributes name-server 8.8.8.8
    set routing-instances VOICE access address-assignment pool VOICE family inet dhcp-attributes router 192.168.197.1
    set routing-instances WIFI protocols bgp group peer-WIFI-PE type external
    set routing-instances WIFI protocols bgp group peer-WIFI-PE export ebgp-export
    set routing-instances WIFI protocols bgp group peer-WIFI-PE peer-as 65000
    set routing-instances WIFI protocols bgp group peer-WIFI-PE neighbor 100.68.1.76 
    set routing-instances WIFI protocols bgp group peer-WIFI-elva type internal
    set routing-instances WIFI protocols bgp group peer-WIFI-elva export ibgp-export
    set routing-instances WIFI protocols bgp group peer-WIFI-elva neighbor 192.168.253.10
    set routing-instances WIFI interface ge-0/0/0.103
    set routing-instances WIFI interface ge-0/0/2.103
    set routing-instances WIFI interface ae1.10
    set protocols bgp group peer-PE type external
    set protocols bgp group peer-PE export ebgp-export
    set protocols bgp group peer-PE peer-as 25577
    set protocols bgp group peer-PE neighbor 100.68.1.22
    set protocols bgp group peer-elva type internal
    set protocols bgp group peer-elva export ibgp-export
    set protocols bgp group peer-elva neighbor 192.168.253.2
    set protocols lldp interface ge-0/0/1
    set routing-options autonomous-system 65002

    Anyone has any idea what could be the issue? 

    Thanks



    ------------------------------
    NUNO OLIVEIRA
    ------------------------------