Telnet Connection
These scenarios show how to configure telnet connections with an explanation of the different options.
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.20Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:29:38 UTC 2025 on ttyS0 Welcome to Teldat OSDx v4.2.2.1 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 5555Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:32:12 UTC 2025 from ::ffff:10.215.168.21 on pts/0 Welcome to Teldat OSDx v4.2.2.1 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.21Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:32:33 UTC 2025 from ::ffff:10.215.168.21 on pts/0 Welcome to Teldat OSDx v4.2.2.1 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.22Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:32:54 UTC 2025 from ::ffff:10.215.168.21 on pts/0 Welcome to Teldat OSDx v4.2.2.1 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_TESTShow output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:32:55 UTC 2025 from ::ffff:10.215.168.22 on pts/0 Welcome to Teldat OSDx v4.2.2.1 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 1Show 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.297 ms --- 10.215.168.20 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.297/0.297/0.297/0.000 ms
Step 4: Init a Telnet connection from DUT1
to IP address 10.215.168.20
:
admin@DUT1$ telnet 10.215.168.20Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:33:16 UTC 2025 from ::ffff:10.215.168.21 on pts/0 Welcome to Teldat OSDx v4.2.2.1 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 1Show 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.274 ms --- 10.215.168.23 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.274/0.274/0.274/0.000 ms
Step 7: Init a Telnet connection from DUT1
to IP address 10.215.168.23
:
admin@DUT1$ telnet 10.215.168.23Show output
Trying 10.215.168.23... Connected to 10.215.168.23. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:33:23 UTC 2025 from 10.215.168.21 on pts/0 Welcome to Teldat OSDx v4.2.2.1 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 1Show output
PING 11::2(11::2) 56 data bytes 64 bytes from 11::2: icmp_seq=1 ttl=64 time=452 ms --- 11::2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 452.263/452.263/452.263/0.000 ms
Step 4: Init a Telnet connection from DUT1
to IP address 11::2
:
admin@DUT1$ telnet 11::2Show output
Trying 11::2... Connected to 11::2. Escape character is '^]'. Linux 6.1.119 (osdx) (pts/0) osdx login: Password: Last login: Fri Jan 10 12:33:24 UTC 2025 from 10.215.168.21 on pts/0 Welcome to Teldat OSDx v4.2.2.1 This system includes free software. Contact Teldat for licenses information and source code. admin@osdx$