fbpx
Select Page

Juniper vs Cisco

Cisco is a market leader in networking device manufacturing domain but at the same time, Juniper is giving good competition in terms of technology with cost-effective products like routers & switches. 

Following document compare between Cisco & Juniper devices. As well as basic technology implementation on these devices like Static Routing & VLAN Setup.

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

Market Position 

According to the market survey Gartner Report who is a leader in this domain of networking devices like routers & switches. As it is clear from the diagram of quadrants that Cisco is the leader but Juniper & Arista network is also an emerging leader in this domain. Especially in Datacenter environment, Arista is providing top-notch quality switches.

juniper technologies

Products

Routers:

Cisco ISR (Integrated Service Router) Branch End Solution

Cisco ISR (Integrated Service Router) Branch End Solution

Cisco ASR (Aggregated Service Router) Edge Solution

Cisco ASR (Aggregated Service Router) Edge Solution

Cisco CSR (Cloud Service Router) Cloud Solution

Cisco CSR (Cloud Service Router) Cloud Solution

Juniper MX Series Router

Juniper MX Series Router

Cloud Series Router(vMX Series Router)

Cloud Series Router(vMX Series Router)

Cisco Switches

Access & Distribution Layer Switch – 

Cisco Cat 2960

Cisco Cat 2960

Cisco Cat 3560

Cisco Cat 3560

Cisco Cat 3850

Cisco Cat 3850

Some of the access layer switches comes with POE function and some of them doesn’t support it. POE stands for Power over Ethernet which require for devices like IP Phone & IP Camera

Distribution & Core Layer Switch- 

Cisco Cat 4500 & 6800

Cisco Cat 4500 & 6800

These switches provides fault tolerance with redundant Power Supply unit & Supervisor Engine

Juniper Switches

Access Layer Switches

EX Series

Juniper Switches

Distribution Layer Switches

QFX Series

QFX Series

Now we have looked at different devices from Cisco & Juniper Networks. We will focus now on configuration of these devices for simple technologies like Static Routing & VLAN Setup

Configuration

Cisco Static Routing:

Scenario:

juniper quest

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

How to set Hostname on Cisco 1841 Series Router

Router>enable

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname SP-RTR

SP-RTR(config)#

How to set Interface on Cisco 1841 Series Router

SP-RTR#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

SP-RTR(config)#int f0/0

SP-RTR(config-if)#ip add 192.168.1.1 255.255.255.0

SP-RTR(config-if)#no shutdown

SP-RTR(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

SP-RTR(config-if)#

SP-RTR(config)#int f0/1

SP-RTR(config-if)#ip add 12.0.0.1 255.0.0.0

SP-RTR(config-if)#no sh

SP-RTR(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

SP-RTR(config-if)#end

SP-RTR#

%SYS-5-CONFIG_I: Configured from console by console

How to check Interface Setting From L1 L2 & L3 Perspective on Cisco 1841 Series Router

SP-RTR#show ip int brief

Interface       IP-Address      OK? Method Status Protocol

FastEthernet0/0 192.168.1.1     YES manual up      up

FastEthernet0/1 12.0.0.1        YES manual up      up

Vlan1           unassigned      YES NVRAM  administratively down down

SP-RTR#

Status ⇒ L1

Protocol ⇒ L2

IP-Address ⇒ L3

How to check the routing table

SP-RTR#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP  D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area   N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP    i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area * – candidate default, U – per-user static route, o – ODR   P – periodic downloaded static route

Gateway of last resort is not set

C    12.0.0.0/8 is directly connected, FastEthernet0/1

C    192.168.1.0/24 is directly connected, FastEthernet0/0

SP-RTR#

C ⇒ Means Directly Connected Route

So we have two connected routes and we need to add third route manually or statically i.e 192.168.2.0/24

How to set static routing 

SP-RTR#conf t

Enter configuration commands, one per line. End with CNTL/Z.

SP-RTR(config)#ip route 192.168.2.0 255.255.255.0 12.0.0.2

SP-RTR(config)#end

SP-RTR#

%SYS-5-CONFIG_I: Configured from console by console

12.0.0.2 is Next Hop Router Entry

Again Check Routing Table by following command,

SP-RTR#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

Gateway of last resort is not set

 

C 12.0.0.0/8 is directly connected, FastEthernet0/1

C 192.168.1.0/24 is directly connected, FastEthernet0/0

S 192.168.2.0/24 [1/0] via 12.0.0.2

SP-RTR#

Admin Distance = 1 for Static Route

Detailed Comparison of Admin Distance is as follows

Route Cisco Juniper
Connected 0 0
Static 1 5
EIGRP 90 Not Available
OSPF 110 10
IS-IS 115 15
RIP 120 100
BGP 20 170

 

Same Scenario on Juniper VMX Series Routers

Juniper VMX Series Routers

How to set Hostname & Password on Juniper VMX Router

VMX1 (ttyd0)

login: lab

Password:— JUNOS 14.1R1.10 built 2014-06-07 09:37:07 UTC

[email protected]> configure

Entering configuration mode

[edit]

[email protected]# edit system

[edit system]

[email protected]# set host-name VMX-1

[edit system]

[email protected]# set root-authentication plain-text-password

New password:

Retype new password:

[edit system]

[email protected]#

How to check & compare config before committing it device

[email protected]# top

[edit]

[email protected]# show | compare

[edit system]

–  host-name VMX1;

+  host-name VMX-1;

[edit system root-authentication]

–   encrypted-password “$1$iiqdh9ru$CBQygri2MkpfgtgdGo8GO1”; ## SECRET-DATA

+   encrypted-password “$1$fY2/xCZd$VsuQvLviJhYXAV1AyP4k20”; ## SECRET-DATA

[edit]

[email protected]# commit

commit complete

[edit]

[email protected]#

How to set interface ip address in Juniper Devices

[email protected]# edit interfaces

[edit interfaces]

[email protected]# set ge-0/0/0 unit 0 family inet address 12.0.0.1/8

[edit interfaces]

[email protected]# set ge-0/0/1 unit 0 family inet address 192.168.1.1/24

[edit interfaces]

[email protected]# show | compare

[edit interfaces]

+ ge-0/0/0 {

+    unit 0 {

+          family inet {

+         address 12.0.0.1/8;

+          }

+    }

+ }

+ ge-0/0/1 {

+    unit 0 {

+          family inet {

+         address 192.168.1.1/24;

+          }

+    }

+ }

[edit interfaces]

[email protected]#

  • ⇒  Means this config going to be added in device
  • ⇒  Means this config going to be removed in device in ACTIVE CONFIG

When we issue command that is part of DEFAULT CONFIG and after committing it will become ACTIVE CONFIG

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

How to set Static Routing in Juniper VMX Router

[email protected]# edit routing-options

[edit routing-options]

[email protected]# set static route 192.168.2.0/24 next-hop 12.0.0.2

[edit routing-options]

[email protected]# top

[edit]

[email protected]# show | compare

[edit]

+  routing-options {

+    static {

+          route 192.168.2.0/24 next-hop 12.0.0.2;

+    }

+  }

[edit]

[email protected]#

[edit]

[email protected]# commit

commit complete

How to check Routing Table in Juniper VMX Router

[email protected]# run show route

inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)

+ = Active Route, – = Last Active, * = Both

12.0.0.0/8               *[Direct/0] 00:02:37

> via ge-0/0/0.0

12.0.0.1/32            *[Local/0] 00:02:38

Local via ge-0/0/0.0

192.168.1.0/24     *[Direct/0] 00:02:38

> via ge-0/0/1.0

192.168.1.1/32      *[Local/0] 00:02:38

Local via ge-0/0/1.0

192.168.2.0/24       *[Static/5] 00:00:07

> to 12.0.0.2 via ge-0/0/0.0

[edit]

[email protected]#

Cisco Switch Catalyst 2960 Series Config Scenario:

For VLANs Setup

Admin Distance = 1 for Static Route

Detailed Comparison of Admin Distance is as follows

Route Cisco Juniper
Connected 0 0
Static 1 5
EIGRP 90 Not Available
OSPF 110 10
IS-IS 115 15
RIP 120 100
BGP 20 170

Same Scenario on Juniper VMX Series Routers

Juniper VMX Series Routers

How to set Hostname & Password on Juniper VMX Router

VMX1 (ttyd0)

login: lab

Password:

— JUNOS 14.1R1.10 built 2014-06-07 09:37:07 UTC

[email protected]> configure

Entering configuration mode

[edit]

[email protected]# edit system

[edit system]

[email protected]# set host-name VMX-1

[edit system]

[email protected]# set root-authentication plain-text-password

New password:

Retype new password:

 

[edit system]

[email protected]#

How to check & compare config before committing it device

[email protected]# top

[edit]

[email protected]# show | compare

[edit system]

–  host-name VMX1;

+  host-name VMX-1;

[edit system root-authentication]

–   encrypted-password “$1$iiqdh9ru$CBQygri2MkpfgtgdGo8GO1”; ## SECRET-DATA

+   encrypted-password “$1$fY2/xCZd$VsuQvLviJhYXAV1AyP4k20”; ## SECRET-DATA

[edit]

[email protected]# commit

commit complete

 

[edit]

[email protected]#

How set interface ip address in Juniper Devices

[email protected]# edit interfaces

[edit interfaces]

[email protected]# set ge-0/0/0 unit 0 family inet address 12.0.0.1/8

[edit interfaces]

[email protected]# set ge-0/0/1 unit 0 family inet address 192.168.1.1/24

[edit interfaces]

[email protected]# show | compare

[edit interfaces]

+ ge-0/0/0 {

+    unit 0 {

+          family inet {

+         address 12.0.0.1/8;

+          }

+    }

+ }

+ ge-0/0/1 {

+    unit 0 {

+          family inet {

+         address 192.168.1.1/24;

+          }

+    }

+ }

[edit interfaces]

[email protected]#

 

  • ⇒  Means this config going to be added in device
  • ⇒  Means this config going to be removed in device in ACTIVE CONFIG

 

When we issue command that is part of DEFAULT CONFIG and after committing it will become ACTIVE CONFIG

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

How to set Static Routing in Juniper VMX Router

 

[email protected]# edit routing-options

[edit routing-options]

[email protected]# set static route 192.168.2.0/24 next-hop 12.0.0.2

[edit routing-options]

[email protected]# top

[edit]

[email protected]# show | compare

[edit]

+  routing-options {

+    static {

+          route 192.168.2.0/24 next-hop 12.0.0.2;

+    }

+  }

[edit]

[email protected]#

 

[edit]

[email protected]# commit

commit complete

How to check Routing Table in Juniper VMX Router

[email protected]# run show route

inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)

+ = Active Route, – = Last Active, * = Both

 

12.0.0.0/8               *[Direct/0] 00:02:37

> via ge-0/0/0.0

12.0.0.1/32             *[Local/0] 00:02:38

Local via ge-0/0/0.0

192.168.1.0/24       *[Direct/0] 00:02:38

> via ge-0/0/1.0

192.168.1.1/32       *[Local/0] 00:02:38

Local via ge-0/0/1.0

192.168.2.0/24      *[Static/5] 00:00:07

> to 12.0.0.2 via ge-0/0/0.0

[edit]

[email protected]#

Cisco Switch Catalyst 2960 Series Config Scenario:

For VLANs Setup

How to check VLAN

How to check VLAN 

Switch>enable

Switch#show vlan brief

VLAN        Name       Status     Ports

—-             ——-         ——-    ——————————-

1              default    active     Fa0/1, Fa0/2, Fa0/3, Fa0/4,Fa0/5,

Fa0/6,Fa0/7, Fa0/8, Fa0/9, Fa0/10,

Fa0/11, Fa0/12, Fa0/13, Fa0/14,

Fa0/15, Fa0/16, Fa0/17, Fa0/18,

Fa0/19, Fa0/20, Fa0/21, Fa0/22,

Fa0/23, Fa0/24

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

Switch#

How to create VLAN on Cisco 2960 Series Switch

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#name IT

Switch(config-vlan)#exit

Switch(config)#vlan 20

Switch(config-vlan)#name HR

Switch(config-vlan)#exit

Switch(config)#

Switch#

Switch#show vlan brief

VLAN     Name       Status     Ports

—-          ——-    ——-    ——————————-

1           default    active     Fa0/1, Fa0/2, Fa0/3, Fa0/4,Fa0/5,

Fa0/6,Fa0/7, Fa0/8, Fa0/9, Fa0/10,

Fa0/11, Fa0/12, Fa0/13, Fa0/14,

Fa0/15, Fa0/16, Fa0/17, Fa0/18,

Fa0/19, Fa0/20, Fa0/21, Fa0/22,

Fa0/23, Fa0/24

10   IT          active

20   HR          active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

Switch#

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

How to assign ports to interfaces on Cisco 2960 Series Switch

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int range f0/1-10

Switch(config-if-range)#switchport mode access

Switch(config-if-range)#switchport access vlan 10

Switch(config-if-range)#exit

Switch(config)#int range f0/11-20

Switch(config-if-range)#switchport mode access

Switch(config-if-range)#switchport access vlan 20

Switch(config-if-range)#

How to check VLAN on Cisco 2960 Series Switch

Switch#show vlan brief

VLAN    Name       Status     Ports

—-          ——-    ——-    ——————————-

1            default    active     Fa0/21, Fa0/22, Fa0/23, Fa0/24

10             IT          active     Fa0/1, Fa0/2, Fa0/3, Fa0/4,Fa0/5,

Fa0/6,Fa0/7, Fa0/8, Fa0/9, Fa0/10,

20           HR          active     Fa0/11, Fa0/12, Fa0/13, Fa0/14,

Fa0/15, Fa0/16, Fa0/17, Fa0/18,

Fa0/19, Fa0/20,

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

Switch#

Juniper Switch EX2200 Series Config Scenario For VLANs Setup:

Vlans in Juniper Ex Series Switches

How to set Vlans in Juniper Ex Series Switches

[email protected]>configure

[email protected]#edit vlans

[edit vlans]

[email protected]#set IT vlan-id 10

[edit vlans]

[email protected]#set HR vlan-id 20

[email protected]#top

How to set interfaces to VLANs in Juniper Ex Series Switches

[email protected]#edit interfaces

[edit interfaces]

[email protected]#set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members IT

[edit interfaces]

[email protected]#set interfaces ge-0/0/11 unit 0 family ethernet-switching vlan members HR

How to check VLANs in Juniper Ex Series Switches

[email protected]>show vlan

Name    Tag      Interfaces

default          ge-0/0/0.0,ge-0/0/1.0,ge-0/0/2.0,…

mgmt             me0.0

After Config of VLANs

[email protected]>show vlan

Name    Tag      Interfaces

default          ge-0/0/0.0,ge-0/0/2.0,…

mgmt             me0.0

IT     10      ge-0/0/1.0

HR     20      ge-0/0/11.0

 

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

 

Inter VLAN Routing on Cisco Devices

VLAN routing

For inter VLAN routing in this scenario we have to make interface fast ethernet 0/24 as TRUNK port as follows

 

SW-2960>en

SW-2960#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

SW-2960(config)#int f0/24

SW-2960(config-if)#switchport mode trunk

SW-2960(config-if)#end

SW-2960#

%SYS-5-CONFIG_I: Configured from console by console

Similarly we have to make interface fast ethernet 0/24 as TRUNK port on Cisco 3560 Series Switch (Upper Switch in diagram) as follows

SW-3560#conf t

Enter configuration commands, one per line. End with CNTL/Z.

SW-3560(config)#int f0/24

SW-3560(config-if)#switchport trunk encapsulation dot1q

SW-3560(config-if)#switchport mode trunk

SW-3560(config-if)#end

SW-3560#

After That we have to verify that the Trunk is ready or not by following command

On Cisco Switches

SW-3560#sh int trunk

Port       Mode      Encapsulation     Status      Native vlan

Fa0/24     on         802.1q                   trunking 1

Port       Vlans allowed on trunk

Fa0/24     1,10,20

Port       Vlans allowed and active in management domain

Fa0/24     1,10,20

Port       Vlans in spanning tree forwarding state and not pruned

Fa0/24     1,10,20

SW-3560#

Then we have to ensure required VLANs (in our case VLAN 10 & VLAN20) are available on L3 Switch

SW-3560#sh vlan brief

VLAN Name      Status Ports

—- ——— ——— ——————————-

1    default    active        Fa0/1, Fa0/2, Fa0/3, Fa0/4

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20

Fa0/21, Fa0/22, Fa0/23, Gig0/1

Gig0/2

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

SW-3560#

As VLANs are not ready we have to create VLANs manually as follows on L3 Switch i.e 3560 Series Cisco Switch

SW-3560>en

SW-3560#conf t

Enter configuration commands, one per line. End with CNTL/Z.

SW-3560(config)#vlan 10

SW-3560(config-vlan)#name IT

SW-3560(config-vlan)#exit

SW-3560(config)#vlan 20

SW-3560(config-vlan)#name HR

SW-3560(config-vlan)#exit

SW-3560(config)#end

SW-3560#

%SYS-5-CONFIG_I: Configured from console by console

Then we have to check VLANs again on L3 Switch i.e 3560 Series Cisco Switch

SW-3560#sh vlan brief

VLAN Name      Status Ports

—-     ——— ——— ——————————-

1        default    active       Fa0/1, Fa0/2, Fa0/3, Fa0/4

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20

Fa0/21, Fa0/22, Fa0/23, Gig0/1

Gig0/2

10   IT

20   HR

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

SW-3560#

Then we have to create SVI i.e Switch Virtual Interface as follows on L3 Switch i.e 3560 Series Cisco Switch

SW-3560#

SW-3560#conf t

Enter configuration commands, one per line. End with CNTL/Z.

SW-3560(config)#int vlan 10

SW-3560(config-if)#ip add 192.168.10.1 255.255.255.0

SW-3560(config-if)#exit

SW-3560(config)#int vlan 20

SW-3560(config-if)#ip add 192.168.20.1 255.255.255.0

SW-3560(config-if)#exit

SW-3560(config)#end

SW-3560#

%SYS-5-CONFIG_I: Configured from console by console

SW-3560#

Then we have to Verify SVI i.e Switch Virtual Interface as follows on L3 Switch i.e 3560 Series Cisco Switch

SW-3560#show ip int brief | include up

Interface IP-Address      OK? Method Status Protocol

Vlan1      192.168.1.102   YES manual up        up

Vlan10     192.168.10.1    YES manual up        up

Vlan20     192.168.20.1    YES manual up        up

Then check IP routing table as follows

SW-3560#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, Vlan1

C 192.168.10.0/24 is directly connected, Vlan10

C 192.168.20.0/24 is directly connected, Vlan20

SW-3560#

Once we have routing table ready we have done with all required config

Now set the same thing on Juniper EX2300 Series Switch we have follow, following approach,

To set inter VLAN routing by using routed VLAN interfaces (RVI), perform the following procedure:

set a layer 2 VLAN:

[email protected]# set vlans IT vlan-id 10

[email protected]# set vlans HR vlan-id 20

set a logical layer 3 VLAN interface:

[email protected]# set interfaces vlan unit 10 family inet address 192.168.10.1/24

[email protected]# set interfaces vlan unit 20 family inet address 192.168.20.1/24

Link the layer 2 VLAN to the layer 3 VLAN interface:

[email protected]00# set vlans IT l3-interface vlan.10

[email protected]# set vlans HR l3-interface vlan.20

To Check if the logical VLAN interface is up, use the following command:

[email protected]> show interfaces terse

 

vlan.10             up   up   inet 192.168.10.1/24

vlan.20             up   up   inet 192.168.20.1/24

Note: At least one port (access or trunk) with the VLAN assigned to it must be ‘up’  for the layer 3 VLAN interface to be up.

To check the routes via the logical VLAN interfaces, use the following command:

[email protected]> show route

192.168.10.0/24      *[Direct/0] 1d 01:16:45

> via vlan.10

192.168.10.1/32      *[Local/0] 1d 01:16:45

Local via vlan.10

192.168.20.0/24      *[Direct/0] 1d 01:16:45

> via vlan.20

192.168.20.1/32      *[Local/0] 1d 01:16:45

Local via vlan.20

 

Summary

 

As a network engineer or student looking for a job in networking  domain should equip themselves with these two leading technologies & in turn that will improve employability & job satisfaction.

Author:
Samir Maniyar
Networking Trainer

Tools Used

  1. Cisco Packet Tracer
  2. UNL for Juniper Lab with Juniper vMX Router with JunOS 14 Version

 

References

  1. For Juniper- JunOS for Dummies Written By Walter Goralski
  2. For Cisco- Cisco CCNA Cert Guide Written By Wendel Odum

 

For Free Demo classes Call: 7798058777

Registration Link: Click Here!

Call the Trainer and Book your free demo Class for now!!!

call icon

© Copyright 2019 | Sevenmentor Pvt Ltd.

 






Pin It on Pinterest