Documente Academic
Documente Profesional
Documente Cultură
png
Router 17 pași cu securitate
Router interfeţe
Rutare statică
Rutare dinamică RIP
Rutare dinamică EIGRP
Rutare dinamică OSPF
Redistribuire în RIP
Redistribuire în OSPF
Redistribuire în EIGRP
Autentificare OSPF pe interfețe
Switch 16 pași cu securitate
Switch închidere/deschidere interfețe
Switch default gateway
Switch interfață în mod access
Switch interfață în mod trunk
Switch securitatea porturilor
Switch portfast
Switch VTP Server
Switch VTP Client
Switch VTP Transparent
Switch creare VLAN
Schimbare versiune IOS (de pe server TFTP)
Conectare prin SSH (PC)
Autentificare PPP prin PAP
Autentificare PPP prin CHAP
Frame Relay
Access Lists
DHCP
Router 17 pași cu securitate
enable
clock set
(format hh:mm:ss zi luna an 2:05:22 19 FEB 2015)
configure terminal
no ip domain lookup
security passwords minlength
10
hostname
NUME
enable secret
cisco12345
enable password
cisco54321
service passwordencryption
banner login
*bla*
banner motd
*bla*
ip domainname
GRUPA351LABOR#.com
(# = numărul laboratorului)
username
admin
privilege
15
secret
adminpass1
line console 0
password
ciscoconpass
login
logging synchronous
exectimeout 0 0
exit
line vty 0 15
password
ciscovtypass
login
logging synchronous
exectimeout 0 0
transport input ssh
login local
exit
crypto key generate rsa
1024
no cdp run
exit
wr
Router interfeţe
end
configure terminal
interface
INTERFAȚĂ
encapsulation native
dot1q
(la subinterfeţe se poate adauga
native
dupa VLAN pentru VLAN nativ)
ip address
IP SUBNET_MASK
description
clock rate
CLOCK_RATE
(la DCE, probabil 2000000)
no shutdown
(nu la subinterfeţe)
end
wr
Rutare statică
end
configure terminal
ip route
IP_REȚEA SUBNET_MASK NEXT_HOP / INTERFAȚĂ_IEȘIRE
end
Rută default
end
configure terminal
ip route 0.0.0.0 0.0.0.0 NEXT_HOP / INTERFAȚĂ_IEȘIRE
end
Rutare dinamică RIP
end
configure terminal
router rip
version 2
no autosummary
network
IP (rețea vecină)
passiveinterface
INTERFAȚĂ (FastEthernet, seriale închise,
loopbackuri, seriale cu rutare statică)
end
Rutare dinamică EIGRP
end
configure terminal
router eigrp
AS
(1)
no autosummary
network
IP_REȚEA WILDCARD_MASK
passiveinterface
INTERFAȚĂ
end
Rutare dinamică OSPF
end
configure terminal
router ospf
PROCESS_ID
(1)
network IP_REȚEA WILDCARD_MASK AREA_NUMBER
(area 0)
passiveinterface
INTERFAȚĂ
end
Redistribuire în RIP
Forma generală:
end
configure terminal
router rip
redistribute
PROTOCOL
metric
NR_HOPURI
end
wr
OSPF > RIP
:
redistribute ospf
ID
metric
NR_HOPURI_PANA_LA_RETEAUA_OSPF
redistribute ospf
PROCESS_ID
metric
NR_HOPURI
EIGRP > RIP
:
redistribute eigrp
ID
metric
NR_HOPURI_PANA_LA_RETEAUA_EIGRP
redistribute eigrp
AS
metric
NR_HOPURI
Redistribuire în OSPF
Forma generală:
end
configure terminal
router ospf
PROCESS_ID
redistribute
PROTOCOL
subnets
end
wr
RIP > OSPF
:
redistribute rip subnets
EIGRP > OSPF
:
redistribute eigrp
AS
subnets
Redistribuire în EIGRP
Forma generală:
end
configure terminal
router eigrp
AS
redistribute
PROTOCOL
metric
BANDWIDTH DELAY RELIABILITY LOAD
MTU
end
wr
RIP > EIGRP
:
redistribute rip metric
10000 10 255 1 15000
OSPF > EIGRP
:
redistribute ospf 1 metric
10000 10 255 1 15000
Autentificare OSPF pe interfețe
Clear text:
end
configure terminal
interface INTERFATA
ip ospf authenticationkey
PAROLA
ip ospf authentication
end
wr
MD5:
end
configure terminal
router ospf
PROCESS_ID
ip ospf messagedigestkey 1 md5
PAROLA
ip ospf authentication messagedigest
end
wr
Switch 16 pași cu securitate
enable
clock set
configure terminal
no ip domain lookup
hostname NUME
enable secret
cisco12345
enable password
cisco54321
service passwordencryption
banner motd *bla*
ip domainname
GRUPA351LABOR#.com
username admin privilege
15
secret
adminpass1
line console 0
password
ciscoconpass
login
logging synchronous
exectimeout 0 0
exit
line vty 0 15
password
ciscovtypass
login
logging synchronous
exectimeout 0 0
transport input ssh
login local
exit
crypto key generate rsa
1024
no cdp run
exit
wr
Switch închidere/deschidere interfețe
Toate interfețele
end
configure terminal
interface range fa0/124
shutdown
exit
interface range g0/12
shutdown
end
O interfață
end
configure terminal
interface NUME_INTERFAȚĂ
no shutdown
end
wr
Switch default gateway
end
configure terminal
ip defaultgateway
IP
end
wr
Switch interfață în mod access
end
configure terminal
interface
INTERFAȚĂ
switchport mode access
switchport access vlan
NR_VLAN
end
wr
Switch interfață în mod trunk
end
configure terminal
interface
INTERFAȚĂ
switchport mode trunk
switchport trunk allowed vlan
VLAN_PERMISE
end
wr
VLAN NATIV
end
configure terminal
interface
INTERFAȚĂ
switchport trunk native vlan
VLAN
end
wr
Switch securitatea porturilor
end
configure terminal
interface
INTERFAȚĂ
switchport portsecurity
(activeaza securitatea portului)
switchport portsecurity maximum
NR_MAC_PERMISE
STICKY
switchport portsecurity macaddress
(atribuire statică)
switchport portsecurity violation
SHUTDOWN
end
wr
Pentru a activa interfaţa dacă se închide de la shutdown,
aceasta trebuie repornită:
end
configure terminal
interface
INTERFAȚĂ
shutdown
no shutdown
end
wr
Switch portfast
end
configure terminal
interface
INTERFAȚĂ
switchport spanningtree portfast
(pentru porturi access)
end
wr
Switch VTP Server
end
configure terminal
vtp mode server
vtp domain
NUME_DOMENIU
vtp password
PAROLA_DOMENIU
end
wr
Switch VTP Client
end
configure terminal
vtp mode client
vtp domain
NUME_DOMENIU
vtp password
PAROLA_DOMENIU
end
wr
Switch VTP Transparent
end
configure terminal
vtp mode transparent
vtp domain
NUME_DOMENIU
vtp password
PAROLA_DOMENIU
end
wr
Switch creare VLAN
end
configure terminal
vlan
NUMAR_VLAN
name
NUME_VLAN
end
wr
end
configure terminal
interface vlan
NUMAR_VLAN
ip address
IP SUBNET_MASK
end
wr
Schimbare versiune IOS (de pe server TFTP)
end
copy tftp: flash:
wr
end
configure terminal
boot system flash
end
reload
Conectare prin SSH (PC)
ssh l admin x.x.x.x
adminpass1
Autentificare PPP prin PAP
end
configure terminal
username
R2
password
papauthentication
(De la routerul vecin)
interface
INTERFAȚĂ
encapsulation ppp
ppp authentication pap
ppp pap sentusername
R1
password
authenticationpap
(
Date
proprii)
end
wr
end
configure terminal
username
R1
password
authenticationpap
(De la routerul vecin)
interface
INTERFAȚĂ
encapsulation ppp
ppp authentication pap
ppp pap sentusername
R2
password
papauthentication
(
Date
proprii)
end
wr
Autentificare PPP prin CHAP
end
configure terminal
username
R2
password
cisco123
(
Parolă comună la ambii vecini)
interface
INTERFAȚĂ
encapsulation ppp
ppp authentication chap
end
wr
end
configure terminal
username
R1
password
cisco123
(
Parolă comună la ambii vecini)
interface
INTERFAȚĂ
encapsulation ppp
ppp authentication chap
end
wr
Frame Relay
end
configure terminal
interface
INTERFAȚĂ
encapsulation framerelay
framerelay map ip
10.1.1.2 102
broadcast
Pe R1, legat la R2
framerelay lmitype
ansi
framerelay interfacedlci
102
Doar la subinterfețe
end
wr
end
configure terminal
interface
INTERFAȚĂ
encapsulation framerelay
framerelay map ip
10.1.1.1 201
broadcast
Pe R2, legat la R1
framerelay lmitype
ansi
framerelay interfacedlci
201
Doar la subinterfețe
end
wr
In cloud:
INTERFACE: Setat LMI si mapare
http://puu.sh/hUujk/e6650985d8.png
CONNECTIONS: Setata legatura dintre DLCI si interfata
http://puu.sh/hUveA/fc06bbcb97.png
Access Lists
Cu numar
:
end
configure terminal
accesslist
10
deny 192.168.10.0 0.0.0.255
accesslist
10
permit any
end
wr
Cu nume
:
end
configure terminal
ip accesslist standard
NO_ACCESS
deny host 192.168.30.128
deny 10.10.10.0 0.0.0.255
permit any
end
wr
Aplicare pe interfață
:
end
configure terminal
interface
INTERFAȚĂ
ip accessgroup
10 out ACL cu numar
ip accessgroup
NO_ACCESS in ACL cu nume
DHCP
end
configure terminal
ip dhcp excludedaddress
192.168.0.1 192.168.0.2 Range de
adrese excluse din pool. Cand poolul este definit, le include
si pe astea
ip dhcp pool
NUME_POOL
network
192.168.0.0 255.255.255.0
defaultrouter
192.168.0.1
Default gateway transmis
dnsserverIP_DNS_SERVER DNS server transmis
Daca routerul cu dhcp nu e direct conectat la reteaua la care
trebuie sa dea ipuri, pe routerul conectat la reteaua aia, pe
interfata catre retea:
end
configure terminal
ip helperaddress
IP_ROUTER_DHCP
end
wr