Accessing the Device

Many places, you need a backstage pass to see what is going on behind the curtain, and different levels can get you access to the dressing rooms or tour bus. The following sections explore the kind of “backstage”passes Junos OS devices offer and how close you can get to what goes on behind the curtain.

Accessing your device with Telnet

The basic way of accessing a remote device is using Telnet. After you configure an IP address on the management interface (whether that interface is out-of-band or in-band), you can access the device by opening up a Telnet session to that address. For example, if you configure your device with a management interface address of 192.168.71.246, you should be able to access the device with the Telnet session:

>telnet 192.168.71.246
Trying 192.168.71.246…
telnet: connect to address 192.168.71.246: Connection refused
telnet: Unable to connect to remote host

Oops, something went wrong. Access to the device must be explicitly configured on the device (which is part of the initial setup in Chapter 6, but many people don't complete it!). More specifically, particular modes of access must be explicitly enabled. In this case, you're trying to access the device using Telnet, so you must tell the device to allow Telnet connections. To configure the Telnet service on the device, do the following:

[edit]
system {
    services {
        telnet;
    }
}

After Telnet services are enabled on the device, the Telnet request is successful:

> telnet 192.168.71.246 ...

Get Junos® OS For Dummies®, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.