How to Configure and Access with Telnet in JUNOS

  • by

We use Telnet for remotely accessing a device. For accessing the device first you have to configure IP address at management interface and that IP address must be reachable from your network. After reaching the IP address you are able to telnet to your desired device with the telnet command.

For example, if you configure your JUNOS device with a management interface address of, and your accessible device IP address is and within your network and you can ping to your device IP address. Its better check this first:

user@geek> ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=1.979 ms
64 bytes from icmp_seq=1 ttl=64 time=2.329 ms
64 bytes from icmp_seq=2 ttl=64 time=2.598 ms
--- ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.979/2.302/2.598/0.253 ms 

Now we can confirm the reachability of this device then enter the telnel command and you should able to access the device:

user@geek> telnet
telnet: connect to address No route to host
telnet: Unable to connect to remote host

Ohh, not connected… Accessing the device you should enable the telnet service. Mostly many people don’t configure the service when the configure the basic IP setup!! Now, 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:

user@geek# set system services telnet


user@geek# show system { services { telnet; }

After the telnet configuration now you can able to access the device:

user@geek> telnet
Connected to
Escape character is '^]'.



Then you just enter the username and password what you have already configured. If you need to know how to create user and password and make the user permission you can find this site.

Leave a Reply