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

 

Thursday, February 23, 2012

GNS3 Vyatta host

This lab is just a very simple demonstration of a Qemu Vyatta host.

I can't seem to reliably start/stop/save any qemu host under GNS3 for some reason so I ended up spending far more time than necessary troubleshooting this issue and I've not resolved it yet.  I'll have to try another platform other than Win7-64.

The Vyatta CLI is Junos like in its look/feel.  Remember to commit your changes.



-------------- Partial configuration Vyatta host -------------

interfaces {
    ethernet eth0 {
        address 10.0.0.1/24
        duplex auto
        hw-id 52:54:00:12:34:56
        smp_affinity auto
        speed auto
    }
    loopback lo {
        address 5.5.5.5/32
    }
}
protocols {
    ospf {
        area 0 {
            network 0.0.0.0/0
        }
    }


--------- Partial configuration CiscoRouter ----------------
 
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.2 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0







Configuration Virtual PC Simulator for dynamips:










Ping OSPF neighbor from Vyatta host:


 Ping OSPF neighbor from CiscoRouter host:


Cheers,
             nocleader





Saturday, February 18, 2012

GNS3 lab router on-a-stick

GNS3 lab router on-a-stick:

Curiously, R1 shows all CDP neighbors; the spoke routers do not show any CDP neighbor.  Debugging CDP on R1shows CDP being sent and recieved out sub-interfaces.  Debugging CDP on spoke router R2 shows CDP sends but no CDP receives.



----- Hub router R1 ---------
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.2
 encapsulation dot1Q 2
 ip address 10.0.2.1 255.255.255.0
!
interface FastEthernet0/0.3
 encapsulation dot1Q 3
 ip address 10.0.3.1 255.255.255.0
!
interface FastEthernet0/0.4
 encapsulation dot1Q 4
 ip address 10.0.4.1 255.255.255.0
!
interface FastEthernet0/0.5
 encapsulation dot1Q 5
 ip address 10.0.5.1 255.255.255.0
!


----- Spoke router R2 ------------
!
interface FastEthernet0/0
 ip address 10.0.2.2 255.255.255.0
 duplex auto
 speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0



Cheers,
                   Nocleader