Skip to content

Example: tacacs server

Alt text

r1

hostname r1
vrf def v1
 rd 1:1
 exit
proxy-profile p1
 vrf v1
 exit
client proxy p1
int lo0
 vrf for v1
 ipv4 addr 2.2.2.2 255.255.255.255
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.1.1 255.255.255.0
 ipv6 addr 1234::1 ffff::
 exit
aaa tacacs tac
 secret tester
 server 1.1.1.2
 exit
server telnet tel
 login authentication tac
 vrf v1
 port 666
 exit

r2

hostname r2
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.1.2 255.255.255.0
 ipv6 addr 1234::2 ffff::
 exit
aaa userlist usr
 username c password c
 username c privilege 14
 exit
server tacacs tac
 authen usr
 secret tester
 logg
 vrf v1
 exit
r2 tping 100 15 1.1.1.1 vrf v1
r2 send telnet 1.1.1.1 666 vrf v1
r2 send c
r2 send c
r2 tping 100 15 2.2.2.2 vrf v1
  1. Install ContainerLab as described here
  2. Fetch serv-tacacs file
  3. Launch ContainerLab serv-tacacs.yml topology:

   containerlab deploy --topo serv-tacacs.yml  
4. Destroy ContainerLab serv-tacacs.yml topology:

   containerlab destroy --topo serv-tacacs.yml  
5. Copy-paste configuration for each node in the lab topology

  1. Fetch or compile freeRtr rtr.jar file.
    You can grab it here
  2. Fetch serv-tacacs.tst file here
  3. Launch serv-tacacs.tst test:

   java -jar ../../rtr.jar test tester serv-tacacs path ./ temp ./ wait
4. Destroy freeRtr serv-tacacs.tst test:

   Ctrl-C (In freeRtr test window)