User's Manual

Table Of Contents
489
Users Manual of CS-6306R
Switch_config_bgp# exit
Set VLAN and enable the subnet routing forwarding.
Switch_config# vlan 1,21-22,31-32
Switch_config# ip exf
48.3.4 Configuring MCE-S2
Configures VRF:
Switch#config
Switch_config# ip vrf vpn1
Switch_config_vrf_vpn1# rd 300: 1
Switch_config_vrf_vpn1# route-target export 300: 1
Switch_config_vrf_vpn1# route-target import 300: 1
Switch_config_vrf_vpn1# exit
Switch_config# ip vrf vpn2
Switch_config_vrf_vpn2# rd 300: 2
Switch_config_vrf_vpn2# route-target export 300: 2
Switch_config_vrf_vpn2# route-target import 300: 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 103.0.0.1 255.255.255.255
Switch_config_l0# exit
S2 connects S13 through the F0/1 port, S22 through the G0/3 port and PE through the G0/2 port.
Switch_config# interface gigaEthernet 0/1
Switch_config_g0/1# switchport pvid 41
Switch_config_g0/1# exit
Switch_config# interface gigaEthernet 0/3
Switch_config_g0/3# switchport pvid 46
Switch_config_g0/3# exit
Switch_config# interface gigaEthernet 0/2
Switch_config_g0/2# switchport mode trunk
Switch_config_g0/2# exit