Jncia Lab Mannual

  • View
    55

  • Download
    1

Embed Size (px)

DESCRIPTION

Juniper

Text of Jncia Lab Mannual

  • Juniper Networks Certified Internet Associate-JNCIA

    JNCIA-ER Lab Manual

    Developed by

    M. Irfan Ghauri M. Tanzeel Nasir

    C-32/1 Block-5 Gulshan-e-Iqbal, Karachi ESP Press Ph #0213-6034003 Copyrights 2011

  • 1

    LAB.LAB.LAB.LAB. LABS DESCRIPTIONLABS DESCRIPTIONLABS DESCRIPTIONLABS DESCRIPTION PAGE NO.PAGE NO.PAGE NO.PAGE NO.

    1

    Junos Basic and J-web Basics

    2

    2 Accessing the Juniper Router through Telnet/SSH/HTTP

    11

    3 Static Routing

    12

    4 Dynamic Routing 1. RIP 2. OSPF

    14 16

    5 Firewall Filtering 1. Simple Firewall Filtering 2. Advance firewall Filtering

    18 20

    6

    Port Address Translation (PAT)

    22

    7

    Implement VRRP

    24

    8 Inter-vlan routing

    26

    9 Configuring dhcp

    28

    10 MLPPP 30

    11 Password recovery

    31

    12 PPP Authentication

    33

  • 2

    Lab # 1

    Junos Basic Configuration After connecting your PC to the Console Port. LOGIN:root PASSWORD:abc123 Root @% To Enter Into Operational Mode From Unix Shell & Vice- Versa. Root @% cli Root > To Enter Into Configuration Mode. Root> configure Entering configuration mode Root # Jweb equivalent : Configuration Use Commit command to activate your changes. Root# commit To change the Host Name of Router. Root# set system host-name host Root# commit

  • 3

    Jweb equivalent : Configuration > Quick Configuration > setup Set the System Date & Time on the Router Root> set date 12:10:8 (hh:mm:ss) Root> set date 2009-10-6 (YY-MM-DD) Root# commit Jweb equivalent : Configuration > Quick Configuration > setup (set time manually) Verify the System Date & Time on the Router Root> show system uptime Current time: 2009-08-17 11:55:58 UTC Jweb equivalent : Monitor> system Display the Version Information of the Router. Root>show system software Or Root>show version Show interface summary Root> show interfaces terse Jweb equivalent : Monitor > interfaces Display the Interface Root>show interface Root>show interfaces extensive Root>show interface detail

  • 4

    Displays per-second real-time statistics for a physical interface Root> monitor interface se-0/0/2 Command prints packet headers to your terminal screen for information sent or received by the Routing Engine Root>monitor traffic interface se-0/0/2 Move connection to another port for testing purpose Root#rename interfaces fe-0/0/0 to fe-0/0/1 (in this example you will move the configuration for fe-0/0/0 to fe-0/0/1) Ruplicate an existing configuration and change a few components. Root#copy interfaces fe-0/0/0 to fe-0/0/1 (we are replicating an existing configuration so we can change a few components) Configuring the Encapsulation on a Physical Interface Root#set interfaces se-0/0/2 encapsulation ppp Show Active Configuration. Root>show configuration or Root>show system rollback 0 or Root#show Jweb equivalent: Configuration > View and Edit > View Configuration Text

  • 5

    Show Active Configuration in set display Root # Show | display set Show Active Configuration in xml format Root # Show | display xml show candidate Configuration. Root> show system rollback 2 (Temporary Configuration and becomes active when commit it) Jweb equivalent : Configuration > history Compare Rollback Configuration. Root> show system rollback 0 compare 2 Jweb equivalent : Configuration > history > compare Configure Rollback Configuration. Root#rollback 2 Root#commit Deactivate or Activate configuration. Root#deactivate Anyconfiguration For example Root#deactivate interfaces se-0/0/2 Root#show

  • 6

    interfaces{ inactive se-0/0/2{ } Shut down an Interface Root# set interfaces se-0/0/2 disable Root# delete interface se-0/0/2 disable Set Rescue Configuration. Root> request System configuration rescue save (Save Active configuration as rescue configuration) Jweb equivalent : configuration >rescue Commit Rescue Configuration. Root> rollback rescue Or (Reset CONFIG button on the front of j-series router will load and commit the rescue configuration ) Jweb equivalent : Configuration > history (Set rescue configuration) Show Rescue Configuration. Root> Show System configuration rescue Jweb equivalent : Configuration > history (View rescue configuration ) To look how many users are logged in junos Root>show system user

  • 7

    To look at files stored in Flash memory Root>show system storage To look at used tcp and udp ports Root>show system connection To look at system license Root>show system license To look at system firmware Root>show system firmware Show chassis component and temperature of cpu Root > show chassis environment Jweb equivalent : Monitor > chassis Show chassis hardware Root > show chassis hardware detail Jweb equivalent : Monitor > chassis Set the password of Root in clear text. Root# set system root-authentication plain-text-password New Password: abc123 Retype new password: abc123

  • 8

    Jweb equivalent : Configuration > Quick Configuration > setup Set the password of Root in encrypted text. Root# set system root-authentication encrypted-password abc123 Jweb equivalent : Configuration > Quick Configuration > setup To shutdown and restart the router Root> request system poweroff Root> request system reboot Jweb equivalent : Manage > Reboot To make the router on factory default setting Root # load factory-default warning: activating factory configuration [edit] Root # set system root-authentication plain-text-password New password: abc123 Retype new password: abc123 [edit] Root # commit

  • 9

    Assign the IP Address on the Ethernet Interface of the Router.

    Configuration Assign the IP Address on the Ethernet Interface of the Router. Root# set interfaces fe-0/0/0 unit 0 family inet address 10.0.0.10/8 Root#edit interface fe-0/0/0 Root#Set description "This is the Ethernet management interface" Root#top Root#commit Delete the IP Address on the Ethernet Interface of the Router. Root#delete interface fe-0/0/0 unit 0 family inet address 10.0.0.10/8 Rename the IP Address on the Ethernet Interface of the Router. Root#rename interface fe-0/0/0 unit 0 family inet address 10.0.0.10/8 to 15.0.0.10/8 Jweb equivalent : Configuration > Quick Configuration > interfaces Verifying Command Root> show interfaces Root> show interface terse Root>show interface description Root> show interfaces terse | match fe

  • 10

    Assign the IP Address on the Serial Interfaces of the Router.

    Configuration Assign the IP Address on the Serial Interface of the Router R1 (DCE). Root# set interfaces se-0/0/2 unit 0 family inet address 15.0.0.1/8 Root# set interfaces se-0/0/2 serial options clocking-mode dce Root# set interfaces se-0/0/2 serial options clock-rate 64.0khz Root# commit Jweb equivalent : Configuration > Quick Configuration > interfaces

    Assign the IP Address on the Serial Interface of the Router R2. Root# set interfaces se-0/0/2 unit 0 family inet address 15.0.0.2/8 Root# commit Jweb equivalent : Configuration > Quick Configuration > interfaces Verifying Commands Root> show interfaces Root> show interfaces terse Root> show interfaces terse | match se Root> show interfaces detail se-0/0/2

  • 11

    Lab # 2

    Accessing Router through Telnet/SSH/HTTP (Telnet/SSH/HTTP between two Routers)

    Configuration Configuring telnet on R1. Root@R1# set system services telnet Root@R1# set system services ssh Root@R1# set system login user R1 class super-user authentication plain-text-password Enter password: abc123 Retype password: abc123 Configuring telnet on R2. Root@R2# set system services telnet Root@R2#set system services ssh Root@R1# set system login user R2 class super-user authentication plain-text-password Enter password: abc123 Retype password: abc123 Verifying Commands Root> show system users Root> show configu ration Root# show system

  • 12

    Lab # 3

    STATIC Routes Diagram

    Configuration Configure the Static Route on the Router R1. Root# set routing-options static route 20.0.0.0/8 next-hop 15.0.0.2 Root# commit Jweb equivalent : Configuration > Quick Configuration > routing and protocols Configure the Static Route on the Router R2. Root# set routing-options static route 10.0.0.0/8 next-hop 15.0.0.1 Root# commit

    IP Address 15.0.0.1 Se-0/0/2

    IP Address 15.0.0.2 Se-0/0/2

    R1 WAN IP Address 10.0.0.10

    Fe-0/0/0

    IP Address 20.0.0.10 Fe-0/0/0

    Host A IP Address 10.0.0.1

    Host B IP Address 20.0.0.1

    R2

  • 13

    Jweb equivalent : Configuration > Quick Configuration > routing and protocols Verifying Command Root> show route Root>show route protocol static Root> show configuration Root> show interfaces terse

  • 14