Announcement

Collapse
No announcement yet.

Mikrotik Club

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ขอคำชี้แนะด้วยครับเราจะจำกัดความเร็วแต่ละuserต่างกันได้ไหมครับ ทำอย่างไร
    ขอบคุณครับ

    Comment


    • Originally posted by kaninsan View Post
      ขอคำชี้แนะด้วยครับเราจะจำกัดความเร็วแต่ละuserต่างกันได้ไหมครับ ทำอย่างไร
      ขอบคุณครับ
      ถ้าเป็น Hotspot ก็ให้สร้าง User Profile ตามต้องการเป็นหลายความเร็ว
      แล้วพอสร้าง user เราก็กำหนดให้ user ไหนความเร็วเท่าไหร่ ตาม Profile ได้เลยครับ

      capture-20130117-002622-vert.jpg
      Last edited by comkios; 17 Jan 2013, 00:33:33.

      Comment


      • ว่าจะไม่คอมเม้นแล้วนะแต่ ตองหนึ่งมันหน้าสนใจ 555+

        Comment


        • ขอทราบวิธีทำ allow เว็บที่เราเข้าไปโดยไม่ต้อง login ครับต้องทำยังไงบ้าง

          เห็นมีในเว็บนี้ แต่ทำไม่เป็นอ่ะครับ http://wiki.mikrotik.com/wiki/Manual.../Walled_Garden

          Comment


          • Originally posted by somphongn View Post

            อธิบาย สั้นๆนะครับ
            เราใช้ประโยชน์จาก Watchdog มาทำ reboot
            ไม่อธิบายนะครับว่า watchdog คืออะไร ทำตามผมได้เลยครับ ถ้าต้องการ reboot ทุกๆ 24 ชม
            หัวข้อนี้ แปลตรงตัวทุกอย่างเลยครับผม


            ผมสั่ง ping ไปที่ IP 10.10.10.10.1 (ไม่มีอยู่จริงในระบบ)
            ping ทุกๆ 12ชม (43200 วินาที)
            ping หลังจากเปิดเครื่องแล้ว 2นาที (60 วินาที)
            ping ไม่เจอ 2 ครั้ง มันจะ Reboot ตัวเอง (ping 2 ครั้ง ครั้งล่ะ12ชม ก็24ชม พอดี)


            หัวข้อนี้มีอยุ่ใน UBNT Club หน้าแรกอยู่แล้วครับผม
            watchdog คือวงจร timer ธรรมดานี่แหละ โดยถ้าถึงเวลาที่ตั้งไว้ มันจะส่งสัญญาณไปรีเซ็ต CPU ทำให้ CPU reboot ใหม่
            วิธี ที่จะทำให้ CPU ไม่ reboot คือ CPU ต้องคอยไป reset timer ของ watchdog อยู่เรื่อยๆ ครับ ถ้า CPU hang มันจะไม่ไป reset watchdog, CPU ก็จะ reboot แล้วเริ่มทำงานใหม่?
            เครดิส http://www.eanic.com/forum/viewthrea...&thread_id=142

            Comment


            • Originally posted by no_coke View Post
              วันนี้เจอปัญหาสองจุด สอบถามเพื่อความเข้าใจหน่อยครับ...

              1. ค่า session Timeout ที่ผมตั้งไว้ทำไมพอถึง 1 ชม.แล้วมันไม่ตัดครับ เครื่องลูกยังเล่นได้อยู่



              2. เครื่องที่ผมทำ IP Bindings ไว้ทำไมมันถึงออกเน็ตไม่ได้ครับ ขึ้นว่าไม่เจอ DNS (เลือก bypass ไว้ไม่ได้เลือก block ครับ) แต่พอ disable กลับเข้าเน็ตได้ปกติ
              session Timeout ไม่ตัดรอกครับ เพราะเราสร้าง user profile ใว้ มันจะอยู่อย่างนั้นละ ไม่มีผลใร จงใว้ะวนไปวนมา ไม่ยอมตัด user ที่เราสร้างใว้

              แนะนำให้สร้างใน userman ครับ เอาแบบใครที่ จะใช้ 1ชม ก็ไปสร้างใน userman ถ้าขาประจำ ค่อย มาสร้าง ใน user profile

              อาการแบบท่านผมลองมาละ ไม่ได้ผล

              Comment


              • ไม่รู้จะตอบอันไหน เอาอันนี้ล่ะกัน

                Originally posted by starmax01 View Post
                ขอทราบวิธีทำ allow เว็บที่เราเข้าไปโดยไม่ต้อง login ครับต้องทำยังไงบ้าง

                เห็นมีในเว็บนี้ แต่ทำไม่เป็นอ่ะครับ http://wiki.mikrotik.com/wiki/Manual.../Walled_Garden
                สมมุติว่าผมจะ bypass www.kapook.com จะใส่เป็น *.kapook.*
                ไม่งั้นพวก ลิงค์ข้างในมันจะเข้าไม่ได้
                ปกติผม bypass เฉพาะเวปร้านเท่านั้นนะ

                Comment


                • สอบถามเพื่อเป็นข้อมูล มีตัวไหนพอจะรองรับ ยูสเซอร์ ออนไลน์ พร้อมกัน 300 กว่าคนได้บ้าง หรือต้องทำไงถึงจะใช้ได้

                  Comment


                  • 300 user ผมว่า server ดีกว่าครับ
                    Mikrotik ก็ต้อง radius นอก

                    http://www.sysnetcenter.com/board/index.php?topic=296.0

                    Comment


                    • Originally posted by ross_ice View Post
                      Mikrotik RB750GL online 30 user ยังเด็กๆ ส่ง log nsa310 ดัวย cpu ใช้แค่ 20-50%
                      [ATTACH=CONFIG]2112967[/ATTACH]
                      เลิก user man
                      แล้วมาจัดการ ทางapi กันดีกว่า

                      แจกกันไป php api resource + user online (ใช้ใน localhost นะครับ)

                      เปลี่ยน ip mikrotik 10.5.50.1 user pass ด้วยครับ
                      Code:
                      if ($API->connect('10.5.50.1', 'admin', 'passs'))
                      Code:
                      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                      <html xmlns="http://www.w3.org/1999/xhtml">
                      
                      <!-- by ross_ice-->
                      
                      <head>
                      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                      <title>User Online Mikrotik</title>
                      </head>
                      <body>
                      <?php
                      
                      require('routeros_api.class.php');
                      
                      $API = new routeros_api();
                      
                      //$API->debug = true;
                      
                      if ($API->connect('10.5.50.1', 'admin', 'passs')) {
                      
                      $resource = $API->comm("/system/resource/print");
                      //echo "<pre>";print_r($resource);die();
                      
                      $free_memory=$resource[0]['free-memory'];
                      
                      $free_memory = $free_memory/1024;
                      $free_memory = round($free_memory, 0);
                      $cpu_load = $resource[0]['cpu-load'];
                      $run_uptime = $resource[0]['uptime'];
                      $hdd_space = $resource[0]['free-hdd-space'];
                      $hdd_space= $hdd_space/1024;
                      $hdd_space = round($hdd_space, 0);
                      echo "Resource // (Cpu Run :$cpu_load %)     (Free Memory : $free_memory MB)    (Hdd Space : $hdd_space MB)    (Up Time : $run_uptime) <br>";
                      
                      
                      $items = $API->comm("/ip/hotspot/active/print");
                      
                      
                      echo "On Line ".$all_user=count($items) ." User <br>";
                      
                      $count=0;
                      while ( $count < $all_user){
                      $user = $items[$count]['user'];
                      $ip = $items[$count]['address'];
                      $maca = $items[$count]['mac-address'];
                      $uptime = $items[$count]['uptime'];
                      
                      echo "/user : $user /IP : $ip /mac : $maca /uptime : $uptime <br>";
                      $count++;
                      }
                      //echo "<pre>";print_r($items['0']);die();
                      
                         $API->disconnect();
                      
                      }
                      
                      ?>
                      </body>
                      </html>



                      อันนี้ api add user mikrotik อัพโหลด จากไฟล์ csv เพิ่มทีล่ะ 100 user 30 วิก็เสร็จแล้ว

                      Code:
                      <?
                      require('routeros_api.class.php');
                      
                      //confik connect
                      
                      $mikrotik_ip = '10.5.50.1';  // เปลี่ยน ip mikrotik เป็นของตัวเอง
                      $mikrotik_username = 'admin';  //   เปลี่ยน admin mikrotik เป็นของตัวเอง
                      $mikrotik_password = 'password';   //เปลี่ยน pass admin mikrotik เป็นของตัวเอง
                      
                      
                      move_uploaded_file($_FILES["fileCSV"]["tmp_name"],$_FILES["fileCSV"]["name"]); // Copy/Upload CSV
                      
                      
                      $objCSV = fopen($_FILES["fileCSV"]["name"], "r");
                      while (($objArr = fgetcsv($objCSV, 1000, ",")) !== FALSE) {
                      
                      
                          $username_add=$objArr[1];    //user ดึงมาจาก .csv (col 2)
                          $password_add=$objArr[2];    //password ดึงมาจาก .csv (col 3)
                          $hotspot_server = 'hotspot1';    // เปลี่ยน hotspot server mikrotik เป็นของตัวเอง   ของผมมีอันเดียว hotspot1 fix ไว้เลย
                          $hotspot_profile = '2m';         // เปลี่ยน  user profile เป็นของตัวเอง  ของผม  2m เป็นหลัก fix ไว้เลย
                          $limit_uptime=$objArr[4].'d 00:00:00';    // limit uptime  ตั้งให้ใช้ได้ กี่วัน ดึงมาจาก .csv (col 5)  (ex รูปแบบ 30d 00:00:00 คือใช้ได้  30วัน)
                      
                      	
                          if($username_add  != '' ){
                         
                         ///// start
                         $API = new routeros_api();
                      // $API->debug = true;
                      
                      if ($API->connect($mikrotik_ip,$mikrotik_username,$mikrotik_password)){
                      
                      		$username="=name=".$username_add;
                      
                      		$pass="=password=".$password_add;
                      
                      		$server="=server=".$hotspot_server;
                      
                      		$uptimes="=limit-uptime=".$limit_uptime;
                      				
                      		$profile="=profile=".$hotspot_profile;
                      		
                      
                       
                      	   	$API->write('/ip/hotspot/user/add',false);
                      	   	$API->write($username, false);
                      	   	$API->write($pass, false);
                      	   	$API->write($server, false);
                      		$API->write($uptimes, false);
                      		$API->write($profile);
                      
                      		$items = $API->read();
                              
                      		// Debug variable (return value)
                      		//echo "<pre>";
                      	   	//print_r($items);
                      		//echo "</pre>";
                      
                         	$API->disconnect();
                         }
                        
                         ///// end
                         
                         
                         
                         
                         
                      	}
                      }
                      fclose($objCSV);
                      
                      echo "Upload & Import Done.";
                      
                      ?>
                      ตัวอย่าง ไฟล์ csv ของผม เขียน php gen เข้าเว็บไชต์เติมเงินทางทรูมันนี่ แล้ว Export ออกมาเป็น csv ไม่ต้องง้อ user man อีกตามเคย

                      col1= id , col 2 =user ,col3=password, col4= ราคาแพ็คเก็ต ,col5=วันใช้งาน

                      Code:
                      2,1dmp9gg,h3ts,50,10,,0,,,,, 
                      3,1dn0uy5,png6,50,10,,0,,,,, 
                      4,1dr8eg5,1i9b,50,10,,0,,,,, 
                      5,1dphpd0,383b,50,10,,0,,,,, 
                      6,1d8yiyg,xkps,50,10,,0,,,,, 
                      7,1dgr7gw,a5t6,50,10,,0,,,,, 
                      8,1d1nh2l,3kes,50,10,,0,,,,, 
                      9,1d8vwp9,3c1v,50,10,,0,,,,, 
                      10,1duhbdv,0g4m,50,10,,0,,,,,
                      Originally posted by ross_ice View Post
                      อันนี้ ไฟล์ routeros_api.class.php เก็บไว้ foder เดียวกันด้วย
                      Code:
                      <?php
                      /*****************************
                       *
                       * RouterOS PHP API class v1.4
                       * Author: Denis Basta
                       * Contributors:
                       *    Nick Barnes
                       *    Ben Menking (ben [at] infotechsc [dot] com)
                       *    Jeremy Jefferson (http://jeremyj.com)
                       *    Cristian Deluxe (djcristiandeluxe [at] gmail [dot] com)
                       *
                       * http://www.mikrotik.com
                       * http://wiki.mikrotik.com/wiki/API_PHP_class
                       *
                       ******************************/
                      
                      class routeros_api
                      {
                          var $debug = false;      // Show debug information
                          var $error_no;           // Variable for storing connection error number, if any
                          var $error_str;          // Variable for storing connection error text, if any
                          var $attempts = 5;       // Connection attempt count
                          var $connected = false;  // Connection state
                          var $delay = 3;          // Delay between connection attempts in seconds
                          var $port = 8728;        // Port to connect to
                          var $timeout = 3;        // Connection attempt timeout and data read timeout
                          var $socket;             // Variable for storing socket resource
                          
                          /**
                           * Print text for debug purposes
                           *
                           * @param string      $text       Text to print
                           *
                           * @return void
                           */
                          function debug($text)
                          {
                              if ($this->debug)
                                  echo $text . "\n";
                          }
                      	
                      	
                          /**
                           * 
                           *
                           * @param string        $length
                           *
                           * @return void
                           */
                          function encode_length($length)
                          {
                              if ($length < 0x80) {
                                  $length = chr($length);
                              } else if ($length < 0x4000) {
                                  $length |= 0x8000;
                                  $length = chr(($length >> 8) & 0xFF) . chr($length & 0xFF);
                              } else if ($length < 0x200000) {
                                  $length |= 0xC00000;
                                  $length = chr(($length >> 16) & 0xFF) . chr(($length >> 8) & 0xFF) . chr($length & 0xFF);
                              } else if ($length < 0x10000000) {
                                  $length |= 0xE0000000;
                                  $length = chr(($length >> 24) & 0xFF) . chr(($length >> 16) & 0xFF) . chr(($length >> 8) & 0xFF) . chr($length & 0xFF);
                              } else if ($length >= 0x10000000)
                                  $length = chr(0xF0) . chr(($length >> 24) & 0xFF) . chr(($length >> 16) & 0xFF) . chr(($length >> 8) & 0xFF) . chr($length & 0xFF);
                              return $length;
                          }
                      	
                      	
                          /**
                           * Login to RouterOS
                           *
                           * @param string      $ip         Hostname (IP or domain) of the RouterOS server
                           * @param string      $login      The RouterOS username
                           * @param string      $password   The RouterOS password
                           *
                           * @return boolean                If we are connected or not
                           */
                          function connect($ip, $login, $password)
                          {
                              for ($ATTEMPT = 1; $ATTEMPT <= $this->attempts; $ATTEMPT++) {
                                  $this->connected = false;
                                  $this->debug('Connection attempt #' . $ATTEMPT . ' to ' . $ip . ':' . $this->port . '...');
                                  if ($this->socket = @fsockopen($ip, $this->port, $this->error_no, $this->error_str, $this->timeout)) {
                                      socket_set_timeout($this->socket, $this->timeout);
                                      $this->write('/login');
                                      $RESPONSE = $this->read(false);
                                      if ($RESPONSE[0] == '!done') {
                                          if (preg_match_all('/[^=]+/i', $RESPONSE[1], $MATCHES)) {
                                              if ($MATCHES[0][0] == 'ret' && strlen($MATCHES[0][1]) == 32) {
                                                  $this->write('/login', false);
                                                  $this->write('=name=' . $login, false);
                                                  $this->write('=response=00' . md5(chr(0) . $password . pack('H*', $MATCHES[0][1])));
                                                  $RESPONSE = $this->read(false);
                                                  if ($RESPONSE[0] == '!done') {
                                                      $this->connected = true;
                                                      break;
                                                  }
                                              }
                                          }
                                      }
                                      fclose($this->socket);
                                  }
                                  sleep($this->delay);
                              }
                              if ($this->connected)
                                  $this->debug('Connected...');
                              else
                                  $this->debug('Error...');
                              return $this->connected;
                          }
                      	
                      	
                          /**
                           * Disconnect from RouterOS
                           *
                           * @return void
                           */
                          function disconnect()
                          {
                              fclose($this->socket);
                              $this->connected = false;
                              $this->debug('Disconnected...');
                          }
                      	
                      	
                          /**
                           * Parse response from Router OS
                           *
                           * @param array       $response   Response data
                           *
                           * @return array                  Array with parsed data
                           */
                          function parse_response($response)
                          {
                              if (is_array($response)) {
                                  $PARSED      = array();
                                  $CURRENT     = null;
                                  $singlevalue = null;
                                  $count       = 0;
                                  foreach ($response as $x) {
                                      if (in_array($x, array(
                                          '!fatal',
                                          '!re',
                                          '!trap'
                                      ))) {
                                          if ($x == '!re') {
                                              $CURRENT =& $PARSED[];
                                          } else
                                              $CURRENT =& $PARSED[$x][];
                                      } else if ($x != '!done') {
                                          if (preg_match_all('/[^=]+/i', $x, $MATCHES)) {
                                              if ($MATCHES[0][0] == 'ret') {
                                                  $singlevalue = $MATCHES[0][1];
                                              }
                      						$CURRENT[$MATCHES[0][0]] = (isset($MATCHES[0][1]) ? $MATCHES[0][1] : '');
                      					}
                                      }
                                  }
                                  if (empty($PARSED) && !is_null($singlevalue)) {
                                      $PARSED = $singlevalue;
                                  }
                                  return $PARSED;
                              } else
                                  return array();
                          }
                      	
                      	
                          /**
                           * Parse response from Router OS
                           *
                           * @param array       $response   Response data
                           *
                           * @return array                  Array with parsed data
                           */
                          function parse_response4smarty($response)
                          {
                              if (is_array($response)) {
                                  $PARSED  = array();
                                  $CURRENT = null;
                                  $singlevalue = null;
                                  foreach ($response as $x) {
                                      if (in_array($x, array(
                                          '!fatal',
                                          '!re',
                                          '!trap'
                                      ))) {
                                          if ($x == '!re')
                                              $CURRENT =& $PARSED[];
                                          else
                                              $CURRENT =& $PARSED[$x][];
                                      } else if ($x != '!done') {
                                          if (preg_match_all('/[^=]+/i', $x, $MATCHES)) {
                                              if ($MATCHES[0][0] == 'ret') {
                                                  $singlevalue = $MATCHES[0][1];
                                              }
                                              $CURRENT[$MATCHES[0][0]] = (isset($MATCHES[0][1]) ? $MATCHES[0][1] : '');
                      					}
                                      }
                                  }
                                  foreach ($PARSED as $key => $value) {
                                      $PARSED[$key] = $this->array_change_key_name($value);
                                  }
                                  return $PARSED;
                                  if (empty($PARSED) && !is_null($singlevalue)) {
                                      $PARSED = $singlevalue;
                                  }
                              } else {
                                  return array();
                              }
                          }
                      	
                      	
                          /**
                           * Change "-" and "/" from array key to "_"
                           *
                           * @param array       $array      Input array
                           *
                           * @return array                  Array with changed key names
                           */
                          function array_change_key_name(&$array)
                          {
                              if (is_array($array)) {
                                  foreach ($array as $k => $v) {
                                      $tmp = str_replace("-", "_", $k);
                                      $tmp = str_replace("/", "_", $tmp);
                                      if ($tmp) {
                                          $array_new[$tmp] = $v;
                                      } else {
                                          $array_new[$k] = $v;
                                      }
                                  }
                                  return $array_new;
                              } else {
                                  return $array;
                              }
                          }
                      	
                      	
                          /**
                           * Read data from Router OS
                           *
                           * @param boolean     $parse      Parse the data? default: true
                           *
                           * @return array                  Array with parsed or unparsed data
                           */
                          function read($parse = true)
                          {
                              $RESPONSE = array();
                              while (true) {
                                  // Read the first byte of input which gives us some or all of the length
                                  // of the remaining reply.
                                  $BYTE   = ord(fread($this->socket, 1));
                                  $LENGTH = 0;
                                  // If the first bit is set then we need to remove the first four bits, shift left 8
                                  // and then read another byte in.
                                  // We repeat this for the second and third bits.
                                  // If the fourth bit is set, we need to remove anything left in the first byte
                                  // and then read in yet another byte.
                                  if ($BYTE & 128) {
                                      if (($BYTE & 192) == 128) {
                                          $LENGTH = (($BYTE & 63) << 8) + ord(fread($this->socket, 1));
                                      } else {
                                          if (($BYTE & 224) == 192) {
                                              $LENGTH = (($BYTE & 31) << 8) + ord(fread($this->socket, 1));
                                              $LENGTH = ($LENGTH << 8) + ord(fread($this->socket, 1));
                                          } else {
                                              if (($BYTE & 240) == 224) {
                                                  $LENGTH = (($BYTE & 15) << 8) + ord(fread($this->socket, 1));
                                                  $LENGTH = ($LENGTH << 8) + ord(fread($this->socket, 1));
                                                  $LENGTH = ($LENGTH << 8) + ord(fread($this->socket, 1));
                                              } else {
                                                  $LENGTH = ord(fread($this->socket, 1));
                                                  $LENGTH = ($LENGTH << 8) + ord(fread($this->socket, 1));
                                                  $LENGTH = ($LENGTH << 8) + ord(fread($this->socket, 1));
                                                  $LENGTH = ($LENGTH << 8) + ord(fread($this->socket, 1));
                                              }
                                          }
                                      }
                                  } else {
                                      $LENGTH = $BYTE;
                                  }
                                  // If we have got more characters to read, read them in.
                                  if ($LENGTH > 0) {
                                      $_      = "";
                                      $retlen = 0;
                                      while ($retlen < $LENGTH) {
                                          $toread = $LENGTH - $retlen;
                                          $_ .= fread($this->socket, $toread);
                                          $retlen = strlen($_);
                                      }
                                      $RESPONSE[] = $_;
                                      $this->debug('>>> [' . $retlen . '/' . $LENGTH . '] bytes read.');
                                  }
                                  // If we get a !done, make a note of it.
                                  if ($_ == "!done")
                                      $receiveddone = true;
                                  $STATUS = socket_get_status($this->socket);
                                  if ($LENGTH > 0)
                                      $this->debug('>>> [' . $LENGTH . ', ' . $STATUS['unread_bytes'] . ']' . $_);
                                  if ((!$this->connected && !$STATUS['unread_bytes']) || ($this->connected && !$STATUS['unread_bytes'] && $receiveddone))
                                      break;
                              }
                              if ($parse)
                                  $RESPONSE = $this->parse_response($RESPONSE);
                              return $RESPONSE;
                          }
                      	
                      	
                          /**
                           * Write (send) data to Router OS
                           *
                           * @param string      $command    A string with the command to send
                           * @param mixed       $param2     If we set an integer, the command will send this data as a "tag"
                           *                                If we set it to boolean true, the funcion will send the comand and finish
                           *                                If we set it to boolean false, the funcion will send the comand and wait for next command
                           *                                Default: true
                           *
                           * @return boolean                Return false if no command especified
                           */
                          function write($command, $param2 = true)
                          {
                              if ($command) {
                                  $data = explode("\n", $command);
                                  foreach ($data as $com) {
                                      $com = trim($com);
                                      fwrite($this->socket, $this->encode_length(strlen($com)) . $com);
                                      $this->debug('<<< [' . strlen($com) . '] ' . $com);
                                  }
                                  if (gettype($param2) == 'integer') {
                                      fwrite($this->socket, $this->encode_length(strlen('.tag=' . $param2)) . '.tag=' . $param2 . chr(0));
                                      $this->debug('<<< [' . strlen('.tag=' . $param2) . '] .tag=' . $param2);
                                  } else if (gettype($param2) == 'boolean')
                                      fwrite($this->socket, ($param2 ? chr(0) : ''));
                                  return true;
                              } else
                                  return false;
                          }
                      	
                      	
                          /**
                           * Write (send) data to Router OS
                           *
                           * @param string      $com        A string with the command to send
                           * @param array       $arr        An array with arguments or queries
                           *
                           * @return array                  Array with parsed
                           */
                          function comm($com, $arr = array())
                          {
                              $count = count($arr);
                              $this->write($com, !$arr);
                              $i = 0;
                              foreach ($arr as $k => $v) {
                                  switch ($k[0]) {
                                      case "?":
                                          $el = "$k=$v";
                                          break;
                                      case "~":
                                          $el = "$k~$v";
                                          break;
                                      default:
                                          $el = "=$k=$v";
                                          break;
                                  }
                                  $last = ($i++ == $count - 1);
                                  $this->write($el, $last);
                              }
                              return $this->read();
                          }
                      }
                      ?>
                      เอามาดู แบบว่างงอะ
                      Last edited by bombon; 17 Jan 2013, 22:22:15.

                      Comment


                      • mikrotik ถูกออกแบบมาสำหรับ ขนาดเล็ก-กลางครับ

                        ขนาด 300ยูสพร้อมกัน server ยังหน่วงเลย

                        Comment


                        • เป็นทางเลือกครับ
                          CPU : 1.2GHz 36 Core
                          RAM : SODIMM 2 Slot (ใส่มาให้ 4GB)

                          ผมเองก็ไม่รู้ว่ามันจะได้สักกี่ User
                          แต่แต่เทียบ Spec กับ RB1200 แล้ว 300 User สำหรับ CCR น่าจะเป็นไปได้



                          ฝากข่าวครับ
                          อันนี้เสร็จแล้วจะมา Review ให้ดูครับ กับ "MetaRouter"

                          พอดีมีเคสแปลกๆเข้ามา
                          และไม่อยากใช้ Mikrotik 2 เครื่อง ก็เลยจำลอง Mikrotik บน Mikrotik ซะเลย
                          ไม่รู้จะหมู่ หรือจะเละเป็นโจ๊ก
                          Last edited by somphongn; 18 Jan 2013, 02:06:46.

                          Comment


                          • อยากทราบวิธีเซทค่า RB450 g ออกเน็ตโดยไม่ทำ hotspot ทำได้ไหมครับ
                            ขอรายละเอีดยด้วยครั
                            โมเด็ม bridge mode (192.168.1.1)
                            ขอบคุณครับ

                            Comment


                            • ก็เซตเหมือนทำ hotspot ปกตินั่นแหละครับ
                              แต่ไป disable hotspot ไว้

                              Comment


                              • Originally posted by tomodify View Post
                                ก็เซตเหมือนทำ hotspot ปกตินั่นแหละครับ
                                แต่ไป disable hotspot ไว้
                                โอเคครับ ลองแล้วได้ครับ
                                ถ้าเราจะ FIX IP เครื่องลูกเพื่อออกเน็ตล่ะครับ ต้องเซทค่ายังไง
                                ขอบคุณครับ

                                Comment

                                Working...
                                X