Configuring Interfaces, Protocols, and Routes of the Virtual Route Reflector Using Junos CLI
- Using the Junos CLI in the virtual machine console, configure
the interfaces that were connected to the OVS virtual switch-br (for
KVM or OpenStack) or the vSwitch (for VMware). Specify the IP addresses
that were assigned to the VNICs while configuring OVS (KVM) or vSwitch
(VMware).
[edit] user@host# set interfaces interface-name family inet address address user@host# set interfaces interface-name family inet6 address address
- Configure the loopback interface with the IP address for
the vRR.
[edit] user@host# set interfaces lo0 unit 0 family inet address address user@host# set interfaces lo0 unit 0 family inet6 address address
- Add a static default route to the gateway address of the
management IP address:
[edit] user@host# set routing-options static route 0.0.0.0/0 next-hop address
- Configure the hostname for the vRR.
[edit system] user@host# set host-name hostname
- Configure the root password.
[edit system] user@host# set root-authentication plain-text-password
- Add a user.
[edit system login] user@host# set user user-name
- Set the user identification (UID).
[edit system login user user-name] user@host# set uid uid-value
- Assign the user to a login class.
[edit system login user
user-name
] user@host# set class class-name - Set the user password.
[edit system login user
user-name
] user@host# set authentication plain-text-password - Enable Telnet and FTP access.
[edit system services] user@host# set ftp user@host# set telnet
- Configure the types of system log messages to send to
files and to user terminals.
[edit system syslog] user@host# set user * any emergency user@host# set file messages any notice user@host# set file messages authorization info user@host# set file interactive-commands interactive-commands any
- Configure the vRR to always use 64-bit processing.
[edit system processes] user@host# set routing force-64-bit
- Configure the router ID and the autonomous system (AS)
number.
[edit routing-options] user@host# set router-id address user@host# set autonomous-system autonomous-system
- Configure BGP, including the cluster identifier and the
neighbor relationships with all IBGP-enabled devices in the autonomous
system (AS).
[edit protocols bgp group group-name] user@host# set type internal user@host# set local-address address user@host# set cluster cluster-name user@host# set neighbor address
- (External peers only) Specify that the BGP next-hop value
not be changed.
[edit protocols bgp group group-name multihop] user@host# set no-nexthop-change
- Configure a forwarding-table export policy to prevent
the installation of BGP routes in the forwarding table. A vRR is not
expected to be in the forwarding path for BGP service prefixes.
[edit policy-options] user@host# set policy-statement policy-name term term-name from protocol bgp user@host# set policy-statement policy-name term term-name then reject
- Apply the BGP policy to the forwarding table.
[edit routing-options] user@host# set forwarding-table export policy-name
- Configure other desired protocols for the interfaces.