Notes from the day
I am just going to dump my text notes for the day, you have no idea how long it would take to format this stuff, and hell I do it to share, not to make profit.
cli
configure system
set root-authentication plain-text-password
set host-name Junos1
set domain-name jlab.com
commit
====== Lets get ip connectivity up and running
top
edit interfaces
set em0 unit 0 family inet address 192.168.1.70/24
**note unit 0 is logical and not physical but a bit like cisco default pysical interface
makes more sense in Junos
commit
***exit into operational mode >
ping 192.168.1.11 ---- working yippee
SSH and Telnet access
just check that I cannot telnet to ssh to routers
configure services
**should be in configure system
**tried configure system but could not jump to there, had to go to top then
configure system
set services telnet
set services ssh
**LOL - was trying to connect and still got "connection refused" have forgot to commit
commit
**Got connected with SSH - used root
**The server has disconnected with an error. Server message reads:
**A protocol error occurred. Change of username or service not allowed: (Junos3,ssh-connection) -> (root,ssh-connection)
**looks like I need to setup a user
**I setup a user admin, but still got the same problem ???
edit system login
set user admin class super-user authentication plain-text-password
**ok it was someting to do with my SSH client SecureCRT , I update the login username in the properties tabe.
**now I have ssh I will no longer use the console in VMWARE.
**NTP
**I can cut and paste from SSH session now
[edit system]
root@Junos1# set time-zone Europe/London
commit
**back in operation mode
root@Junos1> set date ntp 192.168.1.11
2 Oct 22:02:23 ntpdate[2768]: step time server 192.168.1.11 offset -29177.966741 sec
**Time seems ok, but get the following errors
root@Junos1% date
Sun Oct 2 22:10:07 BST 2011
root@Junos1% cli
root@Junos1> show ntp associations
localhost: timed out, nothing received
***Request timed out
root@Junos1> show ntp status
localhost: timed out, nothing received
***Request timed out
**lets setup loop10 then call it a night
**aahh looks like loop 0 is the only loopback on junos, need to update diagram
[edit interfaces]
root@Junos1# set lo0 unit 0 family inet address 10.254.200.1/32
[edit interfaces]
root@Junos1# commit
commit complete
C:\Users\JohnMcManus>ping 10.254.200.1
Pinging 10.254.200.1 with 32 bytes of data:
Reply from 10.254.200.1: bytes=32 time=3ms TTL=64
Reply from 10.254.200.1: bytes=32 time=1ms TTL=64
Reply from 10.254.200.1: bytes=32 time=1ms TTL=64
Reply from 10.254.200.1: bytes=32 time=1ms TTL=64
Ping statistics for 10.254.200.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3ms, Average = 1ms
C:\Users\JohnMcManus>
**I setup my local gateway to route traffic to 10.254.200/24 via 192.168.1.70
What I achieved
- Setup IP address
- Setup users
- Setup SSH/Telnet
- Setup NTP -- Still to confirm fully
- Setup Loopback interface
Noteworth thoughts
Loopback 0 is the only loopback interface ? need to investigate more about getting different IP address into different routing protocols and vrf etc.
I don't really have a feel for jumping about the configuration hierarchy, not sure if this is because I am so uses to the flat system from IOS.
Also I tried a few help commands but not really finding it too intuitive at the moment
While looking for some help with NTP I cam across http://answers.oreilly.com/topic/2008-how-to-configure-a-junos-device/ which seems quite useful.
Feeling ok about jumping between operational mode and configuration mode
> or # and remembering to commit changes.
Comments
Post a Comment