Vous êtes sur la page 1sur 3

http://www.vlsm-calc.

net/

-> enable - root


-> configure terminal
-> exit

LABORATOR2 - Tabela CAM


-> show mac-address-table - afisare tabela CAM
-> clear mac-address-table
-> mac-address-table static AAAA.BBBB.CCCC vlan Z interface FastEthernet X/Y

---------------------------------------------------------------------------------
STP
--------------------------------------------------------------------------------
-> OPRIRE SWITCH - click pe switch si in Physical Device View din interfata dati
click pe butonul de On-Off (e in partea dreapta a imaginii cu porturi a switch-
ului)
-> OPRIRE STP VLAN - no spanning-tree vlan "vlan-ID"
-> show spanning-tree
-> ROOT BRIDGE:
1. spanning-tree vlan [list] root [primary | secondary]
2. spanning-tree vlan [list] priority [value] - ii dam o prioritate mai mica
decat a celorlalte switch-uri

----------------------------------------------------------------------------- PORT
SECURITY --------------------------------------------------------------------------

-> https://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/4_1/nx-
os/security/configuration/guide/sec_nx-os-cfg/sec_portsec.html#wp1258211
-> Configuring Port Security

Adding a Static Secure MAC Address on an Interface


-> interface fa1/1
-> [no] switchport port-security mac-address "address" [vlan "vlan-ID"]
-> show running-config port-security

Configuring a Maximum Number of MAC Addresses


-> interface fa1/1
-> [no] switchport port-security maximum "number" [vlan "vlan-ID"]
-> show running-config port-security

Sticky MAC Address Learning - adresele MAC invatate persista si dupa un restrat al
device-ului
-> interface fa1/1
-> switchport
-> [no] switchport port-security mac-address sticky
-> show running-config port-security

LABORATOR3 - Adresare IP
Configure IP address on stations:
-> Click pe statie -> Desktop -> IP Configuration

Configure IP address on router interface:


-> configure terminal
-> interface fa0/0
-> no shutdown
-> ip address "ip address" "mask"
LABORATOR4 - VLAN
-> show vlan brief
-> do show vlan brief (daca sunt in configure terminal)
-> show running-config - configuratia curenta a switch-ului
-> show interfaces trunk

CONFIGURARE PORT IN MOD ACCESS


1. Creare vlan X
-> configure terminal
-> vlan X
-> name X
-> exit
2. Configurare port
-> switchport mode access - trecere port in modul access
-> switchport access vlan X
-> exit

CONFIGURARE PORT IN MOD TRUNK


1. Creare vlan X (ca mai sus)
2. Configurare port
-> switchport mode trunk - trecere port in modul trunk
-> switchport trunk allowed vlan all/1/1,2 etc
-> exit

CONFIGURARE VLAN NATIV


->int fa0/0
->switchport trunk native vlan "VLAN-ID"

Conectare prin telnet la switch:


-> click pe statie de pe care ne conectam -> Desktop -> Command prompt -> telnet
"IP address of switch"

VLAN DE MANAGEMENT:
1. Configurare vlan 100 pe interfata catre statia de management:
-> config terminal
-> vlan 100
-> name management
-> exit
-> interface fa0/1
-> switchport mode access
-> switchport access vlan 100
2. Trebuie dezactivata interfata implicita vlan 1 si stearsa adresa ip:
-> interface vlan 1
-> shutdown
-> no ip address
-> exit
3. Vom configura adresa IP pe interfata vlan 100 aferenta VLAN 100:
-> interface vlan 100
-> no shutdown
-> ip address "ip address" "mask"
4. Verificare:
-> de pe MANAGEMENT va merge: telnet "ip adress" ptr a ne conecta la switch,
de pe restul statiilor nu
LABORATOR5 - RUTARE
-> show ip interface brief (pe ruter) - aflam adresele ip de pe interfetele
ruterului

CONFIGURARE DEFAULT GATEWAY:


-> Click pe statie -> Desktop -> IP Configuration -> Default Gateway = adresa ip a
interfetei ruterului care face parte din reteaua statiei

ADAUGARE RUTE STATICE PE RUTER:


-> ip route "adresa retelei catre care trimit" "masca retelei" "adresa ip de pe
interfata ruterului care e next hop"
- ip route 14.14.14.0 255.255.255.0 30.30.30.34

AFISARE TABELA DE RUTARE:


-> show ip route

Vous aimerez peut-être aussi