PLANET XGS3-24042 User Manual

Page 707

Advertising
background image

82-61

CE1(config-router)#network 10.1.2.0/24

CE1(config-router)#redistribute connected

CE1(config-router)#neighbor 100.100.1.1 remote-as 100

CE1(config-router)#neighbor 100.100.1.1 distribute-list 2 out

CE1(config-router)#neighbor 192.168.102.1 remote-as 100

CE1(config-router)#neighbor 192.168.102.1 default-originate

CE1(config-router)#neighbor 192.168.102.1 distribute-list 1 out

CE1(config-router)#exit

CE1(config)# ip route 100.100.1.1 255.255.255.0 100.200.1.1

CE1(config)# ip route 0.0.0.0/0 100.200.1.1

CE1(config)# exit

The configuration of PE1 is as follows:

PE1#config

PE1(config)#access-list 100 deny ip 10.1.2.0 0.0.0.255 any-destination

PE1(config)#access-list 100 deny ip 10.1.2.0 0.0.0.255 any-destination

PE1(config)#access-list 100 deny ip 10.1.3.0 0.0.0.255 any-destination

PE1(config)#access-list 100 deny ip anysource 200.200.1.0 0.0.0.255

PE1(config)#access-list 100 deny ip anysource 202.200.0.0 0.0.255.255

PE1(config)#firewall enable

PE1(config-vrf)#ip vrf VRF-A

PE1(config-vrf)#rd 100:10

PE1(config-vrf)#route-target both 100:10

PE1(config-vrf)#exit

PE1(config)#interface vlan1

PE1(config-if-Vlan1)#ip vrf forwarding VRF-A

PE1(config-if-Vlan1)#ip address 192.168.102.1 255.255.255.0

PE1(config-if-Vlan1)#exit

PE1(config)#interface vlan2

PE1(config-if-Vlan2)#ip address 100.100.1.1 255.255.255.0

PE1(config-if-Vlan2)#ip access-group 1 in

PE1(config-if-Vlan2)#exit

PE1(config)# interface vlan3

PE1(config-if-Vlan3)#label-switching

PE1(config-if-Vlan3)#enable-ldp

PE1(config-if-Vlan3)#ip address 202.200.2.2 255.255.255.0

PE1(config-if-Vlan3)#exit

PE1(config)#interface Loopback1

PE1(config)#ip address 200.200.1.2 255.255.255.255

PE1(config)#router ospf

PE1(config-router)#network 200.200.1.2/32 area 0

PE1(config-router)#network 202.200.2.0/24 area 0

PE1(config-router)#exit

Advertising
This manual is related to the following products: