User Tools

Site Tools


networking:cisco:vtp_ntp
!********************** Switch S1 **********************
!
enable
!write erase
!
conf ter
!
boot host dhcp
!
no ip domain-lookup
!
ntp server 161.53.123.5
clock timezone GMT +1
clock summer-time GMT recurring
!
hostname S1_HQ
!
banner motd /************ Switch S1 HQ 00:1D:A1:DE:16:C0 ************/
!
enable secret password
service password-encryption
!
vtp domain DomainName
vtp password password
vtp version 3
vtp mode server
exit
!
!#samo na vtp serveru
vtp primary force
conf ter
!
!##########  IP adresa VLAN-a 1 (dhcp ili adr.esa.000.000 mas.ka0.000.000)
interface vlan 1
no shu
!ip address dhcp
ip address 192.168.10.1 255.255.255.0
no ip route-cache
!
!##########  IP adresa default gateway-a (samo ako nije DHCP)
ip default-gateway 192.168.10.254
!
alias interface e exit
alias configure e exit
alias configure svi int ran fa0/1 - 24
alias exec c config terminal
alias exec s show ip int brie
alias exec sc show cdp neighbors
alias exec sr show runn
alias exec sv show vlan
alias exec ss show span
alias exec save copy running-config startup-config
alias exec backup copy startup-config tftp:
alias exec restore copy tftp: startup-config
alias exec delf delete flash:
alias exec dirf dir flash:
!
line con 0
logging synchronous
exec-timeout 90 0
password password
login
length 50
width 132
!
line vty 0 15
logging synchronous
exec-timeout 90 0
password password
login
length 50
width 132
!
!################ kraj standardne konfiguracije ####################
!
!######## Dali je ovo Root bridge za sve vlanove?
!
spanning-tree vlan 1-4094 root primary
!spanning-tree vlan ID root primary
!spanning-tree mode rapid-pvst
!
!####### Kreiramo VLAN-ove! SAMO na VTP serveru
!
vlan 101
no shutdown
name Private_WiFi
!
vlan 102
no shutdown
name Public_WiFi
!
vlan 2603
no shutdown
name Telefoni
!
!######################## Svi portovi u access mode
interface range fastEthernet 0/1 - 24
switchport mode access
interface range gigabitEthernet 0/1 -2
switchport mode access
!
!######################## Samo neki portovi u trunk
interface range gigabitEthernet 0/1 -2
switchport mode trunk
interface fa0/24
switchport mode trunk
!switchport trunk encapsulation dot1q !!!samo na L3 switchu
switchport trunk native vlan 1
!
!
!####### Portove pridjelimo VLAN-u
interface range fa 0/1 - 4
switchport access vlan 101
!
!####### Portove pridjelimo VLAN-u
interface range fa 0/5 - 8
switchport access vlan 102
!
!####### Portove pridjelimo VLAN-u
interface range fa 0/9 - 12
switchport access vlan 2603
!
exit
exit
!
networking/cisco/vtp_ntp.txt · Last modified: 2016/06/19 06:48 (external edit)