View Single Post
Staro 28.12.2012., 21:06   #8
Ant3G
Premium
 
Datum registracije: Dec 2008
Lokacija: Gospić
Postovi: 71
Nece vam ovo pomoci, izmjenio sam neke stvari, predetaljan je info
vlan2 je na 20om portu. Taj sam odabrao za test. Kasnije proširim.

Molio bih vas samo da me navedete kako iz nule konfigurirati 2 vlana da se routaju. To je to

Code:
cisco-switch2#sh run
Building configuration...

Current configuration : 2416 bytes
!
! Last configuration change at 11:59:40 UTC Fri Dec 28 2012
! NVRAM config last updated at 09:25:23 UTC Fri Dec 28 2012 by cisco
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname cisco-switch2
!
enable secret 5 
!
no aaa new-model
clock timezone UTC 1
clock summer-time UTC recurring last Sun Mar 2:00 last Sun Oct 3:00
system mtu routing 1500
ip subnet-zero
ip routing
ip name-server 
ip name-server 
ip dhcp excluded-address 192.168.1.1 192.168.1.50
ip dhcp excluded-address 192.168.1.68
!
ip dhcp pool wifi
   network 192.168.1.0 255.255.255.0
   default-router 192.168.1.1
   option 150 ip 192.168.1.1
   dns-server 
!
ip dhcp-server 192.168.1.1
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
 switchport access vlan 2
 switchport mode access
 switchport port-security
 switchport port-security aging time 2
 switchport port-security violation restrict
 switchport port-security aging type inactivity
 macro description cisco-desktop | cisco-desktop
 spanning-tree portfast
 spanning-tree bpduguard enable
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 ip address 10.0.0.52 255.255.255.0
!
interface Vlan2
 ip address 192.168.1.1 255.255.255.0
 ip helper-address 192.168.1.1
!
ip default-gateway 10.0.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 
ip route 0.0.0.0 0.0.0.0 10.0.0.0
ip http server
!
!
control-plane
!
!
line con 0
line vty 0 4
 
 login
 length 0
line vty 5 15

 login
 length 0
!
end

cisco-switch2#

update: thx domis, taj link nisam gledao, proucim, probam pa se javim kroz 48h

Zadnje izmijenjeno od: Ant3G. 28.12.2012. u 21:20.
Ant3G je offline   Reply With Quote