Telnet Connection

These scenarios show how to configure telnet connections with an explanation of the different options.

../../../_images/telnet.svg

Telnet Connection

Description

In this scenario, a telnet connection is created using the default configuration values.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.20/24
set service telnet

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24

Step 3: Init a Telnet connection from DUT1 to IP address 10.215.168.20 :

admin@DUT1$ telnet 10.215.168.20
Show output
Trying 10.215.168.20...
Connected to 10.215.168.20.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 22:52:10 UTC 2024 on ttyS0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$

Telnet Connection Specific Port

Description

In this scenario, a telnet connection is created using a specific port different than the default one, to link server and client.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.20/24
set service telnet port 5555

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24

Step 3: Init a Telnet connection from DUT1 to IP address 10.215.168.20 using port 5555:

admin@DUT1$ telnet 10.215.168.20 port 5555
Show output
Trying 10.215.168.20...
Connected to 10.215.168.20.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 23:08:03 UTC 2024 on pts/0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$

Telnet Connection Specific Address

Description

In this scenario, two telnet connections are created using the ip address defined on the client.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.20/24
set service telnet

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24
set interfaces ethernet eth0 address 10.215.168.22/24

Step 3: Init a Telnet connection from DUT1 to IP address 10.215.168.20 using local-address 10.215.168.21:

admin@DUT1$ telnet 10.215.168.20 local-address 10.215.168.21
Show output
Trying 10.215.168.20...
Connected to 10.215.168.20.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 23:08:28 UTC 2024 on pts/0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$

Step 4: Init a Telnet connection from DUT1 to IP address 10.215.168.20 using local-address 10.215.168.22:

admin@DUT1$ telnet 10.215.168.20 local-address 10.215.168.22
Show output
Trying 10.215.168.20...
Connected to 10.215.168.20.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 23:08:52 UTC 2024 on pts/0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$

Telnet Connection Specific VRF

Description

In this scenario, a telnet connection is established via the VRF specified on the client.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.20/24
set service telnet

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24
set interfaces ethernet eth0 vrf VRF_TEST
set system vrf VRF_TEST

Step 3: Init a Telnet connection from DUT1 to IP address 10.215.168.20 using vrf VRF_TEST:

admin@DUT1$ telnet 10.215.168.20 vrf VRF_TEST
Show output
Trying 10.215.168.20...
Connected to 10.215.168.20.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 23:08:53 UTC 2024 on pts/0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$

Telnet Connection Specific Listen Addresses

Description

In this scenario, two telnet connections are established, one for each address defined at server, which are dedicated to listen for requests from a client ip address.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.20/24
set service telnet listen-address 10.215.168.20

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24

Step 3: Ping IP address 10.215.168.20 from DUT1:

admin@DUT1$ ping 10.215.168.20 count 1 size 56 timeout 1
Show output
PING 10.215.168.20 (10.215.168.20) 56(84) bytes of data.
64 bytes from 10.215.168.20: icmp_seq=1 ttl=64 time=0.433 ms

--- 10.215.168.20 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.433/0.433/0.433/0.000 ms

Step 4: Init a Telnet connection from DUT1 to IP address 10.215.168.20 :

admin@DUT1$ telnet 10.215.168.20
Show output
Trying 10.215.168.20...
Connected to 10.215.168.20.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 23:09:19 UTC 2024 on pts/0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$

Step 5: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.23/24
set service telnet listen-address 10.215.168.23

Step 6: Ping IP address 10.215.168.23 from DUT1:

admin@DUT1$ ping 10.215.168.23 count 1 size 56 timeout 1
Show output
PING 10.215.168.23 (10.215.168.23) 56(84) bytes of data.
64 bytes from 10.215.168.23: icmp_seq=1 ttl=64 time=0.538 ms

--- 10.215.168.23 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.538/0.538/0.538/0.000 ms

Step 7: Init a Telnet connection from DUT1 to IP address 10.215.168.23 :

admin@DUT1$ telnet 10.215.168.23
Show output
Trying 10.215.168.23...
Connected to 10.215.168.23.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 23:09:28 UTC 2024 on pts/0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$

Telnet Connection IPv6

Description

In this scenario, a telnet connection is created by using an IPV6 address instead of an IPV4.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 11::2/64
set service telnet

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 11::3/64

Step 3: Ping IP address 11::2 from DUT1:

admin@DUT1$ ping 11::2 count 1 size 56 timeout 1
Show output
PING 11::2(11::2) 56 data bytes
64 bytes from 11::2: icmp_seq=1 ttl=64 time=426 ms

--- 11::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 426.045/426.045/426.045/0.000 ms

Step 4: Init a Telnet connection from DUT1 to IP address 11::2 :

admin@DUT1$ telnet 11::2
Show output
Trying 11::2...
Connected to 11::2.
Escape character is '^]'.
osdx login:
Password:
Last login: Wed Jan 24 23:09:30 UTC 2024 on pts/0

Welcome to Teldat OSDx 202401241058.f949bb7-v3.9.1.2-snapshot

This system includes free software.
Contact Teldat for licenses information and source code.

admin@osdx$