Menu
admin@MikroTik /ip smb. go up to ip edit - export - Print or save an export script that can be used to restore configuration get - Gets value of item's property print - Print values of item properties set - Change item properties shares - users - admin@MikroTik /ip smb. go up to ip edit - export - Print or save an export script that can be used to restore configuration get - Gets value of item's property print - Print values of item properties set - Change item properties shares - users - As you can see by default the service is disabled, guests are allowed to connect, and all interfaces have sharing access. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 /ip firewall filter # Allow winbox in for sure;) add action=accept chain=input disabled=no dst-port=8291 protocol=tcp # Allow established and related into your router add action=accept chain=input connection-state=established disabled=no add action=accept chain=input connection-state=related disabled=no # Here are the TCP/UDP ports necessary for SMB. Using address-list smb-allow to grant access. Add action=accept chain=input disabled=no dst-port=137-138 protocol=udp src-address-list=smb-allow add action=accept chain=input disabled=no dst-port=137,139 protocol=tcp src-address-list=smb-allow # Block everything else.
Add action=drop chain=input disabled=no # The address list for access to the SMB. /ip firewall address-list add address=1.1.1.1 disabled=no list=smb-allow /ip firewall filter # Allow winbox in for sure;) add action=accept chain=input disabled=no dst-port=8291 protocol=tcp # Allow established and related into your router add action=accept chain=input connection-state=established disabled=no add action=accept chain=input connection-state=related disabled=no # Here are the TCP/UDP ports necessary for SMB. Using address-list smb-allow to grant access. Add action=accept chain=input disabled=no dst-port=137-138 protocol=udp src-address-list=smb-allow add action=accept chain=input disabled=no dst-port=137,139 protocol=tcp src-address-list=smb-allow # Block everything else.
Add action=drop chain=input disabled=no # The address list for access to the SMB. /ip firewall address-list add address=1.1.1.1 disabled=no list=smb-allow This could be used as a great little file share system. Perhaps I’ll test throughput via an X86 with an extra HD installed.
See if I can stream video:). I think this could also be used as an alternate method to backup your configs/update hotspot files. What do you guys think?
Said by: on the routerboards, they use a NAND type memory, as do modern USB and CF cards. MTBF is, therefore, going to be approximately the same for all 3 types. IIRC, the expectation is around 100k write cycles.I wanted to clarify that exact same model '100K write cycle' flash device can become totally unwritable after just a few days if OS does not implement 'wear leveling' algorithm. Even with 'wear leveling'. The implementation varies between OS/filesystems and users write different amount of data per day. Days until drive becomes 'unwritable' = (datasheet write cycles) x (file system overhead) x (total bytes in drive) / (average bytes written per day) Moral: don't go crazy writing traffic logs onto a flash drive!
Butch, could you kindly check what kind of 'wear leveling' algorithm is supported in new versions of Mikrotik RouterOS? Also what is their 'file system overhead ' it will be a fraction like 0.7 for a DOS/FAT system. For USB Flash drives, Toshiba calculated that a 10,000 write cycle endurance would enable customers to completely write and erase the entire contents once per day for 27 years, well beyond the life of the hardware.You can see that Toshiba simply calculated (10,000 erase cycles / 365 days = 27 years ) which implies re-writing 1GB/day to a 1GB drive. This is OK for digital cameras and USB mass storage. But imagine an embedded system is updating temp files and log files many times per second effectively re-writing 1TB/day to a 1GB drive. That will make a 10,000 cycle device un-writable after less than 10 days using the proper formula. Which BTW applies to all flash drives out there.
Clean Install From Usb Drive
Said by: Butch, could you kindly check what kind of 'wear leveling' algorithm is supported in new versions of Mikrotik RouterOS? Also what is their 'file system overhead ' it will be a fraction like 0.7 for a DOS/FAT system. As sibisties said, this is in the firmware for the flash card/chip. I agree with your assessment mathematically, but in practice, it doesn't seem to work that way. That 100k write cycles may be old news, too.
I am remembering from a long time ago and just went to check my main information source (google) and that number still exists. As I said, though, in practice, I have not seen an issue with write cycles. Said by: I agree with your assessment mathematically, but in practice, it doesn't seem to work that way.I agree that datasheet cycles are improving and quality device makers tend to be pessimistic, but the expected lifetime still follows that equation. We can simplify using 1.0 (zero overhead) for RouterOS filesystem. So Expected lifetime = Datasheet cycles x Flash Size / Average Writes per Day You could prove the equation in less than a month by setting up an extreme MT configuration which echoes/logs everything imaginable to create 32GB writes per day to a 32MB CF card.
Said by: I agree with your assessment mathematically, but in practice, it doesn't seem to work that way.I agree that datasheet cycles are improving and quality device makers tend to be pessimistic, but the expected lifetime still follows that equation. We can simplify using 1.0 (zero overhead) for RouterOS filesystem. Actix crack keygen website. Manual for garmin homeport for ipad.
So Expected lifetime = Datasheet cycles x Flash Size / Average Writes per Day You could prove the equation in less than a month by setting up an extreme MT configuration which echoes/logs everything imaginable to create 32GB writes per day to a 32MB CF card. Of course that's why most decent network engineers would employ a syslog server making this a moot point. Said by: Ours shows the following Re-writes since last reboot 1,086,926 Lifetime re-writes 53,355,138You are confusing writes with re-writes. Write-sect-since-reboot: 1,086,926 write-sect-total: 53,355,138 The only way to re-write is to erase a whole block size varies from 64KB to 512KB and reprogram every bit to 1.
Within each formatted/erased block, there are many individual pages size varies from 1K to 16K which are written by flipping 1 to 0. It is not possible to flip a 0 back to 1 without erasing whole block again.
So the flash controller marks the current page as garbage and copies updated content to a new (previously erased) page location. If you write a script to write the current time every second, a whole new page will be written every second. After number of seconds equal to total free pages has passed, all pages are 'garbage'. So controller will erase a whole block which had the least number of previous erasures. Each block can be erased maximum of 10,000 times in current generation (50nm) MLC flash chips used inside high capacity CF/SD/USB modules we purchase today. I talked to my semiconductor colleagues and upcoming 35nm MLC chips (even higher capacity) have even lower erase cycles in the 3000-5000 range. So life expectancy is getting worse, not better as we expect.
I’ve now tested on an x86 based router I have. If I attempt to stream with with windows media player it just doesn’t work. It looks like WMP tries to pull video at 50MbI’m guessing it is doing some kind of buffering.
If I use VLC it pulls at a little over a 1.2Mb and streams just fine. The x86 CPU sits at about 3-4%. I’m wondering if WMP will stream properly if I were streaming from an internal HD on the x86 Mikrotikhmmmm. The moral of the story is that it requires a decent bit of CPU to properly use the SMB service. Perhaps Normis will send me one of every model to test with?
If you want to install Windows XP but your Desktop PC / Laptop has NO CDROM/NETWORK BOOT option, then still you can install Windows XP using USB Disk. Its simple and handy in many situations. Specially for network / hardware support personnel because USB have added benefits. You can add / remove several apps on the fly from usb. There are several ways to do this, For example If you have USB disk with under Select the WINDOWS XP Source path (CD or Extracted version) (As Shown in the image below). 5) Select Option 2 Select USB-Drive Target Drive (As Shown in the image below).
It will ask you to whether you want to install XP in Un-Attendend mode, which means that it will auto enter the required info during the setup installation like User names / Windows XP CD KEY / TimeZone etc. Select YES and enter the required info like User Name CD Key etc. Follow the on screen instructions. (As Shown in the image below). 6) Now select option # 3 Make MultiBoot and Copy Source to start the setup copy process. (As Shown in the image below).
After this It will start copying XP files to USB and will perform necessary actions to make it Bootable. After All data is copied It will inform you that ” FileCopy to USB-Drive is Ready -OK- Success”, Click YES to continue. (As Shown in the image below). Your USB – Drive is ready for Booting. Plug it to your computer and in BIOS select USB in first boot device. After booting from USB you will see boot menu of usb, Something Like below image.
Winbox Mikrotik
Choose Text installation at first time and GUI INSTALLATION AFTER REBOOT TWICE! ( Description: Choose step 1 to start installing xp in text mode, partition setup etc, After reboot choose step two, After continued install, choose step 2 AGAIN to log into XP – As soon as you arrive at the Windows XP Desktop you can safely remove the USB Drive. DO NOT REMOVE USB STICK UNTIL YOU’LL SEE XP’s FINAL LOGIN SCREEN!.
Regard’s SYED JAHANZAIB [email protected].
I’ve now tested on an x86 based router I have. If I attempt to stream with with windows media player it just doesn’t work. It looks like WMP tries to pull video at 50MbI’m guessing it is doing some kind of buffering. If I use VLC it pulls at a little over a 1.2Mb and streams just fine.
The x86 CPU sits at about 3-4%. I’m wondering if WMP will stream properly if I were streaming from an internal HD on the x86 Mikrotikhmmmm.
The moral of the story is that it requires a decent bit of CPU to properly use the SMB service. Perhaps Normis will send me one of every model to test with?
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |