Skip to main content

From IOS to Junos – Day 4

Not much done tonight, have been really busy.

BGP today :)

Notes from the day
Tried to acccess Junos4 but ssh failed.
Because of rushing yesterday I have not enabled ssh

set system services ssh

Entering configuration mode
Users currently editing the configuration:
root terminal v0 (pid 1364) on since 2011-10-05 19:18:27 UTC, idle 00:00:54

root@Junos4# set interfaces em1 unit 0 family i
'i' is ambiguous.
Possible completions:
> inet IPv4 parameters
> inet6 IPv6 protocol parameters
> iso OSI ISO protocol parameters
root@Junos4# set interfaces em1 unit 0 family inet address

root@Junos4# commit
commit complete


root@Junos4# set routing-options autonomous-system 9999

root@Junos4# edit protocols bgp

[edit protocols bgp]
[edit protocols bgp]
root@Junos4# set group 4to5 peer-as 9998

[edit protocols bgp]
root@Junos4# set group 4to5 type ?
Possible completions:
external EBGP group
internal IBGP group
[edit protocols bgp]
root@Junos4# set group 4to5 type external

[edit protocols bgp]
root@Junos4# set group 4to5 neighbor

[edit protocols bgp]
root@Junos4# commit
commit complete

[edit protocols bgp]

** did opositen on 5
root@Junos5# set routing-options autonomous-system 9999

root@Junos5# edit protocols bgp

[edit protocols bgp]
[edit protocols bgp]
root@Junos5# set group 5to4 peer-as 9999

[edit protocols bgp]
root@Junos5# set group 5to4 type external

[edit protocols bgp]
root@Junos5# set group 5to4 neighbor

[edit protocols bgp]
root@Junos5# commit
commit complete

[edit protocols bgp]

***** BGP is up and running not I just need to advertise routes

root@Junos4> show bgp neighbor
Peer: AS 9998 Local: AS 9999
Type: External State: Established Flags: <ImportEval Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Preference PeerAS Refresh>
Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: Local ID: Active Holdtime: 90
Keepalive Interval: 30 Peer index: 0
BFD: disabled, down
Local Interface: em1.0
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Restart time configured on the peer: 120
Stale routes from peer are kept for: 300
Restart time requested by this peer: 120
NLRI that peer supports restart for: inet-unicast
NLRI that restart is negotiated for: inet-unicast
NLRI of received end-of-rib markers: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Peer supports 4 byte AS extension (peer-as 9998)
Peer does not support Addpath
Table inet.0 Bit: 10000
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Accepted prefixes: 0
Suppressed due to damping: 0
Advertised prefixes: 0
Last traffic (seconds): Received 9 Sent 20 Checked 10
Input messages: Total 12 Updates 1 Refreshes 0 Octets 272
Output messages: Total 6 Updates 0 Refreshes 0 Octets 177
Output Queue[0]: 0

root@Junos4# set policy-options policy-statement as_4to5_export
missing argument.

root@Junos4# set policy-options policy-statement as_4to5_export term 1 from protocol ospf

What I Achieved

  • BGP Peering seemed pretty straight forward at this basic level

  • OSPF into BGP also good


Noteworth Though

  • BGP into OSPF seem more of a challenge

  • This page might be useful IOS---JUNOS command sheet


Popular posts from this blog

Break the Network Emulators out of the Cloud

Cisco IOU and JunoSphere Recently both Cisco and Juniper have announced the availability of online resources to provide hands on training over the internet. They have built software emulators in the cloud that can be accessed remotely for a cost. These solutions are based purely around the certification programs and therefore are pretty rigid in the topology that are provided, not to mention the re-occurring cost. Rack Rentals There are training providers such as Internetwork Expert ( and IPexpert ( who provide rack rentals based on their training materials. These guy cannot possibly compete going forward. To keep these sustainable they will need to reduce the overhead of building physical racks, providing power and space for the racks. Using e

Dell Latitude D830 SSD Upgrade

Slow Laptop Syndrome I have a LATITUDE D830 : INTEL CORE 2 DUO T7500 4GB Ram from 2008, I did get a fairly high specification at the time, so it has always had pretty decent performance. However I haven't been using it for a while and when I did it seemed slow compared to my Core 5i desktop computer. (I use Windows 7 ultimate with the latest updates) Laptop for Work Now I might be doing a fair bit of travelling to customer sites in the near future and the last thing I want is a poorly performing Laptop, so I decide to ditch all the crap I had on it like iTunes, movies, miscellaneous software and cut back to a basic "work" PC. After all I do have iPhone, iPad and new kindle (soon) for all my multi media needs. I purchased a "Corsair 120GB Force 3 SSD 2.5" SATA-III 6Gb/s Read = 550MB/s, Write = 510MB/s" from Now I am guessing that SATA-II rather that SATA-III on the system board, but the price difference between SATA-II and SATA-III wa

ASR1006 Dual Route Processors Password Recovery - Tip

I recently ran into an issue when trying to perform dual route processors password recovery on a Cisco  ASR1006 Problem After breaking into rommon mode and using confreg to ignore the startup configuration, during the rest the ASR1006 loaded the startup configuration!!!!!!!! Solution So quick and simple, I pulled one of the RP and preformed password recovery running on a single RP. All went according to the Cisco documentation   After the system running on a single RP was recovered and fully booted I waiting for 5 minutes just to be sure; then I inserted the second RP and allowed everything to sync up.   All was well again :) phew   Note: The system was previously fully functioning with dual RPs; a configuration error was made during Tacacs+ configuration which resulted in lockout.   Summary I hit an issue recovering and ASR with dual RPs, so rather that spending hour researching, I decided ve