interfaces { ge-0/0/0 { apply-macro juniper-port-profile { Desktop; } description "Wan Router"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode trunk; vlan { members [VOICE-VLAN DATA-VLAN]; } } } } ge-0/0/1 { apply-macro juniper-port-profile { Desktop; } description "Layer 2 switching"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode trunk; vlan { members [VOICE-VLAN DATA-VLAN]; } } } } ge-0/0/2 { apply-macro juniper-port-profile { Desktop; } description "Shoretel switch"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode access; vlan { members VOICE-VLAN; } } } } ge-0/0/3 { apply-macro juniper-port-profile { Desktop; } description "Shoretel switch"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode access; vlan { members VOICE-VLAN; } } } } ge-0/0/4 { apply-macro juniper-port-profile { Desktop; } description "Conf Phone"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode access; vlan { members VOICE-VLAN; } } } } ge-0/0/5 { apply-macro juniper-port-profile { Desktop; } description "Conf Phone"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode access; vlan { members VOICE-VLAN; } } } } ge-0/0/6 { apply-macro juniper-port-profile { Desktop; } description "Branch Server"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode access; vlan { members DATA-VLAN; } } } } ge-0/0/7 { apply-macro juniper-port-profile { Desktop; } description "Branch Server"; mtu 1514; ether-options { auto-negotiation; no-flow-control; link-mode automatic; speed { auto-negotiation; } } unit 0 { family ethernet-switching { port-mode access; vlan { members DATA-VLAN; } } } } ge-0/0/8 { apply-macro juniper-port-profile { "Desktop and Phone"; } unit 0 { family ethernet-switching { port-mode access; vlan { members DATA-VLAN; } } } } ge-0/0/9 { apply-macro juniper-port-profile { "Desktop and Phone"; } unit 0 { family ethernet-switching { port-mode access; vlan { members VOICE-VLAN; } } } } ge-0/0/10 { apply-macro juniper-port-profile { "Desktop and Phone"; } unit 0 { family ethernet-switching { port-mode access; vlan { members DATA-VLAN; } } } } protocols { lldp { interface all; } rstp { bridge-priority 4k; interface ge-0/0/0.0 { edge; } interface ge-0/0/1.0 { edge; } interface ge-0/0/2.0 { edge; } interface ge-0/0/3.0 { edge; } interface ge-0/0/4.0 { edge; } interface ge-0/0/5.0 { edge; interface ge-0/0/6.0 { edge; interface ge-0/0/7.0 { edge; } } } class-of-service { classifiers { dscp juniper_dscp_classifier { import default; forwarding-class voice { loss-priority low code-points 101110; } } ieee-802.1 juniper_ieee_classifier { import default; forwarding-class voice { loss-priority low code-points 101; } } } forwarding-classes { class voice queue-num 7; class expedited-forwarding queue-num 5; class assured-forwarding queue-num 1; class best-effort queue-num 0; } interfaces { ge-0/0/8 { scheduler-map juniper-port-profile-map; unit 0 { classifiers { dscp juniper_dscp_classifier; ieee-802.1 juniper_ieee_classifier; } } } ge-0/0/9 { scheduler-map juniper-port-profile-map; unit 0 { classifiers { dscp juniper_dscp_classifier; ieee-802.1 juniper_ieee_classifier; } } } ge-0/0/10 { scheduler-map juniper-port-profile-map; unit 0 { classifiers { dscp juniper_dscp_classifier; ieee-802.1 juniper_ieee_classifier; } } } scheduler-maps { juniper-port-profile-map { forwarding-class voice scheduler strict-priority-scheduler; forwarding-class expedited-forwarding scheduler expedited-scheduler; forwarding-class assured-forwarding scheduler assured-scheduler; forwarding-class best-effort scheduler best-effort-scheduler; } } schedulers { strict-priority-scheduler { transmit-rate percent 10; buffer-size percent 5; priority strict-high; } expedited-scheduler { transmit-rate percent 30; buffer-size percent 30; priority low; } assured-scheduler { transmit-rate percent 25; buffer-size percent 25; priority low; } best-effort-scheduler { transmit-rate percent 35; buffer-size percent 40; priority low; } } } ethernet-switching-options { voip { } interface ge-0/0/8.0 { vlan VOICE-VLAN; } interface ge-0/0/9.0 { vlan VOICE-VLAN; } interface ge-0/0/10.0 { vlan VOICE-VLAN; } interface ge-0/0/11.0 { vlan VOICE-VLAN; } inactive: secure-access-port { interface ge-0/0/0.0 { mac-limit 1; } interface ge-0/0/1.0 { mac-limit 1; } interface ge-0/0/2.0 { mac-limit 1; } interface ge-0/0/3.0 { mac-limit 1; } interface ge-0/0/4.0 { mac-limit 1; } interface ge-0/0/5.0 { mac-limit 1; } interface ge-0/0/6.0 { mac-limit 3; } interface ge-0/0/7.0 { mac-limit 3; } interface ge-0/0/8.0 { mac-limit 3; } interface ge-0/0/9.0 { mac-limit 3; } interface ge-0/0/10.0 { mac-limit 3; } interface ge-0/0/11.0 { mac-limit 3; } vlan DATA-VLAN { arp-inspection; examine-dhcp; } vlan VOICE-VLAN { arp-inspection; examine-dhcp; } } } vlans { DATA-VLAN { description "Desktop PC DATA VLAN"; vlan-id 10; l3-interface vlan.1; } VOICE-VLAN { description "Phone VLAN"; vlan-id 20; l3-interface vlan.2; } default; } poe { interface all; }