Site Tools


juniper

This is an old revision of the document!


Juniper

Juniper Basic config

Initial

  • Default username: root
  • Default password is empty
  1. At the initial login prompt, type: root
  2. Next type: cli
  3. edit
  4. delete chassis auto-image-upgrade
  5. set system root-authentication plain-text-password
  6. juniper1
  7. commit

New Admin User

  1. set system login user tst-admin class super-user authentication plain-text-password
  2. juniper1

New Operator User

  1. set system login user tst-operator class operator authentication plain-text-password
  2. juniper1

Commit Variations

  • commit
    • Commit immediately.
  • commit confirmed
    • Commit in 10 minutes. This is the default.
  • commit confirmed 3
    • Commit for 3 minutes, then load previous configuration unless a commit is issued within 3 minutes.
  • commit comment “Enable interface ge-0/0/0”
    • Commit with the comment
  • commit check
    • Verify syntax for pending changes. Does not commit.
  • commit and-quit
    • Commit, then quit back to operator mode

Change Screen Width

  • This will change the screen width for the current session only.
  • set cli screen-width 500
    • Change 500 to any desired value

Configure IPv4 Static Route Between Two Routers

  • Router 1/2 hostname: r1/r2
  • Link between the two routers: 172.16.1.1/24 and 172.16.1.2/24
  • Loopback IP on r2: 172.16.40.1/24
  • r1:
set system host-name r1
set interfaces et-0/0/8 unit 0 family inet address 172.16.1.1/24
set routing-options static route 172.16.40.0/24 next-hop 172.16.1.2
  • r2:
set system host-name r2
set interfaces et-0/0/8 unit 0 family inet address 172.16.1.2/24
set interfaces lo0 unit 0 family inet address 172.16.40.1/24
  • Verify routing table on r1:
root@r1> show route protocol static 172.16.40.0/24

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

172.16.40.0/24     *[Static/5] 00:00:49
                    >  to 172.16.1.2 via et-0/0/8.0
  • Ping from r1 to r2's 172.16.40.1 Loopback 0 interface
root@r1> ping 172.16.40.1 rapid
PING 172.16.40.1 (172.16.40.1) 56(84) bytes of data.
!!!!!
--- 172.16.40.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 43ms
rtt min/avg/max/mdev = 8.486/9.865/14.538/2.346 ms, ipg/ewma 10.684/12.108 ms

Configure IPv6 Static Route Between Two Routers

  • Router 1/2 hostname: r1/r2
  • Link between the two routers: 2001:db8::1/64 and 2001:db8::2/64
  • Loopback IP on r2: 2001:db8:0:40::1/64
  • r1:
set system host-name r1
set interfaces et-0/0/8 unit 0 family inet6 address 2001:db8::1/64
set routing-options rib inet6.0 static route 2001:db8:0:40::/64 next-hop 2001:db8::2
  • r2:
set system host-name r2
set interfaces et-0/0/8 unit 0 family inet6 address 2001:db8::2/64
set interfaces lo0 unit 0 family inet6 address 2001:db8:0:40::1/64
  • Verify routing table on r1:
root@r1> show route protocol static 2001:db8:0:40::/64

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

2001:db8:0:40::/64 *[Static/5] 00:04:55
                    >  to 2001:db8::2 via et-0/0/8.0
  • Ping from r1 to r2's 2001:db8:0:40::1 Loopback 0 interface
root@r1> ping 2001:db8:0:40::1 rapid
PING 2001:db8:0:40::1(2001:db8:0:40::1) 56 data bytes
!!!!!
--- 2001:db8:0:40::1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 57ms
rtt min/avg/max/mdev = 8.696/12.961/26.946/7.035 ms, ipg/ewma 14.234/19.682 ms

JNCIA-104

juniper.1752640128.txt.gz · Last modified: by adminent