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 U2FsdGVkX1+pMyTDeYOugkVbiKRPIThbi6HeQBTa3GE=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.233 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.233/0.233/0.233/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022652-00064aa7e14a4b04.journal (80.0K).
Deleted archived journal /run/log/journal/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022657-00064aa7e14fc272.journal (144.0K).
Vacuuming done, freed 224.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
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+pMyTDeYOugkVbiKRPIThbi6HeQBTa3GE=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.438 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.438/0.438/0.438/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-00000000000226a6-00064aa7e2e9ad90.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
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 U2FsdGVkX1+pMyTDeYOugkVbiKRPIThbi6HeQBTa3GE=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.204 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.204/0.204/0.204/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-00000000000226c6-00064aa7e474fb9e.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.

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+pMyTDeYOugkVbiKRPIThbi6HeQBTa3GE=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.206 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.206/0.206/0.206/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-00000000000226e9-00064aa7e60c9e09.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
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 U2FsdGVkX18dI9Y6RmoY7O1A/a59K0Cff7HwztmtyTx8o52IyAS/TcX7kirs2JZFNcPfaW39tS2imIN3RM1ksA==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.390 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.390/0.390/0.390/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-000000000002270a-00064aa7e792118a.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
Vacuuming done, freed 0B of archived journals from /run/log/journal.

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 U2FsdGVkX18dI9Y6RmoY7O1A/a59K0Cff7HwztmtyTx8o52IyAS/TcX7kirs2JZFNcPfaW39tS2imIN3RM1ksA==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.184 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.184/0.184/0.184/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022729-00064aa7e92e40ab.journal (104.0K).
Vacuuming done, freed 104.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
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 U2FsdGVkX18dI9Y6RmoY7O1A/a59K0Cff7HwztmtyTx8o52IyAS/TcX7kirs2JZFNcPfaW39tS2imIN3RM1ksA==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.275 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 1ms
rtt min/avg/max/mdev = 0.275/0.275/0.275/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022746-00064aa7eacae8a0.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.

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 U2FsdGVkX18dI9Y6RmoY7O1A/a59K0Cff7HwztmtyTx8o52IyAS/TcX7kirs2JZFNcPfaW39tS2imIN3RM1ksA==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.151 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.151/0.151/0.151/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022767-00064aa7ec6e2c89.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
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 U2FsdGVkX1++icQf2Jq6d6d9G6HiJH+5VgrinOgjmPA=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.234 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.234/0.234/0.234/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/null
Show 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.8.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.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.158 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.2.8.3

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

Last login: Thu Feb 12 22:22:56 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022786-00064aa7ee10e28c.journal (116.0K).
Vacuuming done, freed 116.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
Vacuuming done, freed 0B of archived journals from /run/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 U2FsdGVkX1++icQf2Jq6d6d9G6HiJH+5VgrinOgjmPA=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.197 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.197/0.197/0.197/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-00000000000227b5-00064aa7ee3e9eaa.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
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++icQf2Jq6d6d9G6HiJH+5VgrinOgjmPA=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.830 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.830/0.830/0.830/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/null
Show 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.8.3

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

Last login: Thu Feb 12 22:22:57 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.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.158 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.2.8.3

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

Last login: Thu Feb 12 22:23:26 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 /run/log/journal.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
Deleted archived journal /run/log/journal/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-00000000000227d6-00064aa7efd15dc5.journal (120.0K).
Vacuuming done, freed 120.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.

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++icQf2Jq6d6d9G6HiJH+5VgrinOgjmPA=
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.136 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.136/0.136/0.136/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022807-00064aa7f005d91d.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.

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 U2FsdGVkX1+pQjG781zLQUFwzh9R9wI1CGTGnkZUoYYcJIvbdUOihBkpMA+1DTOLvcqGM/hbLz2NPEVvapoW9A==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.288 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.288/0.288/0.288/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/null
Show 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.8.3

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

Last login: Thu Feb 12 22:23:26 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.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.158 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.2.8.3

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

Last login: Thu Feb 12 22:23:55 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-000000000002282a-00064aa7f18a5e98.journal (116.0K).
Vacuuming done, freed 116.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
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+pQjG781zLQUFwzh9R9wI1CGTGnkZUoYYcJIvbdUOihBkpMA+1DTOLvcqGM/hbLz2NPEVvapoW9A==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.199 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.199/0.199/0.199/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022854-00064aa7f1bcaad4.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
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+pQjG781zLQUFwzh9R9wI1CGTGnkZUoYYcJIvbdUOihBkpMA+1DTOLvcqGM/hbLz2NPEVvapoW9A==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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: 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/null
Show 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.8.3

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

Last login: Thu Feb 12 22:23:55 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.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.158 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.2.8.3

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

Last login: Thu Feb 12 22:24:24 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-0000000000022875-00064aa7f34dc51f.journal (116.0K).
Vacuuming done, freed 116.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
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 U2FsdGVkX1+pQjG781zLQUFwzh9R9wI1CGTGnkZUoYYcJIvbdUOihBkpMA+1DTOLvcqGM/hbLz2NPEVvapoW9A==
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$/8R3NBxPwAIK/oMX$977BKf55.r1KBQnOIeQhNudjpzTrW/kUfSpHwbrqshY4fKtQ4ZMI4qSpceLwW4QmXgArDAQpaWhhfDikdEPS/.'
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 1
Show 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.153 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.153/0.153/0.153/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/null
Show 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.1
Show 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/fef7273cfed74888920ec39438478308/system@49dfdc862bfc4c0082012cc566ec61e1-00000000000228a1-00064aa7f37dda1e.journal (108.0K).
Vacuuming done, freed 108.0K of archived journals from /run/log/journal/fef7273cfed74888920ec39438478308.
Vacuuming done, freed 0B of archived journals from /run/log/journal.
Vacuuming done, freed 0B of archived journals from /var/log/journal.