Training, Certification, and Career Topics
Training, Certification, and Career Topics

Route direct not ping

‎07-27-2018 12:31 PM

Hi.

I maked a lab on GNS3.  I uploaded two routers. The two interfaces connected directly do not ping. What may be missing?

root@R5-P> show interfaces terse
Interface Admin Link Proto Local Remote
cbp0 up up
demux0 up up
dsc up up
em0 up up
em0.0                         up                up              inet            205.5.45.5/24
em1 up up
em1.0                           up              up             inet               205.5.15.5/24
em2 up down
gre up up
ipip up up
irb up up
lo0 up up
lo0.0                            up                up           inet                  200.10.5.5 --> 0/0

 

200.10.5.5/32                 *[Direct/0] 00:16:57
                                            > via lo0.0
205.5.15.0/24                  *[Direct/0] 00:16:55
                                           > via em1.0
205.5.15.5/32                  *[Local/0] 00:16:57
                                            Local via em1.0
205.5.45.0/24                  *[Direct/0] 00:16:58
                                           > via em0.0
205.5.45.5/32                  *[Local/0] 00:16:58
                                            Local via em0.0

*******************************************************************

root@R4-PE> show interfaces terse
Interface Admin Link Proto Local Remote
cbp0 up up
demux0                                           up                             up
dsc                                                   up                              up
em0                                                  up                             up
em0.0                                               up                            up                     inet                 205.5.45.4/24
em1                                                   up                            up
em1.0                                               up                             up                    inet                    205.5.34.4/24
em2                                                  up                             up
em3 up down
em4 up down
gre up up
ipip up up
irb up up
lo0 up up
lo0.0 up up inet 200.10.4.4 --> 0/0

root@R4-PE> show route

inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

200.10.4.4/32                                              *[Direct/0] 00:59:14
                                                                       > via lo0.0
205.5.34.0/24                                             *[Direct/0] 00:59:13
                                                                       > via em1.0
205.5.34.4/32                                             *[Local/0] 00:59:15
                                                                        Local via em1.0
205.5.45.0/24                                                 *[Direct/0] 00:59:15
                                                                        > via em0.0
205.5.45.4/32                                               *[Local/0] 00:59:16
                                                                          Local via em0.0

Attachments

5 REPLIES 5
Training, Certification, and Career Topics

Re: Route direct not ping

‎07-28-2018 04:06 AM

In Junos the em interfaces are for internal OS communications only.  These cannot be connected to other devices and used for traffic.  You should have ge, xe or et interfaces for traffic ports that would connect devices.

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Training, Certification, and Career Topics

Re: Route direct not ping

‎07-30-2018 06:05 AM

Thank you Puluka.

 

So I can't run Junos  lab on GNS3?

 

There's an alternative?

Training, Certification, and Career Topics

Re: Route direct not ping

‎07-30-2018 06:26 AM

Hi Fla,

 

Basic IP communication should work, the em interfaces is just a notation in this case and not actual management ports like on a real Juniper device.  Your issue must be specific to setting up NICs in the same LAN correctly.  Have you been able to make any two links work between the routers?

 

-r.

--------------------------------------------------

If this solves your problem, please mark this post as "Accepted Solution."
Kudos are always appreciated Smiley Happy.

Training, Certification, and Career Topics

Re: Route direct not ping

‎07-30-2018 07:48 AM

 

I believe as

I believe I have configured the interfaces on the same network, as you can see below:

root@R5-P> show configuration
## Last commit: 2018-07-27 11:39:38 UTC by root
version 12.1R1.9;
system {
host-name R5-P;
root-authentication {
encrypted-password "$1$YXH1U8Jz$V9cOHjxF.ZpKKFZCZPjZB1"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 205.5.45.5/24;
}
}
}
em1 {
unit 0 {
family inet {
address 205.5.15.5/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 200.10.5.5/32;
}
}
}
}

root@R5-P>

****************************************************

root@R4-PE> show configuration
## Last commit: 2018-07-27 14:31:01 UTC by root
version 12.1R1.9;
system {
host-name R4-PE;
root-authentication {
encrypted-password "$1$1KKXFV2r$lNmzPtni.43RR2WYdx7bX/"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 205.5.45.4/24;
}
}
}
em1 {
unit 0 {
family inet {
address 205.5.34.4/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 200.10.4.4/32;
}
}
}
}

root@R4-PE>

*********************************************

root@R5-P> show interface terse

em0 up up
em0.0 up up inet 205.5.45.5/24

*********************************************

root@R4-PE> show interfaces terse
em0 up up
em0.0 up up inet 205.5.45.4/24

 

Training, Certification, and Career Topics

Re: Route direct not ping

‎07-30-2018 10:30 AM

Hi Fla,

 

You got the IP address config right, what I meant was the virtual NIC setting and connectivity that ensures GNS3 puts the em0 on R1 in the same LAN as the em0 on R2.  In VMs, we usually need to select a common LAN segment.

 

When you ping from either end, are you learning ARP for the other end on either router? CLI command to check on each router "show arp no-resolve".

 

For GNS3 settings, you can check these out:
https://www.youtube.com/watch?v=MrTIrQ8FwA4 (Setting up Junos in a virtual box on GNS3)
https://gns3.com/discussions/juniper-on-gns3

 

For other options:
vMX is a good start: http://www.juniper.net/us/en/training/jnbooks/day-one/automation-series/vmx-up-running/

A very good learning byte is available for vMX on ESXi server setup:
https://learningportal.juniper.net/juniper/user_activity_info.aspx?id=5853

vSRX too: https://www.juniper.net/us/en/dm/free-vsrx-trial/
vQFX also: http://www.juniper.net/support/downloads/?p=vqfxeval


Also, here are details of how to setup up a vMX in Type 1 and 2 hypervisors,

Type 1 - ESXi

https://www.juniper.net/techpubs/en_US/vmx16.1/topics/task/installation/vmx-installing-ova.html

Type 2 - KVM

http://www.juniper.net/techpubs/en_US/vmx16.1/information-products/pathway-pages/getting-started/get...

https://www.juniper.net/techpubs/en_US/vmx14.1/topics/task/installation/vmx-install-preparing.html

 

Hope this helps.

 

-r.

--------------------------------------------------

If this solves your problem, please mark this post as "Accepted Solution."
Kudos are always appreciated Smiley Happy.