Cisco Cisco IOS Software Release 12.2(14)S

Page de 30
      VRF-Autoclassify
Configuration Examples for VRF-Autoclassify
11
Cisco IOS Release 12.2(27)SBA
ip vrf autoclassify source
interface Ethernet3/2
ip vrf forwarding red
ip address 2.1.1.1 255.255.255.0
ip directed-broadcast
The following example shows how to configure Fast Ethernet interface 0/0 for VRF red, and Fast 
Ethernet interface 0/1 for VRF green.
interface fastethernet0/0
ip address 1.1.1.1 255.255.255.0 secondary vrf red
interface fastethernet0/1
ip address 1.1.1.1 255.255.255.0 secondary vrf green
The following example shows a configuration of Fast Ethernet interface 0/0 that will not perform, 
because the interface is configured for VRF red and green.
interface Fast-Ethernet0/0
ip address 1.1.1.1 255.255.255.0 secondary vrf red
ip address 1.1.1.2 255.255.255.0 secondary vrf green
The following example is another example of a configuration that will not perform, because both 
interfaces have IP addresses assigned to VRF red:
interface Fast-Ethernet0/0
ip address 1.1.1.1 255.255.255.0 secondary vrf red
interface Fast-Ethernet0/1
ip address 1.1.1.2 255.255.255.0 secondary vrf red
Multiple VRFs on the Same Interface Configuration: Example
The following example shows how to configure three IP addresses (1.1.1.1/24, 1.1.2.1/24, and 
1.1.1.3/16) for Ethernet interface 3/1 in VRF red in one subnet, 1.1.0.0/16.
interface Ethernet3/1
 ip address 1.1.1.1 255.255.255.0 secondary vrf red
 ip address 1.1.2.1 255.255.255.0 secondary vrf red
 ip address 1.1.1.3 255.255.0.0 secondary vrf red
 ip address 1.1.0.0 255.255.0.0
 ip vrf autoclassify source
 duplex half