36-10
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 36 Configuring VRF-lite
Configuring Per-VRF for TACACS+ Servers
.
The following example lists all the steps to configure per-VRF TACACS+:
Switch> enable
Switch# configure terminal
Switch (config)# ip vrf cisco
Switch (config-vrf)# rd 100:1
Switch (config-vrf)# exit
Switch (config)# interface Loopback0
Switch (config-if)# ip vrf forwarding cisco
Switch (config-if)# ip address 10.0.0.2 255.0.0.0
Switch (config-if)# exit
Switch (config-sg-tacacs+)# ip vrf forwarding cisco
Switch (config-sg-tacacs+)# ip tacacs source-interface Loopback0
Switch (config-sg-tacacs)# exit
For more information about configuring per-VRF for TACACS+ server, see the
Cisco IOS Per VRF for TACACS + Server, Release 12.3(7)T.
Command or Action Purpose
Step 1 Switch> enable Enables privileged EXEC mode.
Enter your password if prompted.
Step 2 Switch# configure terminal Enters global configuration mode.
Step 3 Switch(config)# ip vrf vrf-name Configures a VRF table and enters VRF configuration mode.
Step 4 Switch (config-vrf)# rd route-distinguisher Creates routing and forwarding tables for a VRF instance.
Step 5 Switch (config-vrf)# exit Exits VRF configuration mode.
Step 6 Switch (config)# interface interface-name Configures an interface and enters interface configuration
mode.
Step 7 Switch (config-if)# ip vrf forwarding vrf-name Configures a VRF for the interface.
Step 8 Switch (config-if)# ip address ip-address mask
[secondary]Sets a primary or secondary IP address for an interface.
Step 9 Switch (config-if)# exit Exits interface configuration mode.
Step 10 aaa group server tacacs+ group-name
Example:
Switch (config)# aaa group server tacacs+
tacacs1
Groups different TACACS+ server hosts into distinct lists
and distinct methods and enters server-group configuration
mode.
Step 11 server-private {ip-address | name} [nat]
[single-connection] [port port-number]
[timeout seconds] [key [0 | 7] string]
Example:
Switch (config-sg-tacacs+)# server-private
10.1.1.1 port 19 key cisco
Configures the IP address of the private TACACS+ server
for the group server.
Step 12 Switch (config-sg-tacacs+)# ip vrf forwarding
vrf-name Configures the VRF reference of a AAA TACACS+ server
group.
Step 13 Switch (config-sg-tacacs+)# ip tacacs
source-interface subinterface-name Uses the IP address of a specified interface for all outgoing
TACACS+ packets.
Step 14 Switch (config-sg-tacacs)# exit Exits server-group configuration mode.