Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.

SRX340 : setting specific COS on DHCP request ?

  • 1.  SRX340 : setting specific COS on DHCP request ?

    Posted 04-19-2022 12:59
    Hello,

    I need for my ISP (french ISP Orange) to set a specific 802.1q VLAN ID & priority for the DHCP request, and can't find a way to do it using my SRX340. I'm using firmware 22.1R1.10.

    The ISP ONT is connected directly to the interface 5 of the SRX.
    Setting the VLAN ID is simple, as every packet needs to be member of that VLAN.

    ge-0/0/5 {
        vlan-tagging;
        unit 0 {
            description orange;
            vlan-id 832;
            family inet {
                dhcp;
                filter {
                    output OrangePrio;
                }
            }
        }
    }​

    I've add an output filter :
    firewall {
        family inet {
            filter OrangePrio {
                term prio {
                    from {
                        protocol udp;
                        destination-port 67;
                    }
                    then {
                        syslog;
                        loss-priority low;
                        forwarding-class network-control;
                        accept;
                    }
                }
                term default_accept {
                    then accept;
                }
            }
        }
    }​

    I know this rule should change COS in IP Stack and not in 802.1q, but even, this one does nothing. The rule is hitted everytime the dhcp client make a request but it seems it does not change the COS.

    I can't find any documentation to do this on the 802.1q header neither. Any help is appreciated !

    Regards,

    ------------------------------
    Francois Miermont
    ------------------------------