- Build for High Performance Network
- Junos Operating System is based on FreeBSD (and Linux in Evolved versions)
- A. Overview Junos
- B. Junos Advantages
- C. 3 Mode of Junos
- D. Basic Configuration
- E. Routing Configuration
- F. Routing Policy
- G. Redistribution Policy
- H. Firewall Filter
- I. MPLS (Multi Protocol Labeling Switching) - Bonus
- J. Interior-BGP Route Reflector - Bonus
- K. MPLS L2VPN Configuration - Bonus
- L. VPLS Configuration - Bonus
- M. MPLS L3VPN Configuration - Bonus
- N. LACP (Link Aggregation Control Protocol) - Bonus
- Control Engine (Core System)
- Forwarding Engine (Forwarding Data)
- Service Engine (SNMP, SSH, TELNET, etc)
- Routing Engine (OSPF, ISIS, BGP)
- Packet Forwarding Engine (Forwarding Data)
- Switch (EX Series, QFX Series)
- Router (ACX Series, MX Series, PTX Series)
- Firewall (SRX Series)
- Cloud Virtual (vMX, vSRX, vQFX)
- Routing and Switching (JNCIA, JNCIS, JNCIP, JNCIE)
- Datacenter
- Security
- Cloud
- Automation
- Design
Amnesiac (ttyd0)
login: root
root@%
root@% cli
root>
root> ping
root> traceroute
root> ssh [email protected]
root> telnet 1.1.1.1
root> show configuration
root> configure
root# edit
root# set
root# up -> back hirarcy
root# up 3 -> back 3 hirarcy
root# top -> back to top hirarcy
root# set system host-name "hostname"
root# show | compare
root# set system root-authentication plain-text-password
"...." -> Password
root# show | compare
root# commit
- Superuser
root# set system login user [username] class super-user
root# set system login user [username] authentication plain-text-password
"...." -> Password
root# show | compare
root# commit
- Operator
root# set system login user [username] class operator
root# set system login user [username] authentication plain-text-password
"...." -> Password
root# show | compare
root# commit
- Admin
root# set system login user [username] class admin
root# set system login user [username] authentication plain-text-password
"...." -> Password
root# show | compare
root# commit
- Candidate
root> show
- Active
root# run show
- Commit
root# commit check
root# commit and-quit
root# commit at "2026-03-26 24:00:00" -> Schedule commit time
root# commit confirmed -> 10minutes rollback configuration (default)
root# commit confirmed 1 -> 1 minute
root# commit confirmed 20 -> 20 minute
root# commit comment "remove xxyyzz"
root# show system commit
- Rollback commit comment max 49 list
root# rollback 1 -> back configuration commit 1
root# rollback 0 -> discard candidate configuration
- Set Date
root> set date 202603060100.00 -> Operational Mode
- Set Timezone
root# set system timezone Asia/Jakarta -> Configuration Mode
root# show | compare
root# commit
- Verification
root# run show system uptime
- Basic
root# set system ntp server id.pool.ntp.org -> Domain
root# set system ntp server 162.159.200.123 -> IP
root# show | compare
root# commit
- Advanced
root# set system ntp boot-server "ntp server main"
root# set system ntp server "ntp server main" prefer
root# set system ntp server "ntp server backup"
root# set system ntp source-address "loopback"
root# show | compare
root# commit
root# set system services ssh
root# set system services ftp
root# set system services telnet
- Delete Configuration
root# delete ...
- Disable Configuration
root# deactive ...
- Active Configuration
root# active ...
- Rename Example
root# edit system
root# rename user "user" to "user10"
root# show | compare
root# commit
- Replace Example
root# edit system
root# replace pattern user "user" with "superuser"
root# show | compare
root# commit
root# show | match [parameter]
root# show | no-more
root# show | display set
- Backup Configuration
root# save "backup_config"
- Verification Backup Configuration
root# run file list
root@% cat "backup_config"
- Restore Configuration
root# load override "old_config"
root# show | compare
root# commit
- Load Merge Configuration
root# load merge "old_config"
root# show | compare
root# commit
- Reset Factory Default
root# load factory-default
root# show | compare
root# commit
- Configure
root> configure
root# set ...
root# show | compare
root# commit
- Configure Private
root> configure private
root# set ...
root# show | compare
root# commit
- Configure Exclusive
root> configure exclusive
root# set ...
root# show | compare
root# commit
- Loopback Configuration
root# set interfaces lo0 unit 0 description
root# set interfaces lo0 unit 0 family inet address 1.1.1.1/32
root# show | compare
root# commit
- Interface Configuration
root# set interfaces em0 unit 0 description
root# set interfaces em0 unit 0 family inet address 10.10.10.1/24
root# show | compare
root# commit
- Verification
root# run show interfaces terse
root# run show interfaces brief
root# run ping 10.10.10.x
root# show | compare
root# commit
- Maximum Transmission Unit (MTU)
root# set interfaces em0 mtu "range 1998 - 9200"
root# show | compare
root# commit
- SNMP
root# set snmp description snmpfilter
root# set snmp location "hostname"
root# set snmp contact "mail / contact center"
root# set snmp community "snmp community" authorization read-only
root# set snmp community "snmp community" clients "ip target 1"
root# set snmp community "snmp community" clients "ip target 2"
root# commit
- Static Route Configuration
root# set routing-options static route "destination_network" next-hop "gateway"
root# show | compare
root# commit
- Static Route Preference
root# set routing-options static route "destination_network" next-hop "gateway" preference "value"
- Routing Table Static
root# run show route protocol static
- Delete Static Route
root# delete routing-options static
root# show | compare
root# commit
- Router ID
root# set routing-options router-id 1.1.1.1
- OSPF Advertise Routing Single Area
root# set protocols ospf area 1 interface em0
root# set protocols ospf area 1 interface em1
root# set protocols ospf area 1 interface lo0
root# show | compare
root# commit
- OSPF Advertise Routing Multi Area
root# set routing-options router-id 2.2.2.2
root# set protocols ospf area 1 interface em0
root# set protocols ospf area 2 interface em1
root# set protocols ospf area 0 interface lo0
root# show | compare
root# commit
- Verification
root# run show configuration routing-options
root# run show configuration protocols ospf
root# run show ospf neighbor
root# run show ospf interface
root# run show ospf route
root# run show route protocol ospf
- Migration Area OSPF (Rename Area)
root# edit protocols ospf
root# rename area 0 to area 100
root# show | compare
root# commit
- Advanced OSPF
root# set protocols ospf area "id area" interface "loopback" interface-type p2p
root# set protocols ospf area "id area" interface "loopback" metric "1 - 65000" -> MTU
root# set protocols ospf area "id area" interface "port" interface-type p2p
root# set protocols ospf area "id area" interface "port" metric "1 - 65000" -> MTU
root# set protocols ospf area "id area" interface "port" hello-interval 5
root# set protocols ospf area "id area" interface "port" dead-interval 15
root# set protocols ospf area "id area" interface "port" authentication md5 1 key "password"
- OSPF Traffic-Engineering and Reference Bandwidth
root# set protocols ospf traffic-engineering
root# set protocols ospf reference-bandwidth "1G/10G/100G"
- OSPF BFD (Bidirectional Forwarding Detection)
root# set protocols ospf area "id area" interface "port" bfd-liveness-detection minimum interval 300
root# set protocols ospf area "id area" interface "port" bfd-liveness-detection multiplier 3
-
Overview IS-IS
- First IGP Routing Protocol
- ISO Standard
- ISO Address as router-id (SysID)
-
Detail IS-IS Concept
- AFI -> 49
- Area ID -> 0001
- Sys ID -> 1720.1400.4004
- Selector -> 00
-
Convert IP to SysID
- Step 1 : 172.14.4.4
- Step 2 : 172.014.004.004
- Step 3 : 1720.1400.4004
-
Leveling IS-IS
- Level 1 : Connection Singlearea (Intra area)
49.0001.1720.1400.4004.00 (level 1) 49.0001.1720.1400.4005.00 49.0001.1720.1400.4006.00- Level 2 : Connection Multiarea (Inter area)
49.0002.1720.1400.4004.00 (level 2) 49.0002.1720.1400.4005.00 49.0002.1720.1400.4006.00 -
IS-IS Loopback
root# set interface lo0 unit 0 family inet address 1.0.0.1/32
root# set interface em0 unit 0 family inet address 1.1.1.1/30
root# set interface em1 unit 0 family inet address 1.1.1.2/30
root# set interface em2 unit 0 family inet address s1.1.1.3/30
- IS-IS Interface
root# set interface lo0 unit 0 family iso address 49.0001.1720.1400.4004.00
root# set interface em0 unit 0 family iso
root# set interface em1 unit 0 family iso
root# set interface em2 unit 0 family iso
- IS-IS Advertise Routing Level-1
root# set protocols isis interface lo0 level 2 disable (level 1 enable)
root# set protocols isis interface em0 level 2 disable (level 1 enable)
root# set protocols isis interface em1 level 2 disable (level 1 enable)
root# set protocols isis interface em2 level 2 disable (level 1 enable)
- IS-IS Advertise Routing Level-2
root# set protocols isis interface lo0 level 1 disable (level 2 enable)
root# set protocols isis interface em0 level 1 disable (level 2 enable)
root# set protocols isis interface em1 level 1 disable (level 2 enable)
root# set protocols isis interface em2 level 1 disable (level 2 enable)
- IS-IS Advertise Routing Level-2 and Level-1
root# set protocols isis interface lo0 level 2 disable (level 1 enable)
root# set protocols isis interface em0 level 2 disable (level 1 enable)
root# set protocols isis interface em1 level 1 disable (level 2 enable)
root# set protocols isis interface em2 level 1 disable (level 2 enable)
- IS-IS Advanced
root# set protocol isis level 1 wide-metrics-only -> Intra Area
root# set protocol isis level 2 wide-metrics-only -> Inter Area
- Verification
root# run show route protocol isis
root# run show isis interface
root# run show isis summary
root# run show isis adjacency detail
root# run show isis database
A. OSPF
- Import Policy : Accept All Route from OSPF
- Export Policy : Export only to OSPF
B. IS-IS
- Import Policy : Accept All Route from IS-IS
- Export Policy : Export only to IS-IS
C. RIP
- Import Policy : Accept All Route from RIP
- Export Policy : Discard all export
D. BGP
- Import Policy : Accept All Route from BGP
- Export Policy : Export to all active BGP neighbor
root# set policy-options policy-statement "ospf-term" term 1 from route-filter "ip address /xx" exact
root# set policy-options policy-statement "ospf-term" term 1 then accept
root# set policy-options policy-statement "ospf-term" term 2 then reject
root# set protocols ospf export "ospf-term"
root# show | compare
root# commit
- Set Policy and Export
root# set policy-options policy-statement OSPF-to-ISIS term 1
root# set policy-options policy-statement OSPF-to-ISIS term 1 from protocol ospf
root# set policy-options policy-statement OSPF-to-ISIS term 1 from protocol direct
root# set policy-options policy-statement OSPF-to-ISIS term 1 them accept
root# set protocol isis export OSPF-to-ISIS
root# show | compare
root# commit
- Verification
root# run show route protocol isis
root# run show route protocol ospf
- Set Policy and Export
root# set policy-options policy-statement ISIS-to-OSPF term 1
root# set policy-options policy-statement ISIS-to-OSPF term 1 from protocol isis
root# set policy-options policy-statement ISIS-to-OSPF term 1 from protocol direct
root# set policy-options policy-statement ISIS-to-OSPF term 1 them accept
root# set protocol isis export ISIS-to-OSPF
root# show | compare
root# commit
- Verification
root# run show route protocol isis
root# run show route protocol ospf
- Discard -> Bloking
- Reject -> Bloking with Notification
- Set Term Firewall Filter ICMP (Reject)
root# set firewall filter FILTER-PING term FILTER-TERM-1
root# set firewall filter FILTER-PING term FILTER-TERM-1 from source-address 10.xx.yy.zz/24 -> Network Destination
root# set firewall filter FILTER-PING term FILTER-TERM-1 from destination-address 1.1.1.1/32 -> Loopback R1
root# set firewall filter FILTER-PING term FILTER-TERM-1 from protocol icmp
root# set firewall filter FILTER-PING term FILTER-TERM-1 then reject
root# show | compare
root# commit
- Set Term Firewall Filter ICMP (Accept)
root# set firewall filter FILTER-PING term FILTER-DEFAULT
root# set firewall filter FILTER-PING term FILTER-DEFAULT then accept
root# show | compare
root# commit
- Export Filter in Interface (Lo0, em0, etc)
root# set interface lo0 unit 0 family inet filter input FILTER-TERM-1
root# show | compare
root# commit
- Set Term Firewall Filter SSH (Reject)
root# set firewall filter FILTER-SSH term FILTER-TERM-SSH
root# set firewall filter FILTER-SSH term FILTER-TERM-SSH from source-address 10.xx.xx.yy/24
root# set firewall filter FILTER-SSH term FILTER-TERM-SSH from protocol tcp
root# set firewall filter FILTER-SSH term FILTER-TERM-SSH from destination-port 22
root# set firewall filter FILTER-SSH term FILTER-TERM-SSH then reject
root# show | compare
root# commit
- Set Term Firewall Filter SSH (Accept)
root# set firewall filter FILTER-SSH term FILTER-DEFAULT
root# set firewall filter FILTER-SSH term FILTER-DEFAULT then accept
root# show | compare
root# commit
- MPLS Configuration
root# set protocols mpls no-propagate-ttl
root# set protocols mpls interface lo0
root# set protocols mpls interface em0
root# set protocols mpls interface em1
- Verification
root# run show route forwarding-table family mpls
root# run show mpls interface brief
root# run show mpls lsp brief
- LDP Configuration
root# set protocols ldp interface lo0
root# set protocols ldp interface em0
root# set protocols ldp interface em1
root# set protocols ldp session "ip neighbor 1" authentication-key "password"
root# set protocols ldp session "ip neighbor 2" authentication-key "password"
- Verification
root# run show ldp interface
root# run show ldp neighbor
root# run show ldp session
- LLDP Configuration
root# set protocols lldp interface em0
root# set protocols lldp interface em1
- Verification
root# run show lldp neighbor
root# run show lldp detail
- RSVP Configuration
root# set protocols rsvp interface lo0
root# set protocols rsvp interface em0
root# set protocols rsvp interface em1
- Verification
root# run show rsvp interface
- Router Router Reflector
root# set routing-options graceful-restart
root# set routing-options router-id [IP_LOOPBACK]
root# set routing-options autonomous-system [AS-NUMBER]
root# set protocols bgp log-updown
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] type internal
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] local-address [IP_LOOPBACK]
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] family inet-vpn unicast <- VPNV4
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] authentication-key [PASSWORD]
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] cluster [CLUSTER_ID]
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] peer-as [AS_NUMBER_PEERING]
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] neighbor [IP_RR_CLIENT_A] description [DESCRIPTION]
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] neighbor [IP_RR_CLIENT_B] description [DESCRIPTION]
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] neighbor [IP_RR_CLIENT_C] description [DESCRIPTION]
root# set protocols bgp group [BGP_GROUP_RR_CLIENT] neighbor [IP_RR_CLIENT_D] description [DESCRIPTION]
root# show | compare
root# commit
- Verification
root# run show bgp summary
root# run show bgp neighbor
- Router Client
root# set routing-options graceful-restart
root# set routing-options router-id [IP_LOOPBACK]
root# set routing-options autonomous-system [AS-NUMBER]
root# set protocols bgp log-updown
root# set protocols bgp group [BGP_GROUP] type internal
root# set protocols bgp group [BGP_GROUP] local-address [IP_LOOPBACK]
root# set protocols bgp group [BGP_GROUP] family inet-vpn unicast <- VPNV4
root# set protocols bgp group [BGP_GROUP] authentication-key [PASSWORD]
root# set protocols bgp group [BGP_GROUP] cluster [CLUSTER_ID]
root# set protocols bgp group [BGP_GROUP] peer-as [AS_NUMBER_PEERING]
root# set protocols bgp group [BGP_GROUP] neighbor [IP_ROUTE_REFLECTOR] description [DESCRIPTION]
root# show | compare
root# commit
- Verification
root# run show bgp summary
root# run show bgp neighbor
- L2VPN Configuration
root# set protocols l2circuit neighbor "near-end loopback" interface ge-0/0/1.10 virtual-circuit-id 10
root# set protocols l2circuit neighbor "near-end loopback" interface ge-0/0/1.10 description L2VPN
root# set protocols l2circuit neighbor "near-end loopback" interface ge-0/0/1.10 no-control-word
root# set protocols l2circuit neighbor "near-end loopback" interface ge-0/0/1.10 ignore-encapsulation-mismatch
- Port Service
root# set interfaces ge-0/0/1 flexible-vlan-tagging
root# set interfaces ge-0/0/1 mtu 1900
root# set interfaces ge-0/0/1 encapsulation flexible-ethernet-services
root# set interfaces ge-0/0/1 unit 10 description L2VPN
root# set interfaces ge-0/0/1 unit 10 encapsulation vlan-ccc
root# set interfaces ge-0/0/1 unit 10 vlan-id 10
- Verification
root# run show l2circuit connections
- L2VPN Configuration
root# set protocols l2circuit neighbor "far-end loopback" interface ge-0/0/1.10 virtual-circuit-id 10
root# set protocols l2circuit neighbor "far-end loopback" interface ge-0/0/1.10 description L2VPN
root# set protocols l2circuit neighbor "far-end loopback" interface ge-0/0/1.10 no-control-word
root# set protocols l2circuit neighbor "far-end loopback" interface ge-0/0/1.10 ignore-encapsulation-mismatch
- Port Service
root# set interfaces ge-0/0/1 flexible-vlan-tagging
root# set interfaces ge-0/0/1 mtu 1900
root# set interfaces ge-0/0/1 encapsulation flexible-ethernet-services
root# set interfaces ge-0/0/1 unit 10 description L2VPN
root# set interfaces ge-0/0/1 unit 10 encapsulation vlan-ccc
root# set interfaces ge-0/0/1 unit 10 vlan-id 10
- Verification
root# run show l2circuit connections
- VPLS Configuration
root# set routing-instances "to Near-end" instance-type vpls
root# set routing-instances "to Near-end" interface ge-0/0/4.0
root# set routing-instances "to Near-end" protocols vpls encapsulation-type ethernet
root# set routing-instances "to Near-end" protocols vpls no-control-word
root# set routing-instances "to Near-end" protocols vpls no-tunnel-services
root# set routing-instances "to Near-end" protocols vpls vpls-id 234
root# set routing-instances "to Near-end" protocols vpls mtu 1500
root# set routing-instances "to Near-end" protocols vpls ignore-mtu-mismatch
root# set routing-instances "to Near-end" protocols vpls ignore-encapsulation-mismatch
root# set routing-instances "to Near-end" protocols vpls neighbor "to Near-end Loopback" switchover-delay 5000
root# set routing-instances "to Near-end" protocols vpls neighbor "to Near-end Loopback" revert-time 60
root# set routing-instances "to Near-end" protocols vpls neighbor "to Near-end Loopback" backup-neighbor "to Backup-HO Loopback" standby
- Port Service
root# set interfaces ge-0/0/4 unit 0 description "to Near-end"
root# set interfaces ge-0/0/4 mtu 1500
root# set interfaces ge-0/0/4 encapsulation ethernet-vpls
- Verification
root# run show vpls connections
root# run show vpls mac-table brief
root# run show route forwarding-table family vpls
- VPLS Configuration
root# set routing-instances "to Far-end" instance-type vpls
root# set routing-instances "to Far-end" interface ge-0/0/4.0
root# set routing-instances "to Far-end" protocols vpls encapsulation-type ethernet
root# set routing-instances "to Far-end" protocols vpls no-control-word
root# set routing-instances "to Far-end" protocols vpls no-tunnel-services
root# set routing-instances "to Far-end" protocols vpls vpls-id 234
root# set routing-instances "to Far-end" protocols vpls mtu 1500
root# set routing-instances "to Far-end" protocols vpls ignore-mtu-mismatch
root# set routing-instances "to Far-end" protocols vpls ignore-encapsulation-mismatch
root# set routing-instances "to Far-end" protocols vpls neighbor "to Far-end Loopback" switchover-delay 5000
root# set routing-instances "to Far-end" protocols vpls neighbor "to Far-end Loopback" revert-time 60
root# set routing-instances "to Far-end" protocols vpls neighbor "to Far-end Loopback" backup-neighbor "to Backup-HO Loopback" standby
- Port Service
root# set interfaces ge-0/0/4 unit 0 description "to Far-end"
root# set interfaces ge-0/0/4 mtu 1500
root# set interfaces ge-0/0/4 encapsulation ethernet-vpls
- Verification
root# run show vpls connections
root# run show vpls mac-table brief
root# run show route forwarding-table family vpls
- VPN Policy
root# set policy-options policy-statement VPN-SERVER-XYZ-EXPORT term 1 then community add target:65000:100
root# set policy-options policy-statement VPN-SERVER-XYZ-EXPORT term 1 then accept
root# set policy-options policy-statement VPN-SERVER-XYZ-IMPORT term 1 from community target:65000:100
root# set policy-options policy-statement VPN-SERVER-XYZ-IMPORT term 1 then accept
root# set policy-options policy-statement VPN-SERVER-XYZ-IMPORT term other then reject
root# set policy-options community target:65000:100 members target:65000:100
- VPN Instance
root# set routing-instances VPN-SERVER-XYZ instance-type vrf
root# set routing-instances VPN-SERVER-XYZ interface ge-0/0/1.0
root# set routing-instances VPN-SERVER-XYZ route-distinguisher 65000:100
root# set routing-instances VPN-SERVER-XYZ vrf-import VPN-SERVER-XYZ-IMPORT
root# set routing-instances VPN-SERVER-XYZ vrf-export VPN-SERVER-XYZ-EXPORT
root# set routing-instances VPN-SERVER-XYZ vrf-table-label
- Port Service
root# set interfaces ge-0/0/1 unit 0 description "to SERVER-XYZ"
root# set interfaces ge-0/0/1 encapsulation ethernet
root# set interfaces ge-0/0/1 mtu 1500
root# set interfaces ge-0/0/1 unit 0 family inet address 192.110.0.1/30
- Verification
root# run show route table [VRF_NAME].inet.0
root# run show route forwarding-table vpn [VRF_NAME]
root# run ping routing-instance [VRF_NAME] [DESTINATION_IP] source [SOURCE_IP] count 5
root# run show bgp summary instance [VRF_NAME]
root# run ping [DESTINATION_IP] source [SOURCE_IP]
root# run traceroute [DESTINATION_IP] source [SOURCE_IP]
- VPN Policy
root# set policy-options policy-statement VPN-SERVER-12-EXPORT term 1 then community add target:65000:200
root# set policy-options policy-statement VPN-SERVER-12-EXPORT term 1 then accept
root# set policy-options policy-statement VPN-SERVER-12-IMPORT term 1 from community target:65000:200
root# set policy-options policy-statement VPN-SERVER-12-IMPORT term 1 then accept
root# set policy-options policy-statement VPN-SERVER-12-IMPORT term other then reject
root# set policy-options community target:65000:200 members target:65000:200
- VPN Instance
root# set routing-instances VPN-SERVER-12 instance-type vrf
root# set routing-instances VPN-SERVER-12 interface ge-0/0/3.0
root# set routing-instances VPN-SERVER-12 route-distinguisher 65000:200
root# set routing-instances VPN-SERVER-12 vrf-import VPN-SERVER-12-IMPORT
root# set routing-instances VPN-SERVER-12 vrf-export VPN-SERVER-12-EXPORT
root# set routing-instances VPN-SERVER-12 vrf-table-label
- Redistribute BGP
root# set routing-instances VPN-SERVER-12 protocol bgp group VPN-SERVER-12 type external
root# set routing-instances VPN-SERVER-12 protocol bgp group VPN-SERVER-12 family inet unicast
root# set routing-instances VPN-SERVER-12 protocol bgp group VPN-SERVER-12 neighbor 172.100.0.2
root# set routing-instances VPN-SERVER-12 protocol bgp group VPN-SERVER-12 neighbor 172.100.0.2 as-override
root# set routing-instances VPN-SERVER-12 protocol bgp group VPN-SERVER-12 neighbor 172.100.0.2 peer-as 65488
root# set routing-instances VPN-SERVER-12 protocol bgp group VPN-SERVER-12 neighbor 172.100.0.2 local-as 65000
root# set routing-instances VPN-SERVER-12 protocol bgp group VPN-SERVER-12 neighbor 172.100.0.2 export EXPORT-AS65488
root# set policy-options policy-statement EXPORT-AS65488 term 1 from route-filter 202.20.0.0/30 exact
root# set policy-options policy-statement EXPORT-AS65488 term 1 then accept
root# set policy-options policy-statement EXPORT-AS65488 term other then reject
- Service Port
root# set interfaces ge-0/0/3 unit 0 description "to SERVER-12"
root# set interfaces ge-0/0/3 encapsulation ethernet
root# set interfaces ge-0/0/3 mtu 1500
root# set interfaces ge-0/0/3 unit 0 family inet address 172.100.0.1/30
- Verification
root# run show route table [VRF_NAME].inet.0
root# run show route forwarding-table vpn [VRF_NAME]
root# run ping routing-instance [VRF_NAME] [DESTINATION_IP] source [SOURCE_IP] count 5
root# run show bgp summary instance [VRF_NAME]
root# run ping [DESTINATION_IP] source [SOURCE_IP]
root# run traceroute [DESTINATION_IP] source [SOURCE_IP]
- VPN Policy
root# set policy-options policy-statement VPN-OSPF-AB-EXPORT term 1 then community add target:65000:300
root# set policy-options policy-statement VPN-OSPF-AB-EXPORT term 1 then accept
root# set policy-options policy-statement VPN-OSPF-AB-IMPORT term 1 from community target:65000:300
root# set policy-options policy-statement VPN-OSPF-AB-IMPORT term 1 then accept
root# set policy-options policy-statement VPN-OSPF-AB-IMPORT term other then reject
root# set policy-options community target:65000:300 members target:65000:300
- VPN Instance
root# set routing-instances VPN-OSPF-AB instance-type vrf
root# set routing-instances VPN-OSPF-AB interface ge-0/0/3.0
root# set routing-instances VPN-OSPF-AB interface lo0.1
root# set routing-instances VPN-OSPF-AB route-distinguisher 65000:300
root# set routing-instances VPN-OSPF-AB vrf-import VPN-OSPF-AB-IMPORT
root# set routing-instances VPN-OSPF-AB vrf-export VPN-OSPF-AB-EXPORT
root# set routing-instances VPN-OSPF-AB vrf-table-label
root# set routing-instances VPN-OSPF-AB protocol ospf export EXPORT-OSPF-888
root# set routing-instances VPN-OSPF-AB protocol ospf sham-link local 103.22.0.253
root# set routing-instances VPN-OSPF-AB protocol ospf area 0.0.3.120 sham-link-remote 103.32.0.253 metric 10
root# set routing-instances VPN-OSPF-AB protocol ospf area 0.0.3.120 interface ge-0/0/3.0
root# set routing-instances VPN-OSPF-AB protocol ospf area 0.0.3.120 interface lo0.1
- Redistribute OSPF
root# set policy-options policy-statement EXPORT-OSPF-888 term 1 from protocol bgp
root# set policy-options policy-statement EXPORT-OSPF-888 term 1 then accept
root# set policy-options policy-statement EXPORT-OSPF-888 term other then reject
- Port Service
root# set interfaces lo0 unit 1 family inet address 103.22.0.253/32
root# set interfaces ge-0/0/3 unit 0 description "to NODE-A"
root# set interfaces ge-0/0/3 encapsulation ethernet
root# set interfaces ge-0/0/3 mtu 1500
root# set interfaces ge-0/0/3 unit 0 family inet address 10.0.0.1/30
- Verification
root# run show ospf interface instance [VRF_NAME]
root# run show ospf neighbor instance [VRF_NAME]
root# run ping [DESTINATION_IP] source [SOURCE_IP]
root# run traceroute [DESTINATION_IP] source [SOURCE_IP]
- LACP Confifugraiton
root# set interfaces ae3 description [DESCRIPTION]
root# set interfaces ae3 flexible-vlan-tagging
root# set interfaces ae3 mtu [1500 - 9000]
root# set interfaces ae3 aggregated-ether-options minimum-links 1
root# set interfaces ae3 aggregated-ether-options link-speed [BANDWIDTH_REFERENCE]
root# set interfaces ae3 aggregated-ether-options lacp active
- VLAN Tagging
root# set interfaces ae3 unit 123 description [DESCRIPTION]
root# set interfaces ae3 unit 123 vlan-id 123
root# set interfaces ae3 unit 123 family inet filter input [POLICY_FILTER]
root# set interfaces ae3 unit 123 family inet address [X.X.X.X/YY]
- Port Interface
root# set interfaces [PORT_INTERFACE] description [DESCRIPTION]
root# set interfaces [PORT_INTERFACE] gigether-options no-flow-control
root# set interfaces [PORT_INTERFACE] gigether-options no-auto-negotiation
root# set interfaces [PORT_INTERFACE] gigether-options 802.3ad ae3
- Verification
root# run show ethernet-switching interfaces
root# run show lacp interfaces
Please open an issue on GitHub with as much information as possible if you found a bug.
- Your Junos and Software Update
- All the logs and message outputted
- etc
