erase startup-config
——–POSTAVLJANJE VLANOVA ————–
SW1>ena
Sw1#conf t
Sw1(config)# hostname sw1
vlan 10
name vlan10
——- ponavlja se procedura za imena za sve vlanove
————————————- Podesavanje VLANOVA i TRUNKA ———-
—– prema računalima ——
interface range fastEthernet 0/2
interface range fastEthernet 0/2
sw1(config–if–range)# switchport mode access
switchport access vlan 10 exit
————Drugi interfejs
interface range fastEthernet 0/3
interface range fastEthernet 0/3
switchport mode access
switchport access vlan 40
exit
————- TRUNK —– prema routeru i između switcheva ——-
————- TRUNK —– prema routeru i između switcheva ——-
interface range fastEthernet 0/1
switchport mode trunk
exit
no shutdown
—- ako se fula sa vlanovima
no switchport access vlan name-or-id
no switchport access vlan name-or-id
Command rejected: An interface whose trunk encapsulation is “Auto” can not be configured to “trunk” mode. Ako ovo izleti morate promjeniti enkapsulaciju:
switchport encapsulation dot1q
switchport mode trunk
—————– PODEŠAVANJE VLANOVA – ————-–
ena
conf t
conf t
hostname R1
R1(config)#interface FastEthernet 0/0
R1(config–if)#no ip add
R1(config–if)#shutdown
SUBINTERFACE
R1(config)#interface FastEthernet 0/0.10
R1(config–subif)#description *Vlan 10*
R1(config–subif)#encapsulation dot1q 10
R1(config–subif)#ip address 10.160.0.1 255.255.255.224
tako sve ostale .20 i .30
————-
R1(config)#interface fastEthernet 0/0.40
R1(config–subif)#description *Vlan 40*
R1(config–subif)#encapsulation dot1q 40
R1(config–subif)#ip address 10.160.1.1 255.255.255.0
——- PODESAVANJE WAN DIJELA RUTERA ——–
R1(config)#interface FastEthernet 1/0
——- PODESAVANJE WAN DIJELA RUTERA ——–
R1(config)#interface FastEthernet 1/0
R1(config–if)#ip address 193.0.2.33 255.255.255.252
R1(config–if)#no shut
——– POSTAVLJANJE KONZOLNE LOZINKE I SECRET ——–
sw1#conf t
sw1#conf t
sw1(config)#enable secret ispit-vsprs
w1(config)#line vty 0 15
sw1(config–line)#password console-vspr
sw1(config–line)#password console-vspr
sw1(config–line)#login
sw1(config–line)#exit
sw1(config)#
—————–BANNER——–
sw1(config)# banner motd $***neovlastenim osobama pristup zabranjen***$
—————–BANNER——–
sw1(config)# banner motd $***neovlastenim osobama pristup zabranjen***$
————-DOmena na ruteru —————
R1(config)#ip domain-name vspr.local
—————-KRIPTO PRIJENOS ——
R1(config)#crypto key generate rsa
The name for the keys will be: R1.vspr.local
The name for the keys will be: R1.vspr.local
Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non–exportable…[OK]
R1(config)#line vty 0 4
R1(config–line)#transport input ssh
R1(config–line)#
——————– Pregled interfejsa trunkova —————
——————– Pregled interfejsa trunkova —————
Show interfaces trunk
—– ako interface nije u stanju up ova naredba ga neće prikazati.——————-
—-SHOW SVAŠTA—-
show vtp password
show vtp status
show vlan brief
show spanning-tree
spanning-tree vlan 25,35,99 root primary