CCNP 1681997597
CCNP 1681997597
CCNP 1681997597
P
Cisco Certified Network Professional
Subneting
Before we talk about subneting we need know the decimal and Binary and Hexa .
Bin = 128 64 32 16 8 4 2 1
1 1 0 0 1 0 0 0
We calculate the subs which giving us 200 and write under it 1 for each value and 0 for others.
8 4 2 1 / 8 4 2 1
1 1 0 0 / 1 0 0 0
c / 8
Subneting Standards:
Subneting Ex:
255.255.255.0
0 0 0 0 0 0 0 0
1 1 1
1
Ayman Fouad shokry
CCNP
Ex 2:
255.255.255.0
0 0 0 0 0 0 0 0
1 1 1 1
Ex 3:
0.255.255.0
0 0 0 0 0 0 0 0
1 1
Host 2^6 – 2 = 64
Network ID:
255.255.255.0
8+ 8 + 8 + 3 =27
Ip: 192.168.0.0/27
2
Ayman Fouad shokry
CCNP
Notes:
- Every network must have N.ID and B.C and ip add between these.
- Ip address can’t use 0 cause its network id.
- Also can’t use 255 cause its broadcast for all network
192.168.0.0 192.168.0.255
Ip which between 0 -> 255 are multicast, host
3
Ayman Fouad shokry
CCNP
Summarization
VLSM: “variable, length, subnet mask”
If all network use same subnet mask that can use any protocol “RIP, OSPF, IGRP, EIGRP”.
If subnet has difference values it will cant
Use the RIP or IGRP protocols and here it need ,
Use VLSM for make that balance
Summarization:
In this case need use summarization cause there difference in the 3rd subnet and must take the right
network which start with “0, 4, 8, 16, 32, 64,128”
So can’t summarize 7 or 8 cause won’t be right but can take 4 and ignore the rest.
4
Ayman Fouad shokry
CCNP
EIGRP protocol
Features:
In the router A is like bridge to connect OSPF and EIGRP so in the show run will appear as all work with
the EIGRP and that because of the external admin distance.
- Notes:
11100000
16 8 4 2 1
16+8+4+2+1 =31
5
Ayman Fouad shokry
CCNP
- Case problem:
If working with router protocols rip or igrp in this case the 3 routers “A, B, C” will respond as they knew
the whole network 10.0.0.0 or 20.0.0.0, that because while configuring you just can configure the ip
range but not the subnet so the RIP / IGRP will make it as default “255.255.255.0”.
That mean it know the whole network not just 2 ips as its planned to be,
In this case the whole network will be down because RIP and IGRP are class full.
- Configuration:
NP configuration NA configuration
(A)#router EIGRP 11 (A)#router eigrp 11
#network 20.0.0.0 0.255.255.255 #network 20.0.0.0
#no auto-summary #no auto-summary
#network 10.0.0.4 0.0.0.3 #network 10.0.0.0
#no auto-summary That will be default subnet and appear as know all
the network.
(B)#router EIGRP 11 (B)#router eigrp 11
#network 10.0.0.4 0.0.0.3 #network 10.0.0.0
#no auto-summary #no auto-summary
#network 10.0.0.8 0.0.0.3 #network 10.0.0.0
#no auto-summary It will make the whole network down because
router can’t have 2 ports with same network.
- Notes:
Eigrp is classless and that mean it understand both specific and normal default.
NA configuration for this case will ruin it totally.
6
Ayman Fouad shokry
CCNP
- Configuration:
7
Ayman Fouad shokry
CCNP
Notes:
Network statement:
Eigrp summarization:
- Standard very important:
Null mean in eigrp specially mean the problem is summary and must stop the auto summary.
Configuration:
1 neighbor table
Sent hello message 224.0.0.10 for check the eigrp around it.
Take database from neighbor then choose the best 2 routes “successor and feasible “and send it to
routing table.
3 routing table
Successor routes.
8
Ayman Fouad shokry
CCNP
Notes:
Hello message features: must eigrp has same AS, authentication, port works, and subnet.
Sometimes in special cases in eigrp only can get 2 successor routes when they has same equal matrices.
9
Ayman Fouad shokry
CCNP
Eigrp terminology
1) Passive:
2) Active:
3) Successor route:
Best route.
4) Feasible route:
10
Ayman Fouad shokry
CCNP
- Notes:
If happen and get 2 successor routes and it will going to appear in topology as 2 successor routes and no
feasible.
If got active on line then must check the router distention line or protocols.
11
Ayman Fouad shokry
CCNP
Load balance
- Standard:
Configuration:
#variance 2
#maximum-paths 3
Now router A know any network and when router C, B ask A it will lead them to internet.
12
Ayman Fouad shokry
CCNP
eigrp Stub:
And only send connected and static and default, summary router.
Configuration :
#network x x x x x x x x
#eigrp stub
“Non broadcast multi access “and it work with frame relay, Mpls
Protocols. But it will can’t connect still as its not broadcasting and it’s a clouding so must buy VC “virtual
connection “.
Now have 2 options 1st is buy VC for every router and is very expensive and 2nd is make one branch is
main and responsible to make others connect by him.
Then there no more use for transferring routers to others cause simply router B not neighbor to router C
and must have router A as middle man and if connection lost with router A then will lose connection
with the rest of them.
13
Ayman Fouad shokry
CCNP
Eigrp authentication:
Is when have line want protect the routing table and configuration from some spy or hacker and keep
details re saved.
Configuration:
(A)#int s0/0
#ip authentication mode eigrp 11 md5
#ip authentication key-chain 11 “ pw”
#end
Notes:
If you re new in firm or administrator left you must change pw from s0/0, so/1
14
Ayman Fouad shokry
CCNP
Redistribute
(C)# Redistribute protocol, metric, subnet, tag, metric type 1, 2, match 1external 2internal
15
Ayman Fouad shokry
CCNP
16
Ayman Fouad shokry
CCNP
- Notes
The summary of loopback will stop at last port use eigrp incase use rip only cause it doesn’t support
VLSM or summarization so must use rip version 2
17
Ayman Fouad shokry
CCNP
OSPF
Opsf features:
Is an IGP
1) Support VLSM 2) support summarization 3) send only updates 4) send updates immediately
Load balance
How it work?
It build 3 tables
1) Neighbor :
2) Topology “database “:
With LSA it enter the neighbor table and with spf it choose the best route and send it to routing table.
3) Routing table:
Best route.
18
Ayman Fouad shokry
CCNP
OSPF area
- Notes:
Ospf summarization work only 2 routers type ABR, ASBR.
In CCNA was can make in 1 router 2 OSPF to connect it and it will totally wrong.
P.ID is related id with router only.
- Configuration:
(A)#router ospf 30
ASBR1#router ospf 33
19
Ayman Fouad shokry
CCNP
Router id process:
1 Router id.
2 2 highest loopback address.
3 Highest logical address “sub interface”.
4 Highest physical interface.
#router ospf 11
#router-id 1.1.1.1
- Virtual link:
20
Ayman Fouad shokry
CCNP
First must check which ABR routers connected to area 12 in the figure is ABR 1 and ABR2 then give them
routers ID.
(ABR1)#router ospf 1
#virtual-link 4.4.4.4
(ABR2)#router ospf 33
#virtual-link 3.3.3.3
- Configuration:
21
Ayman Fouad shokry
CCNP
(R12)#int s0/1
#ip add 90.0.0.2 255.0.0.0
#no shut
#router eigrp 20
#network 90.0.0.0 0.0.0.255
#no auto-summary
22
Ayman Fouad shokry
CCNP
1- Point to point:
Router A has 1 neighbor is B when want send update to router C it won’t have any problem cause it will
be unicast to router B then unicast to router C.
2- NMBA area:
Is cloud area use multicast when router D want send update or receive update it will pretend as it’s the
owner of updates and then it to others and other do the same and that will make network be down.
3- Broadcast area:
DR/BDR
Designated router / backup designated router
Responsible for have 1 router work as leader take updates and pass it to rest of routers and not allow
any of them send direct.
Backup is when DR is down the BDR start work automatically in place of the DR
23
Ayman Fouad shokry
CCNP
DR /BDR election:
- Priority 1-255
- Dr1st highest priority
- Dr 2nd highest router id
- For choose manually must use configurations.
- Then new DR/BDR will start work after that.
Configurations:
#int s0/0
#ip ospf priority 20
#int s0/1
Ip ospf priority 15
Case:
If router A is down and it’s the DR router B, C and D will can’t be connected
(B)#int s0/0
- Notes:
If made manual election it won’t take the election from the current DR/BDR and wait until next election
period time.
24
Ayman Fouad shokry
CCNP
1) ABR:
#router ospf 15
2) ASBR:
#router ospf 15
25
Ayman Fouad shokry
CCNP
LSA 1:
It mean that get the ip from router in same area but not connected.
LSA 2:
LSA 3:
LSA 4:
LSA 5:
It get it when other routers have other protocol in area behind it.
LSA 6:
Generated when have stub and need access for get the database.
26
Ayman Fouad shokry
CCNP
Area Types
1) Stub:
Accept all LSA 1, 2, 3 and 4 exclude 5 for make bank central its stuff only.
2) Totally stub:
Accept only LSA, and 2 and exclude all others and get information from only current area and nothing
else.
As in area 2 not want get from area 1 any data base so it will
Use totally stub then new area come “eigrp “and want fuse it with area 2
But it will be LSA 5 because it’s ASBR and problem is LSA 5 is excluded by stub and totally stub.
So will use LSA 7 because it can exclude specific area and allow another same like LSA 5 but it be away
from LSA 1, 2 exclusion.
27
Ayman Fouad shokry
CCNP
Ospf
Authentication
( ) #router ospf 11
#area x authentication
( ) # int s0/0
2) Md5 authentication
( ) #router ospf 1
( ) #int s0\0
#show run
#show ip protocol
#show ip ospf neighbor
#show ip opsf topology
#show ip ospf interface
#show ip route
#debug ospf
28
Ayman Fouad shokry
CCNP
WAN
- difference between LAN and WAN :
Every device we have as own personal or to our firm is LAN “switch, router, hub “
Notes:
In beginning before Adsl the only way for connect 2 firm to each other was by telephone but problem
was speed very low only 56k and very high cost cause was paying per minute as normal telephone rate,
And also not safe cause if someone called the telephone line the connection get cut.
1) Circuit switching :
Dial up 56k
2) Point to point
29
Ayman Fouad shokry
CCNP
Notes :
in 2000 start take internet line from main source buy it and rent for people per month by use D Slam
and then it deliver to A slan and use telephone cable for transfer internet as telephone cable have about
1m free for use and then to splitter to be given 2 cables 1 for routers and other for telephone without
effect on connection or telephone line and it reduce the internet cost and it be more fast .
- Point to point :
ADSL SDSL
D U D U
1 2 1 1
1 4 2 2
1 6 3 3
1 8 4 4
Notes:
In Adsl company buy internet for example 100mb in 1 Internet Company they get customers for take
speed they get unlimited customers and then divided the speed on them no matter the usage or the
capacity on Dslam.
In Adsl they give you for example 1 mb then they give you 1/8 upload only.
Leased line is get speed stable not care about usage or capacity on Dslam and its more expensive cause
of that also it have special port in dslam and telephone cable be data only not voice .
SDSL is much better than Adsl but still shared tech but is given better uploading speed be the same of
downloading.
Radius is for have all information of users on d slam without be controlled from dslam .
30
Ayman Fouad shokry
CCNP
1) PPP: 2) HDLC
Point to point protocols High data link connection
Config :
Config : (A)#int s0/1
(A)#int s0/1 #encapsulation HDLC
#encapsulation ppp
Doesn’t support authentication
Support authentication pap chap
#ppp authentication pap
Pap- chap
Chap – pap
Notes:
31
Ayman Fouad shokry
CCNP
32
Ayman Fouad shokry