Today I made a first contact with JunOS. After hearing wonders about Juniper devices, I decided to try the routers from this vendor. Until now I had only worked with it’s firewalls, making it clear that they have nothing to envy to any other.

Well, even the simple configuration of one interface took me about 2 minutes, when a Cisco had taken about 0.3 seconds to get it working. Clearly the change in the way to work and configure these devices is very different. “set blah blah”. “commit”. “request system halt”. Very new commands to get into my mind.

It will take me some time to acclimatize to this.

Update

Ok, I’ve found a fantastic command in JunOS. “help topic”. JunOS stores on the router the entire software documentation in the jdocs package. JunOS is based on FreeBSD operating system, but enhardened to run as router. So by installing different packages we can add a different set of features. We can see the list of packages running on the router with the show version command. By the way, cli is as with Cisco hierarchical, we can compose commands in the same way.

root> show version brief
 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]

So, the jdocs package is a good point when we are stuck at some point. Here is an example of the output provided.

root> help topic interfaces address
  Configuring the Interface Address
 You assign an address to an interface by specifying the address when
  configuring the protocol family. For the inet or inet6 family, configure
  the interface IP address. For the iso family, configure one or more
  addresses for the loopback interface. For the ccc, ethernet-switching,
  tcc, mpls, tnp, and vpls families, you never configure an address.
 +------------------------------------------------------------------------+
  | | The point-to-point (PPP) address is taken from the loopback |
  | Note: | interface address that has the primary attribute. When the |
  | | loopback interface is configured as an unnumbered interface, |
  | | it takes the primary address from the donor interface. |
  +------------------------------------------------------------------------+
 To assign an address to an interface, include the address statement:
  address address {
  broadcast address;
  destination address;
  destination-profile name;
  eui-64;
  preferred;
  primary;
  }
  You can include these statements at the following hierarchy levels:
  * [edit interfaces interface-name unit logical-unit-number family
  family]
  * [edit logical-systems logical-system-name interfaces interface-name
  unit logical-unit-number family family]
  In the address statement, specify the network address of the interface.
  For each address, you can optionally configure one or more of the
  following:
  * Broadcast address for the interface subnet-Specify this in the
  broadcast statement; this applies only to Ethernet interfaces, such as
  the management interface fxp0, em0, or me0 the Fast Ethernet
  interface, and the Gigabit Ethernet interface.
  * Address of the remote side of the connection (for point-to-point
  interfaces only)-Specify this in the destination statement.
  * PPP properties to the remote end-Specify this in the
  destination-profile statement. You define the profile at the [edit
  access group-profile name ppp] hierarchy level (for point-to-point
  interfaces only).
  * Whether the router or switch automatically generates the host number
  portion of interface addresses-The eui-64 statement applies only to
  interfaces that carry IPv6 traffic, in which the prefix length of the
  address is 64 bits or less, and the low-order 64 bits of the address
  are zero. This option does not apply to the loopback interface (lo0)
  because IPv6 addresses configured on the loopback interface must have
  a 128-bit prefix length.
 +-------------------------------------------------------------+
  | Note: | IPv6 is not currently supported for the QFX Series. |
  +-------------------------------------------------------------+
 * Whether this address is the preferred address-Each subnet on an
  interface has a preferred local address. If you configure more than
  one address on the same subnet, the preferred local address is chosen
  by default as the source address when you originate packets to
  destinations on the subnet.
 By default, the preferred address is the lowest-numbered address on
  the subnet. To override the default and explicitly configure the
  preferred address, include the preferred statement when configuring
  the address.
 * Whether this address is the primary address-Each interface has a
  primary local address. If an interface has more than one address, the
  primary local address is used by default as the source address when
  you send packets from an interface where the destination provides no
  information about the subnet (for example, some ping commands).
  By default, the primary address on an interface is the lowest-numbered
  non-127 (in other words, non-loopback) preferred address on the interface.
  To override the default and explicitly configure the preferred address,
  include the primary statement when configuring the address.
  * Configuring Interface IPv4 Addresses
  * Configuring Interface IPv6 Addresses
 Related-Topics
 * Configuring IPCP Options
  * Configuring Default, Primary, and Preferred Addresses and
  Interfaces