Quantcast
Channel: Welcome to my imagine!
Viewing all articles
Browse latest Browse all 4

Basic Junos in GNS3

$
0
0

In the topics I will show my first run Junos in GNS3 but I will not demonstrate how to get Junos and put it to GNS3 if you want to know I think you can google it.

So now let start!

Below is topology that I will run JunOS.

JunOS

After JunOS boot it’s will require authentication to access to it. Here enter root for login name and then hit enter.

Amnesiac (ttyd0)

login: root

It’s will go to Unix Shell mode. You can try couple of Unix command.

root@% pwd
/root
root@% ls
.cshrc          .login          .profile
root@%

So if you want to do some thing with network stuff you must go into CLI mode which we can move to CLI by cli command.

root@% cli
root>

Next I am going to see version of this JunOS, default configuration and config basic interface.

  • Version
root> show version
Model: olive
JUNOS Base OS boot [12.1R1.9]
JUNOS Base OS Software Suite [12.1R1.9]
JUNOS Kernel Software Suite [12.1R1.9]
JUNOS Crypto Software Suite [12.1R1.9]
JUNOS Packet Forwarding Engine Support (M/T Common) [12.1R1.9]
JUNOS Packet Forwarding Engine Support (M20/M40) [12.1R1.9]
JUNOS Online Documentation [12.1R1.9]
JUNOS Voice Services Container package [12.1R1.9]
JUNOS Border Gateway Function package [12.1R1.9]
JUNOS Services AACL Container package [12.1R1.9]
JUNOS Services LL-PDF Container package [12.1R1.9]
JUNOS Services PTSP Container package [12.1R1.9]
JUNOS Services Stateful Firewall [12.1R1.9]
JUNOS Services NAT [12.1R1.9]
JUNOS Services Application Level Gateways [12.1R1.9]
JUNOS Services Captive Portal and Content Delivery Container package [12.1R1.9]
JUNOS Services RPM [12.1R1.9]
JUNOS Services HTTP Content Management package [12.1R1.9]
JUNOS AppId Services [12.1R1.9]
JUNOS IDP Services [12.1R1.9]
JUNOS Services Crypto [12.1R1.9]
JUNOS Services SSL [12.1R1.9]
JUNOS Services IPSec [12.1R1.9]
JUNOS Runtime Software Suite [12.1R1.9]
JUNOS Routing Software Suite [12.1R1.9]

root>
  • Default configuration
root> show configuration
## Last commit: 2012-05-11 11:54:23 UTC by root
version 12.1R1.9;
system {
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
    ## Warning: missing mandatory statement(s): 'root-authentication'
}

root>
  • Config Basic Interface

To config IP to interface we must go to configuration mode.

root> configure
Entering configuration mode

[edit]
root#

One thing you must remember here is the symbol has change from > to #. root# is mean we are in the configuration mode which we can edit and change JunOS configuration.

Next go to config IP to interface Ethernet 0 on JunOS-1 Router.

root# set interfaces em0 unit 0 family inet address 192.168.1.1/24
root# run 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     192.168.1.1/24
em1                     up    up
em2                     up    up
em3                     up    up
em4                     up    up
em5                     up    up
gre                     up    up
ipip                    up    up
irb                     up    up
lo0                     up    up
lo0.16384               up    up   inet     127.0.0.1           --> 0/0
lo0.16385               up    up   inet     128.0.0.4           --> 0/0
                                   inet6    fe80::200:ab0f:fc4d:e700
lsi                     up    up
mtun                    up    up
pimd                    up    up
pime                    up    up
pip0                    up    up
pp0                     up    up
tap                     up    up

[edit]
root#

Every time we change or edit configuration we must commit to take an effect.

root# commit
[edit]
  'system'
    Missing mandatory statement: 'root-authentication'
error: commit failed: (missing statements)

[edit]
root#

Yes I have an error. We can’t commit if we don’t have root authentication. Here I didn’t set root password yet. Now do it!!!

root# set system root-authentication plain-text-password
New password:
error: require change of case, digits or punctuation

[edit]

It’s error because I set password 123456. It must contain number, character and special code for security.

root# set system root-authentication plain-text-password
New password:
Retype new password:

[edit]
root#

Yes it’s work now. Let commit our config again.

root# commit
commit complete

[edit]
root#

Cool! it works.

Now let do it as JunOS-1 in JunOS-2 and then ping to each other. I will ping to interface in JunOS-2.

root# run ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=1.947 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=1.495 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=1.764 ms
^C
--- 192.168.1.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.495/1.735/1.947/0.186 ms

[edit]
root#

In configuration mode if we want to use ping command we have to use run before ping.

In normal mode we no need to use run.

root> ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=64.864 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=1.851 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=1.729 ms
^C
--- 192.168.1.2 ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.644/9.951/64.864/20.760 ms

root>

Now we are done for basic!!!

 

 

 


 


Viewing all articles
Browse latest Browse all 4

Trending Articles