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 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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 11:50:01 UTC 2024 from 10.215.168.21 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 12:04:04 UTC 2024 from ::ffff:10.215.168.21 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 12:04:25 UTC 2024 from ::ffff:10.215.168.21 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 12:04:45 UTC 2024 from ::ffff:10.215.168.21 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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 login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 12:04:46 UTC 2024 from ::ffff:10.215.168.22 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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 the server, which listen to 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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.215.168.21/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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.841 ms

--- 10.215.168.20 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.841/0.841/0.841/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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 12:05:07 UTC 2024 from ::ffff:10.215.168.21 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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

admin@osdx$

Step 5: Modify the following configuration lines 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.622 ms

--- 10.215.168.23 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.622/0.622/0.622/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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 12:05:13 UTC 2024 from 10.215.168.21 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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 address.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address '11::2/64'
set service telnet
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address '11::3/64'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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=447 ms

--- 11::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 446.948/446.948/446.948/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 '^]'.

Linux 6.1.90 (osdx) (pts/0)

osdx login:
Password:
Last login: Tue Jul 30 12:05:14 UTC 2024 from 10.215.168.21 on pts/0

Welcome to Teldat OSDx v4.1.1.2

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

admin@osdx$