Fallbacks
This scenario shows how to set up a fallback mechanism for RADIUS/TACACS+ through Telnet/SSH.
Test Authentication Fallback
Description
This scenario checks all the different combinations
of RADIUS/TACACS+ authentication with/without
fallback configuration through SSH and Telnet.
The user baduser is configured in the local
database, but it is not authorized in the remote
server. Therefore, if the server is reachable or
if local fallback is not specified, login should fail.
Scenario
Example 1
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa list LIST method 2 local set system aaa server tacacs SRV address 10.215.168.1 set system aaa server tacacs SRV encrypted-key U2FsdGVkX189ljY5CllXZPrpoYlWFFzU8iaXp0tx1b4= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.362 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.362/0.362/0.362/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a326-0006522e7998a4ea.journal (132.0K). Vacuuming done, freed 132.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal.
Example 2
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa server tacacs SRV address 10.215.168.1 set system aaa server tacacs SRV encrypted-key U2FsdGVkX196F/+ukDuHoG1GzSQjuBnBhWOyF3aMOp4= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.452 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.452/0.452/0.452/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a375-0006522e7b2afcce.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943.
Example 3
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP local-vrf test set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa list LIST method 2 local set system aaa server tacacs SRV address 10.215.168.1 set system aaa server tacacs SRV encrypted-key U2FsdGVkX1/1tC3+ei2rMQR1gHrZvhiCpWeoiYtXl+w= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.248 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.248/0.248/0.248/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a395-0006522e7c99b0ad.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal.
Example 4
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP local-vrf test set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa server tacacs SRV address 10.215.168.1 set system aaa server tacacs SRV encrypted-key U2FsdGVkX197NecbiXENBmdL3stPjzn6aBCAprp3o6Y= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.201 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.201/0.201/0.201/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a3b8-0006522e7e0c63eb.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal.
Example 5
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa list LIST method 2 local set system aaa server radius SRV address 10.215.168.1 set system aaa server radius SRV encrypted-key U2FsdGVkX1/JLr7w1yzZ5xrumYMgMQqOdfK3dzkxM8h/KibwSjfq7Cs0tiYdZ7yic9tSDIHe7dD4Wcu2Kr9CBg== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.263 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.263/0.263/0.263/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a3d9-0006522e7f84c997.journal (92.0K). Vacuuming done, freed 92.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943.
Example 6
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa server radius SRV address 10.215.168.1 set system aaa server radius SRV encrypted-key U2FsdGVkX18IYtxb7moDCvHtPRAVHaUOQSS6FcbkurcGsO/Z6/nkL9Z1MwbeHkfm/FrHmhc0jz2yMQThYyxvwQ== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.266 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.266/0.266/0.266/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a3f8-0006522e8106724c.journal (92.0K). Vacuuming done, freed 92.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal.
Example 7
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP local-vrf test set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa list LIST method 2 local set system aaa server radius SRV address 10.215.168.1 set system aaa server radius SRV encrypted-key U2FsdGVkX1+R/MblKLzuwkCK+csA7Bfz79/f5KxORNieYtFjF427dRrMGEI39fVM6gr7Ai5gI1FL+K/zv9/oqA== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.177 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.177/0.177/0.177/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a415-0006522e82969145.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943.
Example 8
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP local-vrf test set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa server radius SRV address 10.215.168.1 set system aaa server radius SRV encrypted-key U2FsdGVkX1/yhsGmzDM9Pd4DY5eOmwImACjt8OLfat6hvQqSllbv+VWBxzeN4ffk9xJI/APDIJx/g2uAv+oDSg== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.110 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.110/0.110/0.110/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a436-0006522e84241ba7.journal (92.0K). Vacuuming done, freed 92.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943.
Example 9
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa list LIST method 2 local set system aaa server tacacs SRV address 1.2.3.4 set system aaa server tacacs SRV encrypted-key U2FsdGVkX1+QduaZ8sU1/vxnCyGl7OBmhdQYlcABdYY= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.363 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.363/0.363/0.363/0.000 ms
Note
In this case, SSH and Telnet connection will be successful, because the tacacs server, i.e., method 1, is not reachable and; therefore, the next method will be attempted (local method) and it will allow the authentication.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts. baduser@127.0.0.1's password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. baduser@osdx$
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 :
admin@DUT0$ telnet 127.0.0.1Show output
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Linux 6.12.74 (osdx) (pts/1) osdx login: Password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 19 16:53:47 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a455-0006522e85b54ce4.journal (104.0K). Vacuuming done, freed 104.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal.
Example 10
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa server tacacs SRV address 1.2.3.4 set system aaa server tacacs SRV encrypted-key U2FsdGVkX196NUHaQauEEf13ytm+MMXyHGXu4wvlHcg= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.176 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.176/0.176/0.176/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a484-0006522e85d841ae.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /var/log/journal.
Example 11
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP local-vrf test set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa list LIST method 2 local set system aaa server tacacs SRV address 1.2.3.4 set system aaa server tacacs SRV encrypted-key U2FsdGVkX19B5nXz+z/mPs0LKFMLxicz5oWUqc8yBPY= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.968 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.968/0.968/0.968/0.000 ms
Note
In this case, SSH and Telnet connection will be successful, because the tacacs server, i.e., method 1, is not reachable and; therefore, the next method will be attempted (local method) and it will allow the authentication.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts. baduser@127.0.0.1's password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 19 16:53:47 2026 from ::ffff:127.0.0.1 baduser@osdx$
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 :
admin@DUT0$ telnet 127.0.0.1Show output
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Linux 6.12.74 (osdx) (pts/1) osdx login: Password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 19 16:54:14 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a4a5-0006522e875466de.journal (108.0K). Vacuuming done, freed 108.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943.
Example 12
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group tacacs GROUP local-vrf test set system aaa group tacacs GROUP server SRV set system aaa list LIST method 1 group tacacs GROUP set system aaa server tacacs SRV address 1.2.3.4 set system aaa server tacacs SRV encrypted-key U2FsdGVkX19hmKYLRQ0xqRaZkpFIV4Z5m2PhC8G0XAI= set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.251 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.251/0.251/0.251/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a4d6-0006522e8779c363.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943.
Example 13
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa list LIST method 2 local set system aaa server radius SRV address 1.2.3.4 set system aaa server radius SRV encrypted-key U2FsdGVkX19LUI1AYjQ7+PxFHvbgwaQ0xqDhApAimNbT3HZ3SI2YeP+dCfRESpuNwCmQ0MWlxzsc2f3PaNexQw== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.167 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.167/0.167/0.167/0.000 ms
Note
In this case, SSH and Telnet connection will be successful, because the radius server, i.e., method 1, is not reachable and; therefore, the next method will be attempted (local method) and it will allow the authentication.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts. baduser@127.0.0.1's password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 19 16:54:14 2026 from ::ffff:127.0.0.1 baduser@osdx$
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 :
admin@DUT0$ telnet 127.0.0.1Show output
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Linux 6.12.74 (osdx) (pts/1) osdx login: Password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 19 16:54:42 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a4f9-0006522e88fc9dd7.journal (104.0K). Vacuuming done, freed 104.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /run/log/journal.
Example 14
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa server radius SRV address 1.2.3.4 set system aaa server radius SRV encrypted-key U2FsdGVkX1+FQs5U/tWBlwjEM+fBK0BHyL+I2NJPsF1IJTAHz6vgKVwKee/VKdHg3xwfxREDQkkWwX1LFvni4w== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.194 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.194/0.194/0.194/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a523-0006522e8920deb1.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /run/log/journal.
Example 15
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP local-vrf test set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa list LIST method 2 local set system aaa server radius SRV address 1.2.3.4 set system aaa server radius SRV encrypted-key U2FsdGVkX1/9hHz3l5wX30TpSj180B3WwqS/2Rk769N8AJ3u4GA1DSefN42kyZsJUZPUZoaOL7QNa8PtT4gdXw== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.215 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.215/0.215/0.215/0.000 ms
Note
In this case, SSH and Telnet connection will be successful, because the radius server, i.e., method 1, is not reachable and; therefore, the next method will be attempted (local method) and it will allow the authentication.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts. baduser@127.0.0.1's password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 19 16:54:42 2026 from ::ffff:127.0.0.1 baduser@osdx$
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 :
admin@DUT0$ telnet 127.0.0.1Show output
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Linux 6.12.74 (osdx) (pts/1) osdx login: Password: Welcome to Teldat OSDx v4.2.10.0 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 19 16:55:09 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a544-0006522e8a9a534d.journal (104.0K). Vacuuming done, freed 104.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943. Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal.
Example 16
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces ethernet eth0 vrf test set service ssh aaa authentication LIST set service telnet set system aaa group radius GROUP local-vrf test set system aaa group radius GROUP server SRV set system aaa list LIST method 1 group radius GROUP set system aaa server radius SRV address 1.2.3.4 set system aaa server radius SRV encrypted-key U2FsdGVkX19x4fvSNIU4MA1ZNEHZaDUj+GW55MJiyd31GINjqt5Mb6qF6hqxCiQuSPwEGszZe3h4DuyA0FdeUQ== set system login aaa authentication LIST set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user baduser authentication encrypted-password '$6$hyBGO57Op04RvbYt$v.JfA9bqW0sdN3y4vkZmdAwpgLtIXrgyV7B3DsGhBAWIA0tzYx1WmMHFDW6ldGK//mi/8czdyKkXA9SMqzFO./' set system vrf test
Step 2: Ping the IP address 10.215.168.1 from DUT0:
admin@DUT0$ ping 10.215.168.1 vrf test count 1 size 56 timeout 1Show output
ping: Warning: source address might be selected on device other than: test PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 test: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.218 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.218/0.218/0.218/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Initiate an SSH connection from DUT0 to IP address 127.0.0.1 using user baduser which is expected to fail:
admin@DUT0$ ssh baduser@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/nullShow output
Permission denied, please try again. baduser@127.0.0.1's password:
Step 4: Initiate a Telnet connection from DUT0 to IP address 127.0.0.1 which is expected to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run the command system journal clear on DUT0 and expect the following output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/d1b141b298644f3ea5560bad25bf4943/system@0e6ef7db680445528f4f2843eca04470-000000000001a570-0006522e8abff659.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/d1b141b298644f3ea5560bad25bf4943.