Scottish Govt CE and PE template
[[HOSTNAME]] [[CIRCUIT-SPEED-SHAPE-RATE]] [[CE-PE WAN Interface (881:Fa4, 891:Gi8, 1941:Gi0/0)]] [[PE Int QOS Policy eg GI8, FA4]] [[SG-SCOTS CE-PE VLAN]] [[SG-SCOTS CE WAN IP ADDR]] [[SG-SCOTS PE IP ADDR]] [[SG-SCOTS CE LAN IP ADDR]] [[SG-SCOTS CE SUBNET MASK]] [[PE Interface eg Gi0/4]] [[PE Int QOS Policy eg GI04]] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! CE config hostname [[HOSTNAME]] vrf definition SWAN-SG-SCOTS rd 51551:2010 ! address-family ipv4 exit-address-family class-map match-any cust-ef match dscp ef match dscp cs5 ! class-map match-any cust-af4 match dscp af41 match dscp af42 match dscp af43 match dscp cs4 ! class-map match-any cust-af3 match dscp af31 match dscp af32 match dscp af33 match dscp cs3 ! class-map match-any cust-af2 match dscp af21 match dscp af22 match dscp af23 class-map match-any cust-af1 match dscp af11 match dscp af12 match dscp af13 ! ! policy-map MARK_IN class NC set ip dscp default class cust-ef set ip dscp ef class cust-af4 set ip dscp af41 class cust-af3 set ip dscp af31 class cust-af2 set ip dscp af21 class cust-af1 set ip dscp af11 class class-default set ip dscp default ! policy-map PE-QOS-OUT-PORT-[[PE Int QOS Policy eg GI8, FA4]]-PARENT class class-default shape average [[CIRCUIT-SPEED-SHAPE-RATE]] interface [[CE-PE WAN Interface (881:Fa4, 891:Gi8, 1941:Gi0/0)]] service-policy output PE-QOS-OUT-PORT-[[PE Int QOS Policy eg GI8, FA4]]-PARENT interface [[CE-PE WAN Interface (881:Fa4, 891:Gi8, 1941:Gi0/0)]].[[SG-SCOTS CE-PE VLAN]] encapsulation dot1q [[SG-SCOTS CE-PE VLAN]] description SWAN-SG-SCOTS OSPF PE-CE PRI vrf forwarding SWAN-SG-SCOTS ip address [[SG-SCOTS CE WAN IP ADDR]] 255.255.255.0 interface Gi0/0/1 description CUSTOMER LAN for CORP VRF switchport access vlan 10 no ip address spanning-tree portfast no cdp enable interface Vlan10 vrf forwarding SWAN-SG-SCOTS ip address [[SG-SCOTS CE LAN IP ADDR]] [[SG-SCOTS CE SUBNET MASK]] ip ospf cost 800 shutdown service-policy input MARK_IN router ospf 2010 vrf SWAN-SG-SCOTS router-id [[SG-SCOTS CE WAN IP ADDR]] capability vrf-lite passive-interface default no passive-interface [[CE-PE WAN Interface (881:Fa4, 891:Gi8, 1941:Gi0/0)]].[[SG-SCOTS CE-PE VLAN]] ! no passive-interface Vlan10 network [[SG-SCOTS CE WAN IP ADDR]] 0.0.0.0 area 0 network [[SG-SCOTS CE LAN IP ADDR]] 0.0.0.0 area 0 ======================================================== !! PE config class-map match-any [[HOSTNAME]]-SG-SCOTS-PARENT-SHAPER match service instance ethernet [[SG-SCOTS CE-PE VLAN]] policy-map PE-QOS-OUT-PORT-[[PE Int QOS Policy eg GI04]]-PARENT class [[HOSTNAME]]-SG-SCOTS-PARENT-SHAPER shape average [[CIRCUIT-SPEED-SHAPE-RATE]] service-policy PE-QOS-PSN-CPE-OUT interface [[PE Interface eg Gi0/4]] ! service-policy output PE-QOS-OUT-PORT-[[PE Int QOS Policy eg GI04]]-PARENT service instance [[SG-SCOTS CE-PE VLAN]] ethernet description [[HOSTNAME]] SWAN-SG-SCOTS encapsulation dot1q [[SG-SCOTS CE-PE VLAN]] rewrite ingress tag pop 1 symmetric bridge-domain 1124 router ospf 2010 vrf SWAN-SG-SCOTS router-id [[SG-SCOTS PE IP ADDR]] redistribute bgp 64630 subnets network [[SG-SCOTS PE IP ADDR]] 0.0.0.0 area 0 router bgp 64630 address-family ipv4 vrf SWAN-SG-SCOTS redistribute ospf 2010 match internal external 1 external 2 exit-address-family



HOSTNAME:
CIRCUIT-SPEED-SHAPE-RATE:
CE-PE WAN Interface (881:Fa4, 891:Gi8, 1941:Gi0/0):
PE Int QOS Policy eg GI8, FA4:
SG-SCOTS CE-PE VLAN:
SG-SCOTS CE WAN IP ADDR:
SG-SCOTS PE IP ADDR:
SG-SCOTS CE LAN IP ADDR:
SG-SCOTS CE SUBNET MASK:
PE Interface eg Gi0/4:
PE Int QOS Policy eg GI04:


Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: