Results 1 to 15 of 15

Thread: kāpēc mikrotiks nevar paņemt dhcp no tet?

  1. #1

    Default kāpēc mikrotiks nevar paņemt dhcp no tet?

    Ir tet optiskais nets ar kaut kādu to viņu veco verķi kam iekšā nāk optika, ārā 4 lan porti, pa 2 laikam nets. Pielieku tur jebkuru kompi, jebkādu cheap rūteri - visi dabū uzreiz dhcp adresi, nets strādā. Pielieku galā mikrotiku iekārtu - nevar paņemt automātiski dhcp adresi.
    Mikrotik iekārtas ir
    https://mikrotik.com/product/hap_ac2
    un kaut kas apmēram šāds
    https://linitx.com/product/mikrotik-...teros-l5/13975
    un man ir vēl citi mikrotik verķi, bet nu apnika jau jāties!
    Updeitoju abiem pēdējās firmware/os - nekas nemainās. Pilnībā resetoju - nekas nemainās. Zem DHCP klienta rādās status - searching...

    Es tā baigi ilgi nečakarējos, to router os nemāku, tīklos esmu ambālis un problēmā neiedziļinājos. Ar advanced cātbotiem vēl šo problēmu neapspriedu. Bet nu tā saprast gribētos kāpēc. Moš kādam ir gādījies un zin, kāds tur knifs?

  2. #2
    Pieredzējis lietpratējs BigFish's Avatar
    Join Date
    29-06-15
    Posts
    2,084
    Rep Power
    289

    Default

    Neticēsi, man strādā 4.porta mt ac2. Gan jau problemas ar konfiguraciju. Man gaja labi ar default configu (bet izslegtu ipv6, jo esmu vecmodīgs).

    Tad jau butu bijis interesanties uztaisīt jātni ar LTC gpon novākšanu un iespraust optiku pa taisno mikrotikā.

    https://mastodon.social/@kasparsdamb...20148039167920

  3. #3

    Default

    Bez redzama konfiga var zīlēt kafijas biezumos.

    Klasika ir dhcp klients uzlikts uz cita porta nekā vads, bet diez vai tas būs EOZ biedra gadījums.

    MT ir log, kur var redzēt dhcp tēmu, moš tur kas parādās.

  4. #4
    Pieredzējis lietpratējs xexe's Avatar
    Join Date
    24-01-06
    Posts
    1,082
    Rep Power
    308

    Default

    DHCP skaits ir limitēts uz viena porta tet, zvani uz helpdesk nometīs Mac skaitu nost kas nav lease time sakrajies
    no more OC

  5. #5
    Pieredzējis lietpratējs hero's Avatar
    Join Date
    22-08-06
    Posts
    2,257
    Rep Power
    524

    Default

    Komentējot MAC limitu.
    Jautājums pie kura porta mēģina sprausties? Tehniski mac limit ir tikai 4 port, kas bridžojas internetā ar publisko IP.
    Ja ir aizdomas uz MAC limit, testē pie 1. Porta, kur IP dod 192.. Ipškas, tur limiti nav.
    Ja dabū IP uz 1.porta, bet nav uz 4, tad varētu tet vaina būt; ja nedabū arī uz 1, tad vairāk aizdomas uz MT

  6. #6

    Default

    tā... svaigu galvu pieduros pie problēmas atkārtoti, saspraužu visus vadus un iet... lab, vēlreiz noresetoju rūteri. Precīzi CRS125-24G-1S-2HnD. Šoreiz jau ar jaunāku os - vēl viens resets atrisināja manu bēdu - hvz. Paņēma DHCP normāli uzreiz viss nostrādāja. Kaste man no telekom puses man alcatel-lucent - laikam baigā vēsture. 1 ports nets, 2-3 tv laikam, 4. 169 adresi dod - tas ir neko laikam. Tad jūs sak, ka es varētu pa tiešo to optiku iesprast savā mikrotikā? Laikam nav baigās vajadzībās pēc tā. Bet man laikam vajag vēl kaut kādu SFP moduli - ar kuriem līdz šim nekad man dzīvē nav bijusi darīšana. Un tad man jāzvana telekomam ar būtu un jāsaštimmē tā optika lai strādā uz mana mikrotika? Bail, ka dabūšu sev hobiju jaunu uz dažām nedēļām

  7. #7
    Pieredzējis lietpratējs jonyz's Avatar
    Join Date
    01-06-06
    Posts
    1,862
    Rep Power
    294

    Default

    Cik noprotu lai dabūtu lai optika no lattelekom strādātu Tavā microtik domāju ar zvanu nebūs līdzēts,liekas ka viņi to neatbalsta pēc Tavas gribēšanas.
    Mans tipa blogs kurš griežās uz googles serveriem.
    Tagad arī naktīs worko :)
    211GB mākonī for free

  8. #8

    Default

    Bet piezvani un paprasi jaunu rūteri. Kādus TET tagad dod? Man ir Nokia, var vismaz basic lietas sadarīt un tad jau aiz tā MT dara brīnumlietas.

  9. #9
    Pieredzējis lietpratējs hero's Avatar
    Join Date
    22-08-06
    Posts
    2,257
    Rep Power
    524

    Default

    Lai optiku spraust MT, vajag ONU SFP transīveri un konfigu. Transīveri var nopirkt, kur konfigu dabūt - varbūt hz (DJWoX teicās, ka bija iedarbinājis)

    1 ports nets, 2-3 tv laikam, 4. 169 adresi dod - tas ir neko laikam.
    kopš pirmsākumiem
    1. ir visos profilos kā internets, kur dod iekšējās IP, kas arī bridžojas ar wifi
    2.3 = iptv
    4 .dod publisko ip adresi (JA, ir sakonfigurēts profilā). Ja profils nedod uz 4 porta adreses, tad var inets arī nebūt. Ja vajag - to pa telefonu varēja aktivizēt.

  10. #10

    Default

    Cik ir spaidīti TET modēmi (gan dsl, gan optikas), 4. portu nekad neesmu redzējis neaktīvu - tur vienmēr ir bijusi otra publiskā IP adrese, kura arī tiek izmantota savējā rūtera pieslēgšanai. Cita lieta, ka tam portam tiek piesieta mac adrese TET pusē, kura nometas pēc kautkādām tur stundām, ja nekas nav pieslēgts pie tā 4 porta, vai arī pēc zvana uz TET.

    editēts, pareizi, nav jau vairs LTC bet TET..

  11. #11
    Pieredzējis lietpratējs xexe's Avatar
    Join Date
    24-01-06
    Posts
    1,082
    Rep Power
    308

    Default

    Quote Originally Posted by hero View Post
    Lai optiku spraust MT, vajag ONU SFP transīveri un konfigu. Transīveri var nopirkt, kur konfigu dabūt - varbūt hz (DJWoX teicās, ka bija iedarbinājis)


    kopš pirmsākumiem
    1. ir visos profilos kā internets, kur dod iekšējās IP, kas arī bridžojas ar wifi
    2.3 = iptv
    4 .dod publisko ip adresi (JA, ir sakonfigurēts profilā). Ja profils nedod uz 4 porta adreses, tad var inets arī nebūt. Ja vajag - to pa telefonu varēja aktivizēt.
    4. ports ari tiek lietots ja ir statiskā ip adrese, izņemot vienu modemu, cik atceros tas laikam bija Alcatel Lucent I-240G-P
    es joprojām par MAC limit balsotu
    no more OC

  12. #12
    Pieredzējis lietpratējs Lifz's Avatar
    Join Date
    28-06-07
    Posts
    1,161
    Rep Power
    300

    Default

    Kādu laiku lietoju TET ar ODI DFP-34X-2C2 transīveri un RB5009. Uzcepu arī manuāli, gan jau kādam noderēs.

    Code:
    ## Follow this guide to connect to sfp module from ROS or follow instructions below
    https://www.hitoha.moe/odi-dfp-34x-2c2-gpon-onu-sfp/
    
    Remove SFP as bridge member
    Go to Bridge -> Ports Tab -> #7
    Change Interface to ether1
    
    Go to Interface -> Interface List -> +
    List: WAN
    Interface: sfp-sfpplus1
    
    Go to IP -> Address -> +
    Address: 192.168.1.100/24
    Network:
    Interface: sfp-sfpplus1
    
    ## To succesfully auth to tet network, you need to get values from nokia modem
    - Software Version (OMCI_SW_VER1, OMCI_SW_VER2)
    - Hardware Version (HW_HWVER)
    - Serial Number (GPON_SN)
    
    ## Open terminal, telnet into SFP module and execute these commands below
    system/telnet 192.168.1.1
    
    flash set OMCI_OLT_MODE 3
    # Note! option 3 will not work on stock firmware, flash modded firmware (M110_sfp_ODI_220923FS.tar) from github - https://github.com/rajkosto/RTL960x/tree/main/Firmware/DFP-34X-2C2
    
    ## flash set OMCI_OLT_MODE 21 ##
    # Should work on stock firmware, but is considered a hack - /bin/checkomci crashes with segmentation fault! Use "flash set OMCI_OLT_MODE 3" instead if possible
    
    flash set OMCI_FAKE_OK 1
    # Enable this for safety purposes - https://hack-gpon.org/ont-odi-realtek-dfp-34x-2c2/#gettingsetting-omci-olt-mode-and-fake-omci
    
    flash set OMCI_SW_VER1 ...
    flash set OMCI_SW_VER2 ...
    flash set HW_HWVER ...
    flash set GPON_SN ...
    flash set LAN_SDS_MODE 6
    # Do not skip this step. This mode forces SFP module to always try connecting to router at 2.5G (works with RB5009). For some reason module does not auto negotiate speed at all with RB5009 router, there are reports online that with media converter auto negotiation happens better. Go to troubleshooting down below, if after reboot you can't get module to come up in ROS - https://hack-gpon.org/ont-odi-realtek-dfp-34x-2c2/#gettingsetting-speed-lan-mode
    # Note! Before setting "flash set LAN_SDS_MODE 6", make sure your device (router or media converter) supports 2.5G mode. If none of your devices supports such speed, then set "flash set LAN_SDS_MODE 1" which uses "1G baseX" speed.
    
    reboot
    # Note! After reboot module either will not become status "running" or it will, but after very long time (if at all). Just go in ROS, disable auto negotiation and set speed to "1G baseX" or "2.5G baseX" to get SFP module running at 1G or 2.5G (set accordingly depending on LAN_SDS_MODE)! This does not mean internet speed will be 2.5G :)
    
    ## If for any other reason ROS just shows SFP as not running after reboot, try troubleshooting steps down below
    
    ## Telnet again in the module
    
    ## If auth will be succesful, then you should be able to get a list of VLANs after reboot by executing command below
    omcicli mib get 84 #read VLANs
    
    ## Now go to ROS and configure settings something like this (for me VLAN 3912 is tet internet)
    /interface ethernet
    set [ find default-name=sfp-sfpplus1 ] auto-negotiation=no speed=2.5G-baseX
    /interface vlan
    add interface=sfp-sfpplus1 name=vlan1 vlan-id=3912
    /interface list
    add comment=defconf name=WAN
    add comment=defconf name=LAN
    /interface bridge port
    add bridge=bridge comment=defconf interface=ether2
    add bridge=bridge comment=defconf interface=ether3
    add bridge=bridge comment=defconf interface=ether4
    add bridge=bridge comment=defconf interface=ether5
    add bridge=bridge comment=defconf interface=ether6
    add bridge=bridge comment=defconf interface=ether7
    add bridge=bridge comment=defconf interface=ether8
    add bridge=bridge comment=defconf interface=sfp-sfpplus1
    /interface list member
    add comment=defconf interface=bridge list=LAN
    add comment=defconf interface=vlan1 list=WAN
    /ip dhcp-client
    add comment=tet-net interface=vlan1
    
    ## If everything went as planned, then you should be able to get an IP address on VLAN using dhcp-client and access the internet. Congrats :)
    
    ## Troubleshooting
    - If you rebooted GPON stick, configured LAN_SDS_MODE setting and disabled auto negotiation in ROS and the stick still does not show in ROS with running status, then unplug and replug GPON module (without fiber plugged in), wait 1 or more minutes, then plug fiber back in.
    The idea is that without fiber cable plugged in the SFP module should start to go through different link speed settings. Experiment plugging the cable in after waiting 1 minute (it takes 1 minute for the SFP stick to bootup). From my tests module tries another link speed after ~25 second intervals. It goes through LAN_SDS_MODE 1(Fiber 1G = 1GbaseX), 3(SGMII MAC = 1Gb MAC), 4(HiSGMII PHY = 2.5Gb PHY) and 7(SGMII Force = 1GbaseT).
    If the stick did no become running, then unplug the module and replug it back in (without fiber cable). Try to plug the fiber cable at a later interval and double check in ROS you have "1G baseX" or "2.5G baseX" with auto negotiation off set!!
    
    - If the stick still does not become running, then solder UART wires to RX and TX pads on GPON module and troubleshoot. Follow hack-gpon.org to find UART pad location!
    In my case, I just soldered RX and TX wires to CH341A (model with voltage select switch). Then I plugged the CH341A in USB port of RB5009UG+S+IN and I plugged in ODI module in SFP cage to get common ground and power to SFP module. Then just set speed to usb port and connect from ROS to CH341A.
        ?? Maybe it's possible to avoid soldering UART just by using media converter box??? - https://github.com/xvzf/zyxel-gpon-sfp/issues/8#issuecomment-1472746286
    
    - If your module does not try to auth to tet network, check auth status in ODI module admin webpage or use this command under telnet "diag gpon get onu-state"
    If you get LOID Status "WRONG" and O0, then it's possible your MAC_KEY is wrong. Follow steps below
        - Use "flash_eraseall /dev/mtd3" to clear all saved config and start from scratch. Before executing this, do save your existing config using "flash all" command!
        - Try to setup SFP module again and check if you get some different status - O1 to O7 and Initial Status is a good sign. O0 and WRONG is not good. Go to step below, if you still have O0 and WRONG status.
            - Use SFP or any other (even nokia modem MAC will work) MAC address, then generate MAC_KEY if you lost it after doing "flash_eraseall /dev/mtd3" or for some any other reason MAC_KEY is incorrect
                - Generate MAC_KEY with this website - https://gchq.github.io/CyberChef/#recipe=To_Upper_case('All')Find_/_Replace(%7B'option':'Regex','string':'%5B%5E0-9A-F%5D*'%7D,'',true,false,true,false)Find_/_Replace(%7B'option':'Regex','string':'%5E'%7D,'hsgq1.9a',true,false,true,false)MD5()&input=MDA6MDA6MDA6MDA6MDA6MDA
    
    ## Useful docs
    https://hack-gpon.org/ont-odi-realtek-dfp-34x-2c2/
    https://github.com/Anime4000/RTL960x

  13. #13
    Pieredzējis lietpratējs xexe's Avatar
    Join Date
    24-01-06
    Posts
    1,082
    Rep Power
    308

    Default

    Paldies par šo noderīgo info, šis tiešam labs.
    Quote Originally Posted by Lifz View Post
    Kādu laiku lietoju TET ar ODI DFP-34X-2C2 transīveri un RB5009. Uzcepu arī manuāli, gan jau kādam noderēs.

    Code:
    ## Follow this guide to connect to sfp module from ROS or follow instructions below
    ....
    no more OC

  14. #14
    Pieredzējis lietpratējs Bender's Avatar
    Join Date
    24-05-06
    Posts
    3,833
    Rep Power
    544

    Default

    Quote Originally Posted by xexe View Post
    4. ports ari tiek lietots ja ir statiskā ip adrese, izņemot vienu modemu, cik atceros tas laikam bija Alcatel Lucent I-240G-P
    es joprojām par MAC limit balsotu
    Man kopš pirmsākumiem (vēl no DSL laikiem) ir divas statiskās IP un vienmēr bija 1. portā, bet pirms kāda gada vai diviem vienkārši pazuda nets. Izrādās, ka 4. jāpārspauž.

  15. #15
    Pieredzējis lietpratējs xexe's Avatar
    Join Date
    24-01-06
    Posts
    1,082
    Rep Power
    308

    Default

    Quote Originally Posted by Bender View Post
    Man kopš pirmsākumiem (vēl no DSL laikiem) ir divas statiskās IP un vienmēr bija 1. portā, bet pirms kāda gada vai diviem vienkārši pazuda nets. Izrādās, ka 4. jāpārspauž.
    no pirmssākumiem kad Tdvdran:dsls un pats vareja visu kruķīt, bet tad laiki mainījas
    no more OC

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •