[ milos 2 @ 02.09.2015. 15:27 ] @
Negde gresim, ali ne znam gde. Mreza ide ovako: SBB-ov ruter ide na fa0/0 na cisco-u. Na sbb-u je ukljucen DHCP, dok je na portu fa 0/0 ukljucen DHCP klient i port lepo dobija od rutera adresu, i internet radi, odnosno pingovanje prema internetu. Sa porta fa 0/1 ide na cisco switch na port 0/24 koji pripada VLAN-u 1. sa porta 0/23 koji pripada VLAN-u 2 ide na komp. Na ruteru je podesen sub interfejs koji ima adresu iz opsega DHCP pool-a koji ima oznaku 0/1.1 i engapsulacija je dot1q sa vlan-om 2. DHCP pool je sa opsegom 192.168.2.0/24 gde su izbacene adrese od 1 do 5 jer je adresa VLAN-a 2 na switch-u .2, a adresa 0/1.1 je .1. Kao default-router sam probao da stavljam adresu koju dobijem preko dhcp-a na portu 0/0, pa sam probao da stavim adresu sbb-ovog rutera, pa adresu sub interfejsa. U svakom slucaju komp dobije IP adresu, ali ne mogu da dobijem izlaz na net sa racunara, dok sa rutera mogu. konfiguracija rutera: Code: version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model ip cef ! ! ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 no ip dhcp use vrf connected ip dhcp excluded-address 192.168.2.1 192.168.2.5 ! ip dhcp pool VLAN2 network 192.168.2.0 255.255.255.0 default-router 192.168.0.1 dns-server 192.168.0.1 ! ! ! multilink bundle-name authenticated ! ! ! ! ! archive log config hidekeys ! ! ! ! ! ! ! interface FastEthernet0/0 ip address dhcp duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto ! interface FastEthernet0/1.1 encapsulation dot1Q 2 ip address 192.168.2.1 255.255.255.0 ! ip forward-protocol nd ! ! ! no ip http server no ip http secure-server ! ! ! ! ! control-plane ! ! line con 0 line aux 0 line vty 0 4 login ! ! end Podesavanja Switch-a: Code: version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Sw2 ! enable secret 5 $1$jcmX$dvyVBKsbTKegdx4aBGYq3/ ! ip subnet-zero ! spanning-tree mode pvst no spanning-tree optimize bpdu transmission spanning-tree extend system-id ! ! interface FastEthernet0/1 no ip address ! interface FastEthernet0/2 no ip address ! interface FastEthernet0/3 no ip address ! interface FastEthernet0/4 no ip address ! interface FastEthernet0/5 no ip address ! interface FastEthernet0/6 no ip address ! interface FastEthernet0/7 no ip address ! interface FastEthernet0/8 no ip address ! interface FastEthernet0/9 no ip address ! interface FastEthernet0/10 no ip address ! interface FastEthernet0/11 no ip address ! interface FastEthernet0/12 no ip address ! interface FastEthernet0/13 no ip address ! interface FastEthernet0/14 no ip address ! interface FastEthernet0/15 no ip address ! interface FastEthernet0/16 no ip address ! interface FastEthernet0/17 no ip address ! interface FastEthernet0/18 no ip address ! interface FastEthernet0/19 no ip address ! interface FastEthernet0/20 no ip address ! interface FastEthernet0/21 no ip address ! interface FastEthernet0/22 no ip address ! interface FastEthernet0/23 switchport access vlan 2 no ip address spanning-tree portfast ! interface FastEthernet0/24 switchport mode trunk no ip address ! interface Vlan1 no ip address no ip route-cache ! interface Vlan2 ip address 192.168.2.2 255.255.255.0 no ip route-cache shutdown ! ip http server ! ! |