CCNP Route
CCNP Route
r1(config-if)#encapsulation ppp
r#debug ppp negotiation
r2(config-if)#encapsulation ppp
r2#debug ppp negotiation
r#show ip route
Phases in PPP
1 Down:
in this phase, ppp is down, this message is seen after the link and ppp are
completely down.
2 Establishment phase:
it performed by LCP protocol
it will establish link connectivity and will perform authentication
when device receive an indication that the physical layer is up and ready
to be used.
3 Authentication phase:
PPP Authentication phase is option.
it occurs when PPP authentication is configured on link, then it will come in
authentication phase
r1(config)#interface loopback 1
r1(config-if)# ip address 1.1.1.1 255.255.255.255
r1(config)#int serial 0/0
r1(config-if)#ip unnumbered loopback 1
r2(config)#interface loopback 1
r2(config-if)# ip address 2.2.2.2 255.255.255.255
r2(config)#int serial 0/0
r2(config-if)#ip unnumbered loopback 1
r#show ip route
r1(config)#int serial 0/0
r1(config-if)#no peer neighbor-route (router will not receive route from
other router)
r1#show ip route
Note: CDPCP is reponsible to take cdp based packet from one router to another.
if CDPCP is disabled thn we cant see neighbor info in cdp cmd.
R#clear ppp all (this command can clear process of ppp but it is avaible in ios
15.0 only)
how to configure default-route toward ISP automatically
isp(config)#AAA new-model
isp(config)# AAA authentication ppp ccie group radius group tacacs+ local
isp(config)#username cisco passsword cisco
isp(config)#interface serial 0/0
isp(config-if)#ppp athentication pap ccie
cust(config)#int serial 0/0
isp(config)#interface multilink 1
isp(config)#int serial 0/0
isp(config-if)#ppp multilink group 1
isp(config)# int serial 0/1
isp(config-if)#ppp multilink group 1
isp(config)#int multilink 1
isp(config-if)#ppp authentication chap
isp(config)#username cisco password cisco
cust(config)#interface multilink 1
cust(config-if)#ppp chap hostname cisco
cust(config-if)#ppp chap password cisco
r1(config)#interface virtual-templete 1
r1(config-if)#ppp authentication chap
r1(config)#username cisco password cisco
r2(config)#interface dialer 10
r2(config-if)#ppp chap hostname cisco
r2(config-if)#ppp chap password cisco
r2(config)#interface dialer 10
r2(config-if)#encapsulation ppp
r2(config-if)#ip address negotiated / ip address dhcp
if client is not receiving ip from dhcp server than clear ppp all or flap
interface
Process switching
Fast switching
Route Processor
Switch engine
Glean adjacency: this table is responsible to have information about all directly
connected network and whenever a packet will mode to a any directly connected
network thn all those packet will be handled by glean adjacency.
Punt adjacency: this table is reponsible to handle those packet which is not
processed by cef and forworded to control plane to process these packet
security
low CPU utalization
Efficient in small network
usually used in small network
Disadvantage:
Time consuming
Not good for large network
burden on an administrator
There are three way to configure static route
By using next-hop address
by using exit interface
by using next-hop and exit interface
it will
install
both
route
into
routing
table.
bcz it
will
check
logest
prefix
match and prefix match is same. after that it will check a.d. value and a.d.
is also same.after that it will metric and static route matric is always 0 so
both route metric is also same.. so it will install both routes into routing
table. but it will not perform load-balancing
it will preffer that path which is installed first into routing table
Floating Static Routing
floating static routing than one route will be save in routing table and
second route will be same in nvram if first route goes down than second
route will automatically placed into routing table.
r(config)#ip route 0.0.0.0 0.0.0.0 12.1.1.1
r(config)#ip route 0.0.0.0 0.0.0.0 23.1.1.1 2
EIGRP
Hello
Update-RTP
Query-RTP
Reply-RTP
ACK
update:
update msg can be unicast or multicast
it used rtp protcol
contain (subnets/prefix length, delay, bandwidth, mtu, load, reliability, hop
count.)
update packets are sent between neighbor to build the topology table and
routing table.
if there is static neighborship between router than update will be unicast.
Ack:
ack msg always sent as unicast.
ack is not used in the case of hello.
it is just for rtp packets
Query:
query packets are sent by a router when successor route fail and ther is no
feasible successors in the topology table.
the routers places the route in active state and sent a query to its
neighbors for an alternetive route.
query msg are sent as a multicast 224.0.0.10
Reply:
reply packets are sent in response to query packets, the responding
router has an alternetive route.
reply packets are sent as a unicast to the querying router.
stuck in active
when a router noticess that a route failure and there is no feasible
successor that route move in active state from passive,
that router sends a query msg to its neighbor and it will wait for 3min for
reply.
if router does not receive a reply within active timer, that route will
considered stuck-in-active state
if router not receiving reply within 3min router will flap the neighborship
with its neighbor
router(config-router)#timers active-time (value)
solution of stuck in active
Disable active timers
Stub router
router(config-router)#eigrp stub
Summarization
types of table in eigrp
Neighbor table
Topology table
Routing Table
Neighbor Table
it contains information about its neighbor
r#show ip eighrp neighbor
Topology Table
it contains all destination advertise routes by neighbor routers which come
from the nbr routing table
Route Filtering
route filtering is used to filter the unused routes of a router. it is used to reduce
the size of routing table. we can perform route filtering by using 4 methods.
Standard ACL
Extended ACL
Route-map
Prefix-list
(150 +- 50)
or
r(config-router)#distance 255 12.1.1.2 0.0.0.0
(for all route from
12.1.1.2)
how to filter internal/external route
r(config-router)#distance eigrp 90 255.
r(config-router)#distance eigrp 255 170.
Load-balancing with using summarization
Redistribut static
summarization
ip default-network
network 0.0.0.0
redistribute static
router(config)# ip route 0.0.0.0 0.0.0.0 null 0
router(config-router)# redistribute static
summarization
router(config-if)# ip
summary-address
eigrp 100
0.0.0.0 0.0.0.0
IP default-network
r(config)#interface loopback 1
r(config-if)#ip address 192.168.101.1 255.255.255.0
r(config)#router eigrp 100
r(config-router)#network 192.168.101.0
r(config)# ip default-network 192.168.101.0
network 0.0.0.0
router(config)# ip route 0.0.0.0 0.0.0.0 null 0
router(config-config)#network 0.0.0.0
Redistribute rip/ospf into EIGRP
it is a track object. this feature allow you to make sure that next hop is reachable
befor that the routing table is used.
Frame-relay fullMesh
r5(config)#frame-relay switching
r5(config)#interface serial 0/0
r5(config-if)#enacapsulation frame-relay
r5(config-if)#frame-relay intf-type dce
r5(config-if)#clock rate 64000
r5(config-if)#frame-relay route 102 interface serial 0/1 201
r5(config-if)#frame-relay route 103 interface serial 0/2 301
r5(config-if)#frame-relay route 104 interface serial 0/3 401
Type1 hello
Type2 DBD
Type3 LSR
Type4 LSU
Type5 LS
database discription
Link state request
Link state update (retransmission time out 5sec)
Ack link state acknowledge
Note: OSPF header size is 32bytes but always remember that first 24bytes are
always common in all packet
OSPF Design:
it reduce the memory and cpu utalization of router
Area in ospf
Note: inter area route can not move to one area to another area without
backbone area, but external route can move one area to another area without
backbone area.
Types of Router in OSPF
Backbone router
internal router
Area Border Router
Autonomous System Boundary router
Backbone router
a router has all interfaces in Area 0
we can call it transit area
internal router
A router which has all interfacess in regular Area
ABR Area Border Router
a router which has at least one interface in backbone area and one in
regular area
we create ABR for devide database in different area
An ABR will keep multiple Area's database in memory
it can send routing information to different area but not send database
ASBR autonomous system border router
it is used to connect different routing protocol with ospf or redistribute
rip,eigrp into ospf
it is used to exchange routing information in ospf and different protocol
Requirement to form ospf neighborship
ospf version
area id
router id
network mask
hello interval
chcksum
dead interval
stub flag
priority
authentication type
authentication
designated router
backup designated router
neighbor router id
neigbor router priority
Router-id
router id is a unique ID in a area to identify the database on every router
how to set router id manually
router(config-router)#router-id 1.1.1.1
how to set router-id automatically
highest ip address of loopback interface
highest ip address of physical interface
ospf neighborship states
N(n-1)/2
NX2-3
(N-1)
router lsa contain some special bits like 'V' end point of virtual link, 'E' it is
ASBR, 'B' it is ABR.
link-id= router id, adv router-id= router-id
Type2 LSA: Network LSA
It is generated by DR router within a segment to represent itself
it is having information that how many devices are connected in that
multi-access link network in the form of router-id. it will also having the
information of DR router's ip address.
it send to all attached router between the same area
link-id= ip address of DR, adv router-id= router id of DR
Type3 LSA: summary LSA
It is generated by ABR router for sending routing information from one
area to another area
it contain information about all inter area routes
link-id=network id (prefix id), adv. router-id= router id of ABR
Type4 LSA: ASBR summary LSA
it is generated by ABR
discribe that who is doing redistribution means ASBR information
cost to reach an ASBR from ABR
Link-id= router-id of ASBR, Adv. router-id= router-id of ABR.
Type of Area
Standard Area
Stub Area
Totally Stub Area
NSSA Area
Totally NSSA Area
Totally stub:
NSSA Area
Totally NSSA
it filter LSA3,4,5
Default route will automatically generated
implement only on ABR router
allow redistribution
default route originate by ABR
router(config-router)# area 1 nssa no-summary
Standard ACL
Extended ACL
Prefix-list
Route-MAP
Area Filter List
Extended ACL
router(config)# access-list 101 deny ip host 12.1.1.2 172.16.111.0
0.0.0.255
router(config)#access-list 101 permit ip any any
router(config-router)#distribute-list 101 in
Prefix-list
router(config)#ip prefix-list ccie deny 172.16.0.0/16 ge 24 le 24
router(config)#ip prefix-list ccie permit 0.0.0.0/0 le 32
router(config-router)#distribute-list prefix ccie in
Route-Map with specific metric
route-map
summarization
(routes of
note: if we changed hello interval than dead timer will automatically get
changed. if we changed dead-interval manually than dead will not get change
automatically
how to change dead-interval in ospf
router(config-if)#ip ospf 100 dead-interval 15
how to check hello and dead timer in ospf
router# show ip ospf interface serial 0/0
note: if hello and dead timers are mismatch than neighborship will not come up
how to change reference bandwidth in ospf
router(config-router)#auto-cost reference-bandwidth 1000
router#show ip protocol
Unicast hello send and Can connect more than 2 router but have no
broadcast capability.
It elects Dr and BDR but all OSPF packets are exchange through unicast
Command:
Int fa0/0
Ip ospf network non-broadcast
Note: Not mandatory to configure static nbrship both side. we can configure only
one side
Point to multipoint :it is not default option but best choice for nbma n/w, if broadcast is
enabled otherwise it cant work
Does not select DR and BDR packet are multicast 224.0.0.5
Cant be configured manually assign nbr
Hello time 30 sec dead time 120 sec
/32 will be as entry of all routers as a host.
Point to multipoint non-broadcast:Same as point to multipoint but configure with additional non broadcast
keyword
No DR/BDR election
Unicast neighbor statement should be configured
The packet is unicast
Hello time 30sec dead time 120sec
Point to point n/w :Default for TI, point to point sub interface on frame relay
Hello time 10 sec and dead interval 40.
next hop ip is advertizing router.
No DR and BDR election.
It use multicast add -224.0.0.5
OSPF ignore subnet mask mismatch on point to point link.
7. virtual-link n/w:Virtual link is used for non backbone area that is not directly connected
with backbone area (area 0).
Manua
l nbr
define
X
X
X
Y
(NB)
Types of customers
Single multi-homed
In this we must have two ISP and customer must have atleast one
connection from each ISP.
we can't configure default route so we to configure BGP
1 OPEN msg
open msg send only once when nbrship comes up. than after BGP
will not send any open msg.
open msg will be used by BGP to exchange initial configuration
between two bgp peers which is require to form bgp neighorship
contents of bgp
version 4
router-id
own AS
Hold down timer (180sec)
2 keep-alive
After exchanging open msgs successfully between both router, router will
start to send keep-alive msgs periodically after every 60sec just to inform
its neighbor that im still awake.
if any router doesn't receive keep alive msg from its neighbor within
180sec (hold down time) than router will break down the neighborship
3 Update
update packets will be responsible to carry routes information. update
packet having some components
Path Attributes: some crieteria used by selection of best path.
prefix info/NLRI: network layer reachability information.
withdrawn routes: the prefix that goes down.
Note: if any router have multiple prefixes and all prefix attributes are
same than router will generate a single update msg
4 Notification
if peering goes down than it will generate notification msg and it will
contain the cause of problem.
optional transitive
if any bgp neighbor receive any update with optional transitive attribute and that
router dont support that attribute in that case it will not drop update, it will
accept that update and also will forword it to another neighbor after removing
that attribute.
optional non-transitive
if any bgp neighbor receive any update with optional non-transitive attribute
and that router dont support that attribute in that case it will discard that
incoming update.
2 weight:
3 Local preference
bgp will always include local preference attribute in its out going bgp
update but only for ibgp neighbor.
bydefault local preference is 100 for internal prefixes
higher will always preffered
if any router receive prefixes from ebgp nbr (0), and from IBGP nbr (100) in
that case local preference will never compaire
4 Self Advertised
self advertised prefix will be preferred
if router receiving same prefix from different nbr than it will not compaire
self advertised.
5 AS Path
AS- path list can have maximum 64 AS's
router will define that path as best which is providing destination network
after crossing less numger of AS
6 Origin code
7 MED (metric)
bedefault med IS 0, lower will always be preferred
if we redistribute any routing protocol into bgp, their metric will go along
will bgp update in the form of med.
some time metic will be 0 sometimes null.
8 external>internal
if any prefix coming from to different nbr one is ebgp and one is ibgp than
it will preferre external first
11 router-id of neighbor
lower will always preffered
if router receiving same prefix coming from two different IBGP nbr than
lower router-id of neighbor will always be preffered
note: BGP support equal cost load-balancing but up to igp cost to reach next
hope attribute must be same.
BGP will always discard all these updates which are carrying its own AS inside
there AS-path list.
if a BGP router receives anything from one ibgp neighbor than it will never
advertise that information toward any other ibgp nbr.
Rule of next-hop
Whenever any router give update to its ebgp neighbor, it will advertise
update after modifying their next-hop address.
whenever any router give update to its ibgp neighbor, it will advertise
update without modifying their next-hop address.
router(config-router)#redistribute connected
router#clear ip bgp * in
(globly)
(per
we use path attribute for path manupulation for outgoing traffic (weight,local
prefernce)
how to manupute path with using weight for all prefix
router(config-router)#neighbor 192.168.13.3 weight 1
how to manupute path selection with using weight for particular prefix
router(config)# access-list 1 permit 1.1.1.1 0.0.0.0
router(config)#route-map weight permit 10
router(config-route-map)#match ip address 1
router(config-route-map)#set weight 1
router(config)# route-map weight permit 20
router(config-router)# neighbor 192.168.13.3 route-map weight in
router# clear ip bgp * in
note: if any prefix is receiving from 2 different neighbor and both neighbor AS is
same than it will compare med. if any prefix is receiving from 2 different
neighbor and both neighbor AS is different than it will not compare med
(bydefault)
router(config-router)# bgp always-compare-med
note: we cant manupulate path selection with using path-attribut
external>internal.
link-local address
we will never required to allocate link-local address manually
device will automatially calculate these link-local address by itself
link local address can't across its broadcast domain
we can communicate within the network with using this address.
NO ARP
NO need of dhcp server (serverless auto configuration)
ND protocol
this protocol will use icmpv6 to get the mac addrss of dest/next-hop, serverless
auto conf, router-discovery, prefix discovery, duplicate address
DAD duplicate address detection
there is no gratious arp, to detect duplicate ip address it uses DAD, and this dad
will be also performed with the help of icmpv6.
router advertisement
sent periodically or in reponse of a soliitation. routers advertise their presence,
as well as provide information neccessory for a node to configure itself.
(gatgeway info,prefix info)
neighbor solicitation
it is like arp req msg, to get layer2 address of neighbor, determine whether the
neighbor is still reachable via layer2 address, to check duplicate address.
neighbor advertisement
it is like ARP response msg, to give layer 2 address.
redirect
if there is two different prefix and they will communiate via router so after
redirect msg they will communicate directly
ipv4
224.0.0.1
ipv6 ff02::1
rip
ff02::9
ospf
ff02::5/6
eigrp ff02::A
RIP:ex
we can use offset-list in rip
BGP
router(config)#ipv6 unicast-routing
router(config)#router bgp 100
(serial 0/0)
(serial 0/1)
12.1.1.3
GRE
layer 3 protocol
protocol number is 47
will directly intract with ip itself
it will add 24byte long extra information
24byte= 20byte for external ip header, 4byte will be for type and flags field.
DMVPN
NHS:
NHC:
router(config)#interface tunnel 1
router(config-if)#ip address 192.168.1.2 255.255.255.0
router(config-if)#tunnel source serial 1/0
rotuer(config-if)#tunnel destination (ip address of nhs)
rotuer(config-if)#ip nhrp network-id 10
rotuer(config-if)#ip nhrp authentication cisco123
rotuer(config-if)#ip nhrp map 192.168.1.1 (nhs tunnel ip address.)
11.1.1.10 (public ip of nhs)
rotuer(config-if)#ip nhrp nhs 192.168.1.1
rotuer#show ip nhrp
AAA (authorization)
priviledge level (default 0,1,15)
now login with test user which has privilege 15 and give the privilege to user
cisco.
r(config)#privilege exec level 5 configure terminal
r(config)#privilege configure level 5 interface
r(config)#privelege interface level 5 ip address
r(config)#privilege interface level 5 shutdown
r(config)#privilege interface level 5 no shutdown
r# show privilege
syslog server
r(config)#loggin console ?
r(config)#loggin moniter ?
snmp server
r(config)#snmp-server host 192.168.1.1 cisco@123
r(config)#snmp-server community cisco@123 rw
r(config)#snmp-server enable traps
chck in running config
r(config-if)#no snmp trap link-status