! ! DESCRIPTION: ! DENNE TEMPLATE ER FOR: ! PROVIDER EDGE ROUTEREN (PE2) ! ! SVENDEPROVEN AUGUST 2016 - ! MERCANTEC - VIBORG ! ! UARB. THOMAS HANSEN ! ! -------------------------------------------------------------------------------------- ! - INITIAL CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! hostname PE2 ! ip cef no ip domain-lookup ! username admin secret cisco enable secret CISCO ! line console 0 login local exit ! line aux 0 login local exit ! line vty 0 15 login local exit ! end write memory ! ! -------------------------------------------------------------------------------------- ! - INTERFACE CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! ip vrf DTL rd 1:1 route-target export 1:1 route-target import 1:1 ! interface FastEthernet 0/0 ip vrf forwarding DTL ip address 172.16.33.1 255.255.255.252 duplex full speed 100 no shutdown ! interface FastEthernet 0/1 ip vrf forwarding DTL ip address 172.16.33.5 255.255.255.252 duplex full speed 100 no shutdown ! interface Serial 0/0/0 ip address 172.16.22.2 255.255.255.252 no shutdown ! end write memory ! ! -------------------------------------------------------------------------------------- ! - OSPF, BGP and VRF CONFIGURATION ! -------------------------------------------------------------------------------------- ! configure terminal ! interface Loopback0 ip address 4.4.4.4 255.255.255.255 ! router ospf 2 vrf DTL redistribute bgp 3292 subnets network 172.16.33.0 0.0.0.3 area 0 network 172.16.33.4 0.0.0.3 area 0 ! router ospf 1 mpls ldp autoconfig network 4.4.4.4 0.0.0.0 area 0 network 172.16.22.0 0.0.0.3 area 0 ! router bgp 3292 bgp log-neighbor-changes neighbor 2.2.2.2 remote-as 3292 neighbor 2.2.2.2 update-source Loopback0 ! address-family vpnv4 neighbor 2.2.2.2 activate neighbor 2.2.2.2 send-community extended exit-address-family ! address-family ipv4 vrf DTL redistribute ospf 2 exit-address-family ! end write memory !