User's Manual

Table Of Contents
485
Users Manual of CS-6306R
Set the routing protocol between CE and customer's device:
Switch_config# router ospf 101
Switch_config_ospf_101# network 11.0.0.0 255.0.0.0 area 0
Switch_config_ospf_101# exit
48.3.2 Configuring MCE-S1
Configures VRF on the Multi-VRF CE device.
Switch#config
Switch_config# ip vrf vpn1
Switch_config_vrf_vpn1# rd 100: 1
Switch_config_vrf_vpn1# route-target export 100: 1
Switch_config_vrf_vpn1# route-target import 100: 1
Switch_config_vrf_vpn1# exit
Switch_config# ip vrf vpn2
Switch_config_vrf_vpn2# rd 100: 2
Switch_config_vrf_vpn2# route-target export 100: 2
Switch_config_vrf_vpn2# route-target import 100: 2
Switch_config_vrf_vpn2# exit
Configure the loopback port and the physical port, and use the address of the loopback port as the router ID
of the BGP protocol.
Switch_config# interface loopback 0
Switch_config_l0# ip address 101.0.0.1 255.255.255.255
Switch_config_l0# exit
S1 connects S11 through the F0/1 port, S21 through the G0/4 port and PE through the G0/2 port.
Switch_config# interface gigaEthernet 0/1
Switch_config_g0/1# switchport pvid 11
Switch_config_g0/1# exit
Switch_config# interface gigaEthernet 0/4
Switch_config_g0/4# switchport pvid 15
Switch_config_g0/4# exit
Switch_config# interface gigaEthernet 0/2
Switch_config_g0/2# switchport mode trunk
Switch_config_g0/2# exit