Skip to main content

From IOS to Junos - Day 3

Once I have configure everything I am going to wipe the lab and start again seeing if I can clean up some of the mess, but I won't post line by line here, I will just post the final configs.

Notes from the day


 
OSPF Today.

set host name and domain name to all ospf routers
set system host-name
set system root-authentication plain-text-password

apply interface configuration to all ospf routers

now do ospf???

I haven't looked at a book yet so doing this by feel
Junos2
configure protocols
set ospf area 0 interface em1

Junos3
edit protocol interface em0

Junos 3 immediately formed a neighbot with Junos 2

do the same for 4,6 and 7

ok a quick peak at a book and look like I can just add the intefaces into the area

edit protocols
set ospf area 0 interface lo0.10 passive

can see all loopback at junos 3

*** redist into rip

root@Junos2>

http://forums.juniper.net/t5/Routing/redistribute-RIP-routes-to-OSPF/td-p/22294

root@Junos2> configure
Entering configuration mode

[edit]
root@Junos2# edit policy-options

[edit policy-options]
root@Junos2# set policy-statement rip->ospf term 1 from protocol rip

[edit policy-options]
root@Junos2# set policy-statement rip->ospf term 1 then accept

[edit policy-options]
root@Junos2# set policy-statement rip->ospf term 2 then reject

[edit policy-options]
root@Junos2# commit
commit complete

[edit policy-options]
root@Junos2# set policy-statement ospf->rip term 1 from protocol ospf

[edit policy-options]
root@Junos2# set policy-statement ospf->rip term 1 then accept

[edit policy-options]
root@Junos2# set policy-statement ospf->rip term 2 then reject

[edit policy-options]
root@Junos2# commit
commit complete

[edit policy-options]
root@Junos2# top

[edit]
root@Junos2# edit protocols ospf

[edit protocols ospf]
root@Junos2# set export rip->ospf

[edit protocols ospf]
root@Junos2# up

[edit protocols]
root@Junos2# edit rip

[edit protocols]
root@Junos2# commit
commit complete

[edit]
root@Junos2# exit
Exiting configuration mode

 
protocols {
ospf {
export rip->ospf;
area 0.0.0.0 {
interface em1.0;
interface lo0.10 {
passive;
}
}
}
rip {
send multicast;
receive version-2;
group 1 {
export [ advertise-rip-routes ospf->rip ];
neighbor em0.0;
neighbor lo0.10;
}
}
}
policy-options {
policy-statement advertise-rip-routes {
term 1 {
from protocol direct;
then accept;
}
}
policy-statement ospf->rip {
term 1 {
from protocol ospf;
then accept;
}
term 2 {
then reject;
}
}
policy-statement rip->ospf {
term 1 {
from protocol rip;
then accept;
}
term 2 {
then reject;
}
}
}

root@Junos2>

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\JohnMcManus>ping 10.254.200.6

Pinging 10.254.200.6 with 32 bytes of data:
Reply from 10.254.200.6: bytes=32 time=2ms TTL=62
Reply from 10.254.200.6: bytes=32 time=2ms TTL=62

Ping statistics for 10.254.200.6:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 2ms, Average = 2ms
Control-C

C:\Users\JohnMcManus>

I can ping from 192.168.1.0/24 network

What I achieved


Got OSPF up and running

Rush through redistribution (export) between protocols

Getting smoother with configuring interface ip addressing

 

Noteworth thoughts


Like the way OSPF is assigned by Interface not a silly network statement. To be fair you can do that on IOS but being old school I often still do it the old way.

 

Finally - Just had a fight with word press, having trouble pasting show route output, no more editing just publish raw.

 

Comments

Popular posts from this blog

VMWARE ESXi 5.0 Command line quickies

Hi, It has been a long time since my last posts, but recently I have been working on my home ESXi lab so I thought I would share. I switched over to using Apple Mac just over a year ago, so I don't have a windows machine running by default to run the vSphere client software and generally all I want to do is startup VMs and switch off the ESXi server when I am done. I did some searching and found that I could use vmware vim-cmd if I SSHed into the ESXi server. This need to be enabled at the console, then you can use putty or your tool of choice to connect. Anyway there are several commands the following to me are most useful. List all Virtual Machines vim-cmd vmsvc/getallvms Get a Virtual Machines state (on/off etc) vim-cmd  vmsvc/power.getstate Power on a virtual machine vim-cmd vmsvc/power.on Combining command to a one liner you can find out the power on state of all Virtual Machines vim-cmd vmsvc/getallvms && for x in `vim-cmd vmsvc/getallvms|

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 http://www.cisco.com/en/US/docs/routers/asr1000/install/guide/routers/asr1_hwc.html#wp1045971   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

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. http://www.juniper.net/us/en/company/press-center/press-releases/2011/pr_2011_05_16-03_01.html https://learningnetworkstore.cisco.com/market/prod/listSubCatLearnLab.se.work?TRGT=85&/nxt/rcrs/=2559 Rack Rentals There are training providers such as Internetwork Expert (http://www.ine.com/) and IPexpert (http://www.ipexpert.com/) 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