View Single Post
Staro 01.12.2016., 13:19   #5
jp_rv
Premium
 
Datum registracije: May 2014
Lokacija: istra
Postovi: 3,469
koja će ovo litanija bit.

znači ajmo prvo četveronoške da to ikako proradi sa jednim wan-om, pa ćemo polako dalje.

zapinjem na početku. eth1 mi je wan, eth2-3-4 su lan.
eth1 je sad dhcp client , eth2 je spojen moj komp (čisto da ne ubijem net svima dok ovo radim). i sad, eth1 dobije ip preko dhcp-a, i zna koji je gateway. tu priča staje.

idem na dns, dodajem dns. idem na dhcp server, dodajem pool, dodajem dns.
komp dobije ip/gateway/dns kako spada, ali ne resolvaju se adrese. mogu pingat 8.8.8.8 ali ne mogu ništa otvorit.
znači problem je u mikrotiku.

e sad - gdje?

Code:
 [admin@MikroTik] > /ip address print detail
Flags: X - disabled, I - invalid, D - dynamic 
 0   ;;; defconf
     address=192.168.2.10/24 network=192.168.2.0 interface=ether2-master 
     actual-interface=bridge 

 1 D address=192.168.2.237/24 network=192.168.2.0 interface=ether1 
     actual-interface=ether1
Code:
[admin@MikroTik] > /ip route print detail
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 0 ADS  dst-address=0.0.0.0/0 gateway=192.168.2.1 
        gateway-status=192.168.2.1 reachable via  ether1 distance=1 scope=30 
        target-scope=10 vrf-interface=ether1 

 1 ADC  dst-address=192.168.2.0/24 pref-src=192.168.2.10 gateway=bridge,ether1 
        gateway-status=bridge reachable,ether1 unreachable distance=0 scope=10
Code:
 [admin@MikroTik] > /interface print detail
Flags: D - dynamic, X - disabled, R - running, S - slave 
 0     name="ether1" default-name="ether1" type="ether" mtu=1500 actual-mtu=1500 
       l2mtu=1598 max-l2mtu=2028 mac-address=6C:3B:6B:1E:20
       last-link-down-time=dec/01/2016 13:16:58 
       last-link-up-time=dec/01/2016 13:09:45 link-downs=1 

 1  RS name="ether2-master" default-name="ether2" type="eth
       actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-addres
       fast-path=yes last-link-up-time=dec/01/2016 13:09:45

 2  RS name="ether3" default-name="ether3" type="ether" mtu
       l2mtu=1598 max-l2mtu=2028 mac-address=6C:3B:6B:1E:20
       last-link-up-time=dec/01/2016 13:17:00 link-downs=0 

 3   S name="ether4" default-name="ether4" type="ether" mtu
       l2mtu=1598 max-l2mtu=2028 mac-address=6C:3B:6B:1E:20
       link-downs=0 

 4   S name="wlan1" default-name="wlan1" type="wlan" mtu=15
       l2mtu=1600 max-l2mtu=2290 mac-address=6C:3B:6B:1E:20
       link-downs=0 

 5  R  ;;; defconf

edit

ok da dobro, nesmiju bit u istom subnetu. yebo ih subnet. promijenio dhcp pool na 192.168.3.0/24 sad radi iz prve.

eh sad sok i nevjerica, mogu uredno pristupit i "routeru iza". ali nije isti subnet. zaista cu morat modem prebacit u drugi subnet.

Zadnje izmijenjeno od: jp_rv. 01.12.2016. u 13:34.
jp_rv je offline   Reply With Quote