User's Manual

Table Of Contents
487
Users Manual of CS-6306R
Switch_config_bgp_vpn1# redistribute ospf 1
Switch_config_bgp_vpn1# neighbor 21.0.0.1 remote-as 200
Switch_config_bgp_vpn1# exit-address-family
Switch_config_bgp# address-family ipv4 vrf vpn2
Switch_config_bgp_vpn2# no synchronization
Switch_config_bgp_vpn2# redistribute ospf 2
Switch_config_bgp_vpn2# neighbor 22.0.0.1 remote-as 200
Switch_config_bgp_vpn2# exit-address-family
Switch_config_bgp# exit
Create VLAN.
Switch_config# vlan 1,11-12,21-22
Enables the forwarding of subnet route of the switch.
Switch_config# ip exf
48.3.3 Configuring PE
Set VRF on PE:
Switch#config
Switch_config# ip vrf vpn1
Switch_config_vrf_vpn1# rd 200: 1
Switch_config_vrf_vpn1# route-target export 200: 1
Switch_config_vrf_vpn1# route-target import 200: 1
Switch_config_vrf_vpn1# exit
Switch_config# ip vrf vpn2
Switch_config_vrf_vpn2# rd 200: 2
Switch_config_vrf_vpn2# route-target export 200: 2
Switch_config_vrf_vpn2# route-target import 200: 2
Switch_config_vrf_vpn2# exit
Set the loopback interface as the router identifier:
Switch_config# interface loopback 0
Switch_config_l0# ip address 102.0.0.1 255.255.255.255
Switch_config_l0# exit
Set the physical interface which connects PE and CE: G1/1 and G1/2 connect S1 and S2 respectively:
Switch_config# interface gigaEthernet 1/1
Switch_config_g1/1# switchport mode trunk