ios xr service policy

This post will cover CCNP-SP topics listed under section 3.0 of the CCNP SPEDGE blueprint.I used several resources online and my own lab to create the information and config snippets listed here.The code snippets only contain relevant information to configure the particular feature.Most examples are only worked out for use with IOS-XR or area’s where i am not familiar with on IOS-XE.3.1 Describe L2TPv3 VPNs over an IP Core network L2TPv3 offers a point-to-point VPN tunnel where layer 2 is transported over a layer 3 IP infrastructure.It is sometimes called a pseudowire and can be considered as a L2-bridge.L2TPv3 does not require MPLS, only IP connectivity between the two sites.The encapsulation on the pseudowire is configured with ‘encapsulation l2tpv3’.3.2 Describe L2VPN (AToM and VPLS) over an IP/MPLS core network L2VPN allows the Service Provider to use a single infrastructure for both IP and legacy services.L2 VPN can be used in the form of AToM and VPLS.AToM Any Transport over MPLS (AToM), is pretty equivalent to L2TPv3, with the exception that an MPLS network is required.
When configuring a pseudowire LDP sets up a targeted LDP session to the PE in question to exchange a VPN label.The encapsulation on the pseudowire is configured as ‘encapsulation mpls’.The transport label follows the normal LSP build with either LDP/MPLS TE/BGP+label path.AToM is a point-to-point solution.iqos giuglianoThe attachment circuit (AC) is the interface on the PE that is facing the customers CE.iqos store shinsaibashiThe configuration on this interface at the PE side needs to be as default as possible.iqos store shinsaibashi(Only speed/duplex settings) Protocols that can be tunneled by using AToM are: Ethernet Frame-Relay ATM HDLC PPP Anything :) (platform dependent) VPLS Virtual Private Lan Service (VPLS) offers multipoint-to-multipoint networks.da buddha vaporizer overstock
It requires an MPLS enabled network.A PE router enabled for VPLS is routing based on the ethernet MAC address.Continue reading Share this: This post will cover CCNP-SP topics listed under section 2.0 of the CCNP SPEDGE blueprint.Most examples are only worked out for use with IOS-XR.iqos amber2.1 Describe MPLS L3 VPN architecture and operations There are a lot of acronyms involved when creating MPLS L3 VPN’s.arizer extreme q review 2015This is a short overview of the different acronyms used to build a L3 VPN.ios location cityRoute Distinguisher – RD A route distinguisher is a way to distinguish a particular route from one VPN over the other VPN within the VPNv4 address-family.ios online mockup
VPNv4 carries all the prefixes and a PE needs a way to distinguish the different routes and make them unique, this is done with the RD.The RD has a few ‘formats’/types that can be used: RD type 1: a BGP 2 byte AS number, AS number 15693 and VRF 1 example format: 15693:1 RD type 2: a four byte IP address example format 1.1.1.1:1 RD type 3: a four byte BGP AS number for ASN 400000 example format: 400000:1 Continue reading Share this: This post will cover CCNP-SP topics listed under section 4.0 of the CCNP SPROUTE blueprint.ios rest service authenticationI used several resources online to find the information listed here.4.1 Implement RPL to configure a desired routing policy on IOS-XR Route Policy Language (RPL) is the way to make policies in IOS-XR.Without any policy configured IOS-XR will show the following:
RP/0/0/CPU0:R8-PE4(config)#do show ip bgp summ
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
2.2.2.2 0 1 40 40 2 0 0 00:37:27 0
89.89.89.9 0 9 40 34 2 0 0 00:31:28 0!
RP/0/0/CPU0:R8-PE4(config)# 1 2 3 4 5 /0/0/:() // 0 1 2 0 0 :: 0 0 9 2 0 0 :: <>0!
/0/0/:()# As the output displays: Some configured eBGP neighbors (under default or non-default vrfs) do not have both inbound and outbound policies configured for IPv4 Unicast address family.These neighbors will default to sending and/or receiving no routes and are marked with ‘!’This is displayed in the above output.is also displayed when only a inbound policy or only a outbound policy is applied to the neighbor.Continue reading Share this:BGP is the routing protocol that drives the Internet.Proper configuration of BGP is critical, as mistakes in BGP can result in disaster for both local and remote networks.Further, without a few additional steps to increase the security and defense of BGP, it is possible for miscreants to cause havoc with the BGP and, by extension, routing tables.This document includes a template configuration for BGP.As with all such templates, this one must be modified to fit the specific requirements of the local network(s).
It is not wise to simply cut and paste without a thorough understanding of each command.Comments are included with each command.A more thorough understanding of BGP can be obtained from: As an aside, debugging BGP issues can be difficult without an external view.To see how the rest of the Internet views your prefix announcements, use the route servers.Simply telnet to one of these route servers and issue commands such as sh ip bgp NETBLOCK or sh ip route NETBLOCK.Here is a partial list: This great collection of route servers, plus a few more, can be found by querying the following range of DNS RRs: Thanks to Mike Tancsa for making this available!:) It may also be helpful to receive the bgp-stats report, either daily or weekly.This will help you to size your maximum-prefix statements, as well as maintaining accurate bogon filters.You may subscribe to the bgp-stats report by sending a note to bgp-stats-request@lists.apnic.net with the message text of "subscribe".
We no longer list bogon blocks statically in the template, instead we suggest taking advantage of our Bogon Route Server Project, part of the Bogon Reference.This way your filters will always be current!You can read more about this at the RIPE NCC De-Bogonising New Addresses page.Our thanks to the following folks for providing input and suggestions!Feedback is both welcome and encouraged!This document is a constant work-in-progress as changes to the Cisco IOS, BGP, or corrections to this document appear.The actual commands are in BOLD text so that they stand out from the comment blocks.router bgp 64496bgp graceful-restartno synchronizationno bgp fast-external-falloverbgp log-neighbor-changesbgp maxas-limit 10network 192.0.2.0 mask 255.255.255.0neighbor 10.10.5.1 remote-as 64511neighbor 10.10.5.1 ttl-security hops 2neighbor 10.10.5.1 soft-reconfiguration inboundneighbor 10.10.5.1 description eBGP with ISP64511neighbor 10.10.5.1 password bgpwith64511neighbor 10.10.5.1 version 4neighbor 10.10.5.1 prefix-list bogons inneighbor 10.10.5.1 prefix-list announce outneighbor 10.10.5.1 maximum-prefix 250000neighbor 10.10.10.1 remote-as 64500 neighbor 10.10.10.1 ttl-security hops 2 neighbor 10.10.10.1 soft-reconfiguration inbound neighbor 10.10.10.1 description eBGP with ISP64500 neighbor 10.10.10.1 password bgpwith64500 neighbor 10.10.10.1 version 4 neighbor 10.10.10.1 prefix-list bogons in neighbor 10.10.10.1 prefix-list announce out neighbor 10.10.10.1 maximum-prefix 350000neighbor 172.17.70.2 remote-as 64496 neighbor 172.17.70.2 ttl-security hops 2 neighbor 172.17.70.2 soft-reconfiguration inboundneighbor 172.17.70.2 description iBGP with our other router !
neighbor 172.17.70.2 password bgpwith64496neighbor 172.17.70.2 update-source Loopback0 neighbor 172.17.70.2 version 4 neighbor 172.17.70.2 next-hop-self neighbor 172.17.70.2 prefix-list bogons in neighbor 172.17.70.2 maximum-prefix 250000no auto-summarymaximum-paths 2ip route 192.0.2.0 255.255.255.0 Null0 ip route 192.0.2.0 255.255.255.128 192.168.50.5 ip route 192.0.2.128 255.255.255.128 192.168.50.8 ip route 172.17.70.2 255.255.255.255 192.168.50.2access-list 185 permit tcp host 10.10.5.1 host 10.10.5.2 eq 179 access-list 185 permit tcp host 10.10.5.1 eq bgp host 10.10.5.2 access-list 185 permit tcp host 10.10.10.1 host 10.10.10.2 eq 179 access-list 185 permit tcp host 10.10.10.1 eq bgp host 10.10.10.2 access-list 185 permit tcp host 172.17.70.2 host 172.17.70.1 eq 179 access-list 185 permit tcp host 172.17.70.2 eq bgp host 172.17.70.1 access-list 185 deny tcp any any eq 179 log-inputip prefix-list announce description Our allowed routing announcements ip prefix-list announce seq 5 permit 192.0.2.0/24 ip prefix-list announce seq 10 deny 0.0.0.0/0 le 32 This IOS XS template is not a 1:1 translation of the above template, since some of the commands/functions used on IOS are not enabled by default in IOS-XR.
The order of the configuration IS important, in that policies need to be defined before the BGP process can reference them.If the BGP process is configured first, making reference to a policy which hasn't yet been parsed, it will return an error.router bgp address-family ipv4 unicast !neighbor x.x.x.xttl-security remote-as 65333 ebgp-multihop 255 description update-source Loopback999 password clear address-family ipv4 unicast maximum-prefix 100 90 route-policy drop in route-policy CYMRUBOGONS out soft-reconfiguration inbound alwaysroute-policy drop drop end-policy !route-policy CYMRUBOGONS if (community matches-every BOGONS) then set next-hop 192.0.2.1 else drop endif end-policy !community-set BOGONS 65333:888 end-set !router static address-family ipv4 unicast 192.0.2.1/32 Null0prefix-set pfx_announce_permit 192.0.2.0/24 end-setprefix-set pfx_bogons_permit 0.0.0.0/0 le 27 end-setipv4 access-list acl_185 10 permit tcp host 10.10.5.1 host 10.10.5.2 eq 179 20 permit tcp host 10.10.5.1 eq bgp host 10.10.5.2 30 permit tcp host 10.10.10.1 host 10.10.10.2 eq 179 40 permit tcp host 10.10.10.1 eq bgp host 10.10.10.2 50 permit tcp host 172.17.70.2 host 172.17.70.1 eq 179 60 permit tcp host 172.17.70.2 eq bgp host 172.17.70.1 70 deny tcp any any eq 179 log-inputroute-policy announce if (destination in pfx_announce_permit) then pass endif end-policyrouter staticaddress-family ipv4 unicast 192.0.2.0/24 Null0 192.0.2.0/25 192.168.50.5 192.0.2.128/25 192.168.50.8 172.17.70.2/32 192.168.50.2router bgp 64496bgp router-id 192.168.1.65bgp fast-external-fallover disablebgp log neighbor changesroute-policy Drop_Long_AS-Path if as-path length ge 10 then drop endif end-policyaddress-family ipv4 unicast network 192.0.2.0/24neighbor 172.17.70.2 remote-as 64496description iBGP with our other router password bgpwith64496update-source Loopback0 address-family ipv4 unicast soft-reconfiguration inbound next-hop-self maximum-prefix 250000neighbor 10.10.5.1 remote-as 64511description eBGP with ISP64511password bgpwith64511 address-family ipv4 unicastsoft-reconfiguration inboundmaximum-prefix 250000route-policy announce outneighbor 10.10.10.1 remote-as 64500 description eBGP with ISP64500 password bgpwith64500 address-family ipv4 unicast soft-reconfiguration inbound maximum-prefix 250000 route-policy announce out