Posts tagged JUNOS

Basic JUNOS Configuration

Today we’ll go over a very basic JUNOS configuration, we will configure the hostname, user account, IP addresses and a default route. The purpose of this article is to provide a look and feel for JUNOS.

First let’s login and take care of the basics:

root> configure
[edit]
root# set system host-name Olive1
[edit]
root# set system login user colby class super-user authentication plain-text-password
New password:
Retype new password:
[edit]
root# commit and-quit
commit complete
Exiting configuration mode

This is a simple config, we enter configuration mode, we set the hostname of the router then we configure a user named “colby” in the “super-user” class. “Super-user” is a pre-defined class in JUNOS, this class has full control of the router.

Anyone familiar with IOS can see that this is pretty different. The commands all start with “set” and they can be quite a bit longer. Let’s take a look at the hierarchical view of what we just did:

system {
    host-name Olive1;
    login {
        user colby {
            uid 2000;
            class super-user;
            authentication {
                encrypted-password "$1$IKhmMCbo$XNAWMDS"; ## SECRET-DATA
            }
        }
    }
}

Definitely not what I’m used to, but not so bad. Now we’ll configure the same thing with multiple commands from the hierarchy:

JUNOS First Impressions

I’ve decided to jump head-first into JUNOS. My short(ish) term goal is to find a position with a service provider. I’ve read that Juniper owns a very significant portion of the SP core, so any exposure to JUNOS can only be a good thing (or so I hope). JUNOS is (obviously) very different from IOS. This is mainly about my experience as an IOS guy starting out with JUNOS.

Likes

  • JUNOS is modular, which means more process separation and stability.
  • JUNOS has less versions (no ipbase, advanced enterprise, etc.
  • Commit feature – This allows you to input multiple commands before making them active.
  • Rollback feature – JUNOS saves the last 50 committed configs, allowing you to revert to an old config.
  • Command completion is a little better in JUNOS, you can use spacebar or tab. It will also pick up things that IOS wouldn’t, like user-set variables in the config.