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 U2FsdGVkX19d2+xj1d9mhNPW7SiVzMahOYZtjZ0tBNU= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.450 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.450/0.450/0.450/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d31b-0006510800346295.journal (132.0K). Vacuuming done, freed 132.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/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 U2FsdGVkX1+iXyHHWTVfmAze0ibjFIsg151174SyjXQ= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.412 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.412/0.412/0.412/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d36a-0006510801c999f9.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /var/log/journal.
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 U2FsdGVkX19uaYx8phGMGixOEPqcEXQKjgtWXLUv5pI= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.244 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.244/0.244/0.244/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this 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/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d38a-000651080345b79f.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2.
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 U2FsdGVkX1/9a5/EXgPVI3qtDm6YQGVuG0nQdLpGKlY= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.147 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.147/0.147/0.147/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d3ad-0006510804d72da8.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /var/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 U2FsdGVkX19d+zJA9eLOGSLuUZ+BTYtSnzI+Mu0aPyuTVVZXYMrn/aZms0c2OMM51nIpxx+s1qWe1LPD2HcccA== 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.173 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.173/0.173/0.173/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this 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/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d3ce-0006510806592899.journal (92.0K). Vacuuming done, freed 92.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2.
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 U2FsdGVkX19zrUCqUhDIklwcQxCF/tGZgp3yaXC+u6XdD4Yj/tOQEDT8c8ndfi/7ZdcUw+1bqFiBgZyQ+2HCHA== 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.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: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Vacuuming done, freed 0B of archived journals from /run/log/journal. Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d3ed-0006510807e39d76.journal (92.0K). Vacuuming done, freed 92.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /var/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 U2FsdGVkX18gIGOtMJIw+Ihdmvz0mSjJ+FDCECsUtMVO8sbt+d8mM1MmhmD8G/4SNkrsoBLYfLa7XC9txSzV8A== 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.209 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.209/0.209/0.209/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d40a-000651080979a5f0.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /run/log/journal.
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 U2FsdGVkX19y1xikv0edpRd0n1+7QF/HhQmoCOWgE6Kwr0a7WKvNBestJMh2k7PwfolBAswOd9+lRCUI/vjk+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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.814 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.814/0.814/0.814/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d42b-000651080b152ea5.journal (92.0K). Vacuuming done, freed 92.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /run/log/journal.
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 U2FsdGVkX18gH7Wf231hQJ6D3GyXFvbTrrngP4t5aQk= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.217 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.217/0.217/0.217/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: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. baduser@osdx$
Step 4: Init 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 5 01:34:35 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d44a-000651080ca5c0d9.journal (104.0K). Vacuuming done, freed 104.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. 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 U2FsdGVkX19q/DP+72YWyxNSplwkK4maIePUF7ZQ/og= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.155 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.155/0.155/0.155/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d479-000651080cc908eb.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /run/log/journal. 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 U2FsdGVkX1+JQdJOkajIrjRteG2Li+ktRrN+XwMlrLg= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.359 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.359/0.359/0.359/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: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 5 01:34:36 2026 from ::ffff:127.0.0.1 baduser@osdx$
Step 4: Init 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 5 01:35:04 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d49a-000651080e563794.journal (108.0K). Vacuuming done, freed 108.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal.
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 U2FsdGVkX1+nkuFSjGp0NEZskTl/tAZVjj+h1GgDX0M= 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.128 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.128/0.128/0.128/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this 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/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d4cb-000651080e7cb3c2.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2.
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 U2FsdGVkX19EygmhRR5f+O2lO5Jc0Pzz61tEC6+DENLFleaDIhOYV9N5o1j33xAHJGosWLG+DcF73+8XdknrKg== 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.250 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.250/0.250/0.250/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: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 5 01:35:04 2026 from ::ffff:127.0.0.1 baduser@osdx$
Step 4: Init 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 5 01:35:31 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d4ee-000651080ff8e5b7.journal (104.0K). Vacuuming done, freed 104.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/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 U2FsdGVkX18KHkUHn+dkVUMp4OcLTDNV2zO6aHFPnXIAY+3pCvyhqFBah/HSWsqdatwy+TUvEcy1F7yM9FYQvw== 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.407 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.407/0.407/0.407/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this 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/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d518-00065108101b6917.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2.
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 U2FsdGVkX197URMEFaWrFCtuDUJM/fNEKjef1fP9B47zS4FC7qed/x7rQLdx84I/JEXii4TQ9+Dq/LReYsx3aw== 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.259 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.259/0.259/0.259/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: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 5 01:35:31 2026 from ::ffff:127.0.0.1 baduser@osdx$
Step 4: Init 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.9.3 This system includes free software. Contact Teldat for licenses information and source code. Last login: Tue May 5 01:35:58 UTC 2026 from 127.0.0.1 on pts/1 baduser@osdx$
Step 5: Run command system journal clear at DUT0 and expect this 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/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d539-00065108118e9a38.journal (104.0K). Vacuuming done, freed 104.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2.
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 U2FsdGVkX19JqlpFORYg7hKR8qa4sS6zoYtrXaFL0xX3E02o8+bIFc9z9k52fbcHdLGYTFxO6Ax19KjQmMjd1A== 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$6ttSMNzQ3RLSF8PW$PnlMj3Sz0g6GMfqelri63uRmNd6xw1lSbg82qnUBSuNjm5Eay.d.8hmrNZx78iKcNG0vXCOtD9KBGqJlhuejR.' set system vrf test
Step 2: Ping 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.909 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.909/0.909/0.909/0.000 ms
Note
In this case, SSH and Telnet connection will fail.
Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user baduser which is going 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: Init a Telnet connection from DUT0 to IP address 127.0.0.1 which is going to fail:
admin@DUT0$ telnet 127.0.0.1Show output
' Login incorrect' contains 'Login incorrect'
Step 5: Run command system journal clear at DUT0 and expect this output:
Show output
Vacuuming done, freed 0B of archived journals from /var/log/journal. Deleted archived journal /run/log/journal/9e2a66651dea45ed982d8152051049c2/system@a3f36fa224174fb38d5255318ea26437-000000000001d565-0006510811b5dd9e.journal (96.0K). Vacuuming done, freed 96.0K of archived journals from /run/log/journal/9e2a66651dea45ed982d8152051049c2. Vacuuming done, freed 0B of archived journals from /run/log/journal.