Saturday, February 25, 2012

GNS3 Using Cisco and Juniper


This lab is just a "getting to know Junos" lab that demonstrates OSPF route exchange between IOS and JUNOS.

The PC used for this lab is a Win7-64 with Intel i7-2600k CPU and 16 Gig of RAM.

Once GNS3 starts and the "Start all devices" icon is clicked, it takes 7 minutes for a login prompt to appear on the Junos hosts respective terminals.

The two qemu processes take about 6% of CPU each. A bit after 7 minutes, everything settles down; the PC is not at all slow after this.


 
GNS3 appears to save some info about the Junos hosts only when the hosts are stopped.  Assuming you save your work as a project ... you'll see a SWAP file in the directory of the Junos hosts with a time stamp reflecting the time you stop the host.  The configuration for the Junos boxes IS persistant; ie ... the Junos hosts under GNS3 do save their respective configurations.


 The Junos hosts use a terminal with no cut/paste so I use the console on GNS3 to fire up putty instead; its much much more flexible.


 
In any case you may prefer to save the Junos configs manually after a few changes so the configs can be pasted in later if needed.

NOTE: you can't save your config changes via "commit" command until you specify a root password so you should do that first.


------ Junos2 ----------------------
root@Junos2# show | display set
set version 10.1R1.8
set system host-name Junos2
set system root-authentication encrypted-password "xxxxxxxxxxxxxxxxxxxxxxx"
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set interfaces em0 unit 0 family inet address 10.5.5.2/30
set interfaces em4 unit 0 family inet address 10.3.3.1/30
set interfaces lo0 unit 0 family inet address 7.7.7.7/32
set protocols ospf area 0.0.0.0 interface em4.0
set protocols ospf area 0.0.0.0 interface em0.0
set protocols ospf area 0.0.0.0 interface lo0.0

------ Junos1 ----------------------
root@Junos1# show | display set
set version 10.1R1.8
set system host-name Junos1
set system root-authentication encrypted-password "xxxxxxxxxxxxxxxxxxxxxxx"
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set interfaces em0 unit 0 family inet address 10.5.5.1/30
set interfaces em4 unit 0 family inet address 10.4.4.1/30
set interfaces lo0 unit 0 family inet address 8.8.8.8/32
set protocols ospf area 0.0.0.0 interface em4.0
set protocols ospf area 0.0.0.0 interface em0.0
set protocols ospf area 0.0.0.0 interface lo0.0

------ R1 ----------------------
R1#show run
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 10.4.4.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.3.3.2 255.255.255.252
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!



One curious difference between the two platforms is that the "All OSPF routers" multicast address 224.0.0.5 address appears in the routing table of the Junos boxes,  but the IOS box does not have a route for it.


Cheers,
                   nocleader

 

No comments:

Post a Comment