ON THIS PAGE
Example: Configure NFX250-S2 as a Compute Server to Support Virtual Network Functions
Overview
This example configuration provisions the NFX250-S2 device as a compute server to support Virtual Network Functions (VNFs) as its main functionality.
The configuration provisions the basic NFX250-S2 requirements and provisions a single VNF for the PON Controller KVM image to be installed.
Modification to the IP addresses should be made that is appropriate for your individual deployment.
This example configuration provisions four of the Gigabit Ethernet copper interface ports to support the Layer 2 PON management control plane connections to external ACX routers with installed 10GbE PON OLT transceivers. It also provisions the four other Gigabit Ethernet copper interface ports to support the Layer 3 PON management control plane connection to the MicroClimateTM Management System database.
The configuration excerpt does not show the necessary user credential configuration information for a working system. The deployed system should have the configuration parameters set correctly.
The deployment configuration sets the NFX250-S2 device in compute mode and disables most NFX250-S2 Junos functionality, so that the system can be used as a VM host server.
Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
user@host# set system services ssh root-login allow user@host# set system memory hugepages page-size 1024 page-count 21 user@host# set interfaces ge-0/0/0 description "L2 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/0 ether-options auto-negotiation user@host# set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L2 user@host# set interfaces ge-0/0/0 unit 0 family ethernet-switching storm-control default user@host# set interfaces sxe-0/0/0 description "Internal Trunk Port to OVS Bridge - #1" user@host# set interfaces sxe-0/0/0 mtu 9192 user@host# set interfaces sxe-0/0/0 ether-options flow-control user@host# set interfaces sxe-0/0/0 unit 0 family ethernet-switching interface-mode trunk user@host# set interfaces sxe-0/0/0 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L2 user@host# set interfaces ge-0/0/1 description "L3 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/1 ether-options auto-negotiation user@host# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L3 user@host# set interfaces ge-0/0/1 unit 0 family ethernet-switching storm-control default user@host# set interfaces sxe-0/0/1 description "Internal Trunk Port to OVS Bridge - #2" user@host# set interfaces sxe-0/0/1 mtu 9192 user@host# set interfaces sxe-0/0/1 ether-options flow-control user@host# set interfaces sxe-0/0/1 unit 0 family ethernet-switching interface-mode trunk user@host# set interfaces sxe-0/0/1 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L3 user@host# set interfaces ge-0/0/2 description "L2 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/2 ether-options auto-negotiation user@host# set interfaces ge-0/0/2 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L2 user@host# set interfaces ge-0/0/2 unit 0 family ethernet-switching storm-control default user@host# set interfaces ge-0/0/3 description "L3 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/3 ether-options auto-negotiation user@host# set interfaces ge-0/0/3 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L3 user@host# set interfaces ge-0/0/3 unit 0 family ethernet-switching storm-control default user@host# set interfaces ge-0/0/4 description "L2 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/4 ether-options auto-negotiation user@host# set interfaces ge-0/0/4 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L2 user@host# set interfaces ge-0/0/4 unit 0 family ethernet-switching storm-control default user@host# set interfaces ge-0/0/5 description "L3 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/5 ether-options auto-negotiation user@host# set interfaces ge-0/0/5 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L3 user@host# set interfaces ge-0/0/5 unit 0 family ethernet-switching storm-control default user@host# set interfaces ge-0/0/6 description "L2 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/6 ether-options auto-negotiation user@host# set interfaces ge-0/0/6 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L2 user@host# set interfaces ge-0/0/6 unit 0 family ethernet-switching storm-control default user@host# set interfaces ge-0/0/7 description "L3 Only Control Plan PON Controller Port" user@host# set interfaces ge-0/0/7 ether-options auto-negotiation user@host# set interfaces ge-0/0/7 unit 0 family ethernet-switching vlan members VLAN-PONCNTL-L3 user@host# set interfaces ge-0/0/7 unit 0 family ethernet-switching storm-control default user@host# set vlans VLAN-PONCNTL-L2 description "Internal Layer 2 VLAN for PON Controller Control Plane to OLTs" user@host# set vlans VLAN-PONCNTL-L2 vlan-id 20 user@host# set vlans VLAN-PONCNTL-L3 description "Internal Layer 3 VLAN for PON Controller Control-plane to PON Manager" user@host# set vlans VLAN-PONCNTL-L3 vlan-id 30 user@host# set vmhost vlans vlan-poncntl-l2 description "VNF VLAN for PON Controller L2 Control Plane" user@host# set vmhost vlans vlan-poncntl-l2 vlan-id 20 user@host# set vmhost vlans vlan-poncntl-l3 description "VNF VLAN for PON Controller L3 Control Plane" user@host# set vmhost vlans vlan-poncntl-l3 vlan-id 30 user@host# set virtual-network-functions poncntl-1 type virtual-machine user@host# set virtual-network-functions poncntl-1 image /var/public/poncntl.qcow2 user@host# set virtual-network-functions poncntl-1 image image-type qcow2 user@host# set virtual-network-functions poncntl-1 virtual-cpu 0 physical-cpu 10 user@host# set virtual-network-functions poncntl-1 virtual-cpu count 1 user@host# set virtual-network-functions poncntl-1 virtual-cpu features hardware-virtualization user@host# set virtual-network-functions poncntl-1 interfaces eth2 description "L2 ONLY Control-plane PON Controller PORT (ens5)" user@host# set virtual-network-functions poncntl-1 interfaces eth2 mapping vlan members vlan-poncntl-l2 user@host# set virtual-network-functions poncntl-1 interfaces eth3 description "L3 ONLY Control-plane PON Controller PORT (ens6)" user@host# set virtual-network-functions poncntl-1 interfaces eth3 mapping vlan members vlan-poncntl-l3 user@host# set virtual-network-functions poncntl-1 memory size 4000000 user@host# set virtual-network-functions poncntl-1 memory features hugepages page-size 1024
Results
Check the results of the configuration:
system { services { ssh { root-login allow; } memory { hugepages { page-size 1024 { page-count 21; } } } } interfaces { ge-0/0/0 { description "L2 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L2; } storm-control default; } } } sxe-0/0/0 { description "Internal Trunk Port to OVS Bridge - #1"; mtu 9192; ether-options { flow-control; } unit 0 { family ethernet-switching { interface-mode trunk; vlan { members VLAN-PONCNTL-L2; } } } } ge-0/0/1 { description "L3 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L3; } storm-control default; } } } sxe-0/0/1 { description "Internal Trunk Port to OVS Bridge - #2"; mtu 9192; ether-options { flow-control; } unit 0 { family ethernet-switching { interface-mode trunk; vlan { members VLAN-PONCNTL-L3; } } } } ge-0/0/2 { description "L2 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L2; } storm-control default; } } } ge-0/0/3 { description "L3 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L3; } storm-control default; } } } ge-0/0/4 { description "L2 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L2; } storm-control default; } } } ge-0/0/5 { description "L3 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L3; } storm-control default; } } } ge-0/0/6 { description "L2 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L2; } storm-control default; } } } ge-0/0/7 { description "L3 Only Control Plan PON Controller Port"; ether-options { auto-negotiation; } unit 0 { family ethernet-switching { vlan { members VLAN-PONCNTL-L3; } storm-control default; } } } vlans { VLAN-PONCNTL-L2 { description "Internal Layer 2 VLAN for PON Controller Control Plane to OLTs"; vlan-id 20; } VLAN-PONCNTL-L3 { description "Internal Layer 3 VLAN for PON Controller Control-plane to PON Manager"; vlan-id 30; } default { vlan-id 1; } } vmhost { vlans { vlan-poncntl-l2 { description "VNF VLAN for PON Controller L2 Control Plane"; vlan-id 20; } vlan-poncntl-l3 { description "VNF VLAN for PON Controller L3 Control Plane"; vlan-id 30; } } } virtual-network-functions poncntl-1 { type { virtual-machine; } image { /var/public/poncntl.qcow2; image-type qcow2; } virtual-cpu { 0 { physical-cpu 10; } count 1; features { hardware-virtualization; } } interfaces eth2 { description "L2 ONLY Control-plane PON Controller PORT (ens5)"; mapping { vlan { members vlan-poncntl-l2; } } } interfaces eth3 { description "L3 ONLY Control-plane PON Controller PORT (ens6)"; mapping { vlan { members vlan-poncntl-l3; } } } memory { size 4000000; features { hugepages { page-size 1024; } } } }