Source Based Routing
IOS configurations:
Assumptions
- VRF named red
- To relay VRF traffic from router to Blade use dot1Q encapsulation with id tag 10
IOS VRF Lite reference
http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/25ew/configuration/guide/vrf.html
ip vrf red
rd 200.7.7.1:10
route-target export 200.7.7.1:10
route-target import 200.7.7.1:10
interface GigabitEthernet0/1
ip address 10.7.7.7 255.255.255.0
duplex auto
speed auto
ip vrf forwarding red
interface Integrated-Service-Engine1/0
ip unnumbered GigabitEthernet0/0
service-module ip address 1.100.50.127 255.255.255.0
service-module ip default-gateway 1.100.50.126
no keepalive
interface Integrated-Service-Engine1/0.1
encapsulation dot1Q 10
ip address 10.7.8.8 255.255.255.0
ip vrf forwarding red
AXP Configuration
Assumptions for handling traffic from a VRF
- Table 111 will be used for source based routing
- Traffic flow through VLAN 10, interface eth0.10
- Packets with source address 10.7.8.9 will flow through eth0.10
Further documentations on Source Based Routing can be found at http://wwwin-eng.cisco.com/cgi-bin/edcs/edcs_info?EDCS-569985
Create Connected Route for Route Table
interface eth0.10
ip address 10.7.8.9 255.255.255.0
ip route table 111
exit
Setup Access List to match source address of eth0.10 (Standard access list permit statement matches source address defaule)
ip access-list standard 13
permit 10.7.8.9
exit
Create Route Map policy to associate source address matching
route-map SBC 55
match ip address 13
set route table 111
exit