*-------------------------------------
* v snop dodamo nov VLAN

router(config)#^Z         
router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#vlan 99
router(config-vlan)#name management 
router(config-vlan)#exit
router(config)#interface range GigabitEthernet1/0/21 - 23
router(config-if-range)#switchport trunk allowed vlan add 99

switch1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
switch1(config)#interface FastEthernet1/0/24
switch1(config-if)#switchport trunk allowed vlan add 99

*-------------------------------------
* pripravimo ukaze za zamenjavo management vmesnika

switch1-vlan99-config.cmd:
--------------------------
! odstrani "native" VLAN 1
interface FastEthernet1/0/24
 switchport trunk allowed vlan add 99
 switchport trunk allowed vlan remove 1
!
interface Vlan1
 no description
 no ip address
 shutdown
!
! omogoci "management" VLAN
interface Vlan99
 no shutdown
 description --- management ---
 ip address 153.5.188.1 255.255.255.192
!
exit
vlan dot1q tag native
end

switch2-vlan99-config.cmd:
--------------------------
! odstrani "native" VLAN 1
interface FastEthernet0/12
 switchport trunk allowed vlan add 99
 switchport trunk allowed vlan remove 1
!
interface Vlan1
 no description
 no ip address
 shutdown
!
! omogoci "management" VLAN
interface Vlan99
 no shutdown
 description --- management ---
 ip address 153.5.188.2 255.255.255.192
!
exit
vlan dot1q tag native
end

switch3-vlan99-config.cmd:
--------------------------
! odstrani "native" VLAN 1
interface FastEthernet0/24
 switchport trunk allowed vlan add 99
 switchport trunk allowed vlan remove 1
!
interface Vlan1
 no description
 no ip address
 shutdown
!
! omogoci "management" VLAN
interface Vlan99
 no shutdown
 description --- management ---
 ip address 153.5.188.3 255.255.255.192
!
exit
vlan dot1q tag native
end


*-------------------------------------
* skopiramo na stikala

switch1#copy tftp://153.5.188.5/switch1-vlan99-config.cmd flash:
switch2#copy tftp://153.5.188.5/switch2-vlan99-config.cmd flash:
switch3#copy tftp://153.5.188.5/switch3-vlan99-config.cmd flash:

switch1#more flash:switch1-vlan99-config.cmd
vlan 99
 name management
!
...

*-------------------------------------
* prekonfiguriramo stikala

switch1#copy flash:switch1-vlan99-config.cmd running-config
switch2#copy flash:switch2-vlan99-config.cmd running-config
switch3#copy flash:switch3-vlan99-config.cmd running-config

--- s tem izgubimo povezavo do stikal, saj na usmerjevalniku se nimamo omogocenega
    vmesnika za VLAN 99

*-------------------------------------
* nastavimo gateway za management VLAN

router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

interface Vlan99
 description --- management
 ip address 153.5.188.4 255.255.255.192
 no ip redirects
 ipv6 address 2001:1470:FAC0::4/64
 ipv6 nd suppress-ra
 no ipv6 redirects
 no shutdown
!
exit
