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 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.20Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. osdx login: Password: Last login: Tue Dec 12 23:38:43 UTC 2023 on ttyS0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-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 5555Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. osdx login: Password: Last login: Tue Dec 12 23:40:19 UTC 2023 on pts/0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-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.21Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. osdx login: Password: Last login: Tue Dec 12 23:40:43 UTC 2023 on pts/0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-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.22Show output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. osdx login: Password: Last login: Tue Dec 12 23:41:08 UTC 2023 on pts/0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-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_TESTShow output
Trying 10.215.168.20... Connected to 10.215.168.20. Escape character is '^]'. osdx login: Password: Last login: Tue Dec 12 23:41:09 UTC 2023 on pts/0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-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 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.454 ms --- 10.215.168.20 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.454/0.454/0.454/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 '^]'. osdx login: Password: Last login: Tue Dec 12 23:41:33 UTC 2023 on pts/0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-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 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.458 ms --- 10.215.168.23 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.458/0.458/0.458/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 '^]'. osdx login: Password: Last login: Tue Dec 12 23:41:43 UTC 2023 on pts/0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-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 1Show output
PING 11::2(11::2) 56 data bytes 64 bytes from 11::2: icmp_seq=1 ttl=64 time=419 ms --- 11::2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 418.808/418.808/418.808/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 '^]'. osdx login: Password: Last login: Tue Dec 12 23:41:45 UTC 2023 on pts/0 Welcome to Teldat OSDx 202312121141.f6f83ac-v3.9.1.1-snapshot This system includes free software. Contact Teldat for licenses information and source code. admin@osdx$