[ 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
!
!
[ dragancili @ 02.09.2015. 15:39 ] @
Konfigurisi NAT na cisco ruteru...uveo si novu mrezu...

HTH,
Dragan
[ milos 2 @ 02.09.2015. 16:32 ] @
hvala, ne znam kako mi je to promaklo, ne razmisljam.
[ anjat @ 02.09.2015. 21:17 ] @
Da li je uspelo ? Da li bi trebalo da u podesavanju DHCP pool-a stavis DNS provajdera ?
[ milos 2 @ 03.09.2015. 14:55 ] @
Nisam uspeo, ali za vreme rada mi je otkazao jedan ventilator, pa necu da se igram da mi crkne ruter jer mu ne radi jedan od 4 ventilatora, mada ja ne koristim nista od dodataka, nego samo njegovu osnovnu plocu, tako da cekam da sutra produvam ventilatore od prasine, i stavim malo WD-a, pa cu probati sa tvojom sugestijom sutra.
[ dragancili @ 03.09.2015. 15:05 ] @
Nema veze ako je crkao 1 ventilator slobodno to koristi...DNS ako ne stavis nece raditi servisi koji zavise od njega ali konektivnost ka netu hoce...naravno sa konfigurisanim NAT-om...

Pozz,
Dragan
[ milos 2 @ 03.09.2015. 20:08 ] @
Sa ovom konfiguracijom ne mogu ni sa rutera da pingujem:

Code:

...
!
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 89.216.1.40
!
!
!
multilink bundle-name authenticated
!
!
!
!
!
archive
 log config
  hidekeys
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address dhcp
 ip nat outside
 ip virtual-reassembly
 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 nat inside
 ip virtual-reassembly
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.0.1
!
!
no ip http server
no ip http secure-server
ip nat pool mypool 192.168.0.1 192.168.0.1 prefix-length 24
ip nat inside source list 1 pool mypool overload
!
access-list 1 permit 192.168.2.0 0.0.0.255
!
!
!
!
control-plane
...
[ dragancili @ 04.09.2015. 07:36 ] @
Ajmo ovako:

ip dhcp pool VLAN2
network 192.168.2.0 255.255.255.0
default-router 192.168.0.1 - zasto ovo df gate? ovde treba VLAN 2 subinterfejs adresa...192.168.2.1...
dns-server 89.216.1.40


ip nat pool mypool 192.168.0.1 192.168.0.1 prefix-length 24 - ovo ne mora jer nemas pool javnih adresa...moze i sa pool-om ali nema potrebe...
ip nat inside source list 1 pool mypool overload - ovo prebacis u "ip nat inside source list 1 interface fa 0/0 overload"
!
access-list 1 permit 192.168.2.0 0.0.0.255 - OK

I da vidimo sta se onda desava...

Pozdrav,
Dragan
[ milos 2 @ 04.09.2015. 14:08 ] @
RADIIIIIII!!!!!!!!!!

za default gateway sam stavio 0.1 jer je to ruter koji ima izlaz ka internetu, ali sam shvatio gresku.

E sada, ovde mi je jasno zasto umesto imena pool-a stavljam interfejs, ali jedno pitanje u vezi toga, da mi je u pool-u IP adresa koja je na tom interfejsu (u mom slucaju 192.168.0.12), da li bi radilo i tako?

Hvala mnogo.
[ dragancili @ 04.09.2015. 14:13 ] @
Tacno radilo bi ti - zato sam i stavio ono "moze i tako..." u pool se stavi samo ta 1 adresa i to je to...bas kao sto si ti i stavio...

Ali kad imas situaciju kao tvoju gde DHCP-om dobijas IP onda radis sa fizickim interfejsom da ne bi razmisljao koja ce adresa biti na njemu...

Pozdrav,
Dragan