0% found this document useful (0 votes)
56 views9 pages

Subnet /28: Hosts

Subnetting and IP addressing concepts are explained including: - Classful network ranges and private IP ranges - Subnetting techniques using subnet masks and calculating host ranges - IPv4 address representation in binary and subnetting examples - Basic router configuration commands for viewing configurations and interfaces

Uploaded by

raymundo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views9 pages

Subnet /28: Hosts

Subnetting and IP addressing concepts are explained including: - Classful network ranges and private IP ranges - Subnetting techniques using subnet masks and calculating host ranges - IPv4 address representation in binary and subnetting examples - Basic router configuration commands for viewing configurations and interfaces

Uploaded by

raymundo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Subnetting

Clase
s

Ranges

1-126
128191
192223
224239
240255

B
C
D
E

GID
R
/8

Range 0: reserved
127: Loopback
ipv4

/16
/24
Na
Na

Class prvate (no routing to internet)


Clase
s

Ranges

10.0.0.0

B
C

10.255.255.2
55
172.31.255.2
55
192.168.255.
255

172.16.0.
0
192.168.
0.0

/12
/16

128
64 32 16

2 1

Subnet /28

15
16

_ _ _ _ _ _ _ _ . _ _ _ _ _ _ _ _ . _ _ _ _ _ _ _ _ . _ _ _
_ 0 0 0 0
Network
ID
X.X.X.
16
X.X.X.
32
X.X.X.
48

Rang
e
17-30

Broadcast

33-46

X . X . X . 31
(16+15)
X . X . X . 47

49-62

X . X . X . 63

100 hosts
8+8+
_ _ _

8 +
Hosts
X.X. _ _ _ _ _ _ _ _ . _ _ _ _ _
2
0
4
8

1
0
2
4

5
1
2

2
5
6

1
2
8

6
4

3
2

1
6

-2 = 126
hosts

Subnet /25

300 subnet

Subne
X.X. _ _ _ _ _ _ _ _ . _ _ _ _ _

_ _ _

1
6

8+8+

3
2

6
4

1
2
8

2
5
6

5
1
2

Subnet /25

192.168.100.97 /27 Broadcast range


128 64
4

2 1

31

Subnet /
27

32 16

X.X.X . _ _ _ _ _ _ _
Network
ID
X.X.X.
32
X.X.X.
64
X.X.
X . 96

Range

Broadcast

33-62

X . X . X . 63 (32+31)

65-94

X . X . X . 95

97-126

X . X . X . 127
(96+31)

/12 Class B
128 64 32
15

.0

Subnet /
12

16

X._ _ _ _

2 1

_ _ _ _ .0

172.16.0.0 ---------- >


172.31.255.255

Mask 255.555.254.0
2 1

Hosts

X. X._ _ _ _
.0

1
6

3
2

6
4

128
Subnet
Network
ID
X.X.0.
0
X.X.2.
0

1
2
8

_ _ _ _

5
1
2

-2 = 510 hosts /
subnet

Range

Broadcast

0.1
1.254
2.1
3.254

X.X.1.
255
X . X . 3. 255

Table
Octet

Bit

1000
0000
1100
0000
1110
0000
1111
0000
1111
1000
1111
1100
1111
1110
1111
1111

Decim
al
128

192

224

240

248

252

254

255

Configuracin - Comandos
R1#SH RUN
R1#SH IP INT BRIEF
SH PROTOCOLS
SH FLASH
SH VERSION
SH INT S0/0/0
SH IP INT S0/0/0
SH ?
SH CDP NEIGHBOURS

/28

255
255
255
_____ . _____ . _____ . _____
240

/20

_____ . _____ . _____ . _____


255

/12

255

240

0
_____ . _____ . _____ . _____

255
0

240

SH CDP NEIGHBOURS DETAIL


CDP RUN
NO CDP RUN
(INT)# NO CDP ENABLE

Configuracin - Router
ENABLE
CONFIG T
HOSTNAME R2
ENABLE PASSWORD CISCO
ENABLE SECRET STUDENT
SERVICE PASSWORD-ENCRYPTION
USERNAME LDIAZ PRIVILEGE 15 PASSWORD
0 CISCO
BANNER MOTD $ WELCOME TO R2 $
IP DOMAIN-NAME CISCO.COM
IP NAME-SERVER 192.168.1.2
CRYPTO KEY GENERATE RSA
512
LINE CON 0
PASSWORD CISCO
LOGIN LOCAL
EXEC-TIMEOUT 0 0
LOGGING SYNCHRONOUS
LINE VTY 0 15
PASSWORD CISCO
LOGIN LOCAL
EXEC-TIMEOUT 0 0
LOGGING SYNCHRONOUS
TRANSPORT INPUT ALL
EXIT
INT F0/0
IP ADDRESS 192.168.2.254 255.255.255.0
DESCRIPTION CONNECTION TO LAN
NO SHUT
INT S0/0/1
IP ADDRESS 10.1.1.6 255.255.255.252
DESCRIPTION CONNECTION TO R1
NO SHUT
EXIT
EXIT
COPY RUN START

Configuracin IP route AS1


-DC0
# configure terminal
()# ip route 0.0.0.0 0.0.0.0 s0/0/0
()# ip route 192.168.1.0 255.255.255.0
s0/0/1 150
4

()# exit
# copy run start
# show ip route
Configuracin RIP AS120
# show start
# configure terminal
()# router rip
()# version 2
()# net 10.0.0.0
()# net 192.168.1.0
()#no auto-summary
()# exit
# copy run start
# show ip route
Configuracin EIGRP A
# show ip eigrp topology
# configure terminal
()# router eigrp 300
()# net 10.0.0.0
()# net 192.168.1.0
()#no auto-summary
()# exit
# copy run start
# show ip route
Configuracin OSPF AS110
# configure terminal
()# router ospf 1
()# net 192.168.1.0 0.0.0.255 area 0
()# net 10.1.1.4 0.0.0.3 area 0
()# net 192.168.1.0 0.0.0.255 area 0
()# exit
# copy run start
# show ip route
# show ip ospf int s0/1/0
Ip ospf priority 255
Clear ip ospf process
Show running-config
Show protocols

Configuracin SW
>enable
5

# show mac-address-table
# show vlan
>enable
# configure terminal
# hostname sw1
# enable password cisco
# enable secret student
# service password-encryption
# banner motd $ sw1 $
# username ldiaz privilege 15 password
cisco
# ip domain-lookup
# ip domain-name cisco
# ip name server 192.168.100.100
# line vty 0 15
# password cisco
Login local
Login synchronous
Exec-timeout 0 0
Transport input all
Line con 0
Password cisco
Login local
Login synchronous
Exec-timeout 0 0
Exit
Exit
# copy run start
# show start

Configuracin SW VLAN
# vlan 1
Ip address 192.168.100.253
255.255.255.0
no shut
exit
# ip default-gateway 192.168.100.254
# copy run start
>enable
# configure terminal
# hostname sw1
# vlan 100
Name faculty
#vlan 101
Name students
Exit
6

Exit
# show vlan
# configure terminal
# Int f0/3
Switchport mode Access
Switchport Access vlan 100
# Int f0/4
Switchport mode Access
Switchport Access vlan 101
Exit
Exit
# copy run start
# configure terminal
# int range f0/1-2
Switchport mode trunk
Exit
# copy run start
# sh int trunk

Configuracin SW VLAN STP


>enable
# show spanning-tree
# show cdp neighbours
#
#
#
#

Spanning Tree protocol


Maniplate election process
# configure terminal
# spanning-tree vlan 1,10,20 priority 0

configure terminal
int range f0/3-10
spanning-tree portfast
spanning-tree bdpuguard enable

# int f0/10
No shutdown

Configuracin SW VTP
>enable
# show vtp stat

Virtual trunking Protocol

Configuracin Port security


# show port security

Virtual trunking Protocol

#int range
Switchport
Switchport
Switchport
Switchport
shutdown

f0/1-15
port-security
port-security
port-security
port-security

Configuracin Intervlan
7

mac
sticky
max 2
violation

# show int trunk


R(config)# int f0/0
No shut
Int f0/0.10
Encap dot1q 10
Ip address 192.168.10.254
255.255.255.0
Int f0/0.20
Encap dot1q 20
Ip address 192.168.20.254
255.255.255.0
#sh ip int brief
#sh ip route

Configuracin ACL
>enable
# configure terminal
# access-list 100 permit tcp host 192.168.33.3 host
172.22.242.23 eq 80
# access-list 100 deny tcp any host 172.22.242.23 eq 80
# Access-list 100 permit ip any any
# show ip interface brief
#interface fa0/1
#ip Access-group 100 out
#end
# copy running-config startup-config

Configuracin NAT
>enable
# configure terminal
# hostname weaver
# ip nat pool my_pool 198.18.184.105 198.18.184.110
netmask 255.255.255.248
# Access-list 1 permit 192.168.100.16 0.0.0.15
#ip nat inside source list 1 pool my_pool overload
#interface fa0/0
#ip nat inside
Exit
#interface s0/0
#ip nat outside
8

End
# copy running-config startup-config

You might also like