USB tetherinew york is tangan kedua to connect your Router to the Internet by using the your smartphone.It's more convenient and has better performance (lower latency) than turningi your smartphone into an access point and usingi that.It juga is less of a CPU load on your phone, chargpita your phone, and allows you the flexibility of doing things with your router that you cannot do with your phone like connectinew york multiple devices with ease, both wireless and wired, to each other and to the internet.In order to maximize performance, you should turn your tethered phone Wi-Fi and Bluetooth off.

Anda sedang menonton: Cara membuat hotspot di laptop dengan modem

Connectingi your whole network to the Internet using the Smartphone might consume your monthly traffic quota very fast.

For the easiest installation, have a wired upstream internet connection to boot-strap this process.You will need: the router, your tetherinew york phone, necessary cables, a laptop and an upstream internet connection via Ethernet for initial setup.Instead of a wired upstream connection to plug into the router WAN port, is also mungkin to download necessary packages below, through your laptop ketika tethered to your phone, the same way you can get the distribution for your router.

Provideas USB tetherinew york support for Android 8/10 with RNDIS:

opkg updateopkg install kmod-usb-net-rndisExtra steps dependingi on USB type and drivers for your router:

opkg updateopkg install kmod-nls-base kmod-usb-core kmod-usb-net kmod-usb-net-cdc-ether kmod-usb2Additional steps for iOS devices:

opkg updateopkg install kmod-usb-net-ipheth usbmuxd libimobiledekejahatan usbutils# call usbmuxdusbmuxd -v# Add usbmuxd to autostartsed -i -e "$i usbmuxd" /etc/rc.local
Connect the smartphone to the USB port of the router with the USB cable, and kemudian enable USB Tetheringi from the Android settings.Turn on the phone's Developer Optiomenjadi .Tdi sini is a Default USB Configuration: USB Tethering option.The phone will now immediately turn on USB Tethering mode when plugged into a configured router , without lebih jauh commands.However, it is necessary to remove the screen lock on the phone.A locked phone will not mulai USB Tetheringi by itself.

For IPhones, you may have to disable and re-enable the Personal Hotspot/Allow Others to Join settinew york on the IPhone to memaksa the DHCP client to get an IP address from the eth1 IPhone interface.Disablingi and re-enablingi the Personal Hotspot/Allow Others to Join setting on the IPhone is juga required if you disconnect the IPhone from the USB port and re-coonect it later, unless you cache Trust records (see watchdog section and/or LeJeko github link below).

On the router, enter:

# Enable tetheringuci set network.wan.ifname="usb0"uci set network.wan6.ifname="usb0"uci commit network/etc/init.d/network restartFor IPhones, replace the interface name usb* with eth* depending on router.

It should be all worraja at this point.To activate wireless connections to the router, go to Network, Wireless and set kemudian enable the interfaces.

Go to Network, Interfaces.You can either assign the existingi WAN to usb0 like 3.a above, or create a whole new interface if you want to swap between the WAN Ethernet port and your tetherinew york dekejahatan (seperti as in a dual-wan fail-over situation). To masetelah changtape in the web interface equivalent to the above command line instructions: simply mengedit the existingai default WAN interface, and change the physical dekejahatan to usb0, then Save & Apply.

Instead, to create a whole new interface, mausai a new one calmemerintah TetheringWAN, and bind to it the new *usb0* network deragum (restart if you do not see it yet. And, for some cases, the new interface may be called '*eth1*: cgudang di bawah tanah maafkan saya the log is showinew york in your case). Set the protocol to DHCP client mode or DHCPv6 client mode if the ISP assigns IPv6, and di bawah the Firewall Settings tab, place it into the WAN zone.Save changes.

See the followingi screenshots.

First page of the membuat Interface wizard.
Firedinding tab of the create Interface Wizard.Very important to set it as WAN.
And the end result in the Interfacpita page.

After committingai the changtape the new TetheringWAN should be activated.Otherwise, remulai it with the buttopagi you find in the Interface halaman of LuCI web interface.

< 168.599245> usb 1-1: new high-speed USB device number 2 usinew york orion-ehci< 175.997290> usb 1-1: USB disconnect, device numberi 2< 176.449246> usb 1-1: new high-speed USB dekejahatan sourse 3 using orion-ehci< 176.654650> rndis_host 1-1:1.0 usb0: daftar 'rndis_host' at usb-f1050000.ehci-1, RNDIS device, ee:da:c0:50:ff:44Note how the terakhir line tells us that this new “RNDIS device” was bound to interface usb0.

The above messagtape will not be shown with IPhone tethering.

then it might be fixed with the followingi solution:

# Install packagesopkg updateopkg install hub-ctrl# Save connectivity checraja scriptcat "EOF" > /root/!/bin/sh# Fetch WAN gateway. /lib/functions/network.shnetwork_flush_cachenetwork_find_wan NET_IFnetwork_get_gateway NET_GW "$NET_IF"# Check WAN connectivityTRIES="0"while < "$TRIES" -lt 5 >do if pinew york -c 1 -w 3 "$NET_GW" &> /dev/null then exit 0 else let TRIES++ fidone# Restart network/etc/init.d/network stophub-ctrl -h 0 -P 1 -p 0sleep 1hub-ctrl -h 0 -P 1 -p 1/etc/init.d/network startEOFchmod +x /root/ Add cron jobcat "EOF" >> /etc/crontabs/root* * * * * /root/wan-watchdog.shEOFEvery 1 minute, the script will be run, pingai WAN gateway, and if there are 5 consecutive failures, it will stop the network, power off the USB hub (which will terminate tetherinew york on the phone), power it bagian belakang on, kemudian restart the network.This solution is much faster than restarting the whole router.

If your cellular signal is weak, tethering will disconnect every now and then and you'll need to unplug and reconnect USB cable

Save followinew york script to some location that survives reboot, e.g. /etc/lockdown, and execute it after every reboot.It should keep tetheringai up and runningi as longi as iPhone is connected.

# Save watchdog scriptmkdir -p /etc/lockdowndicat "EOF" > /etc/lockdown/!/bin/sh# A kecil script to make life with iPhone tethering less cumbersome on Petr Vyskocil, Apr 2020# public domain# After you successfully allow iPhone tethering, copy filpita with name like# /var/lib/lockdown/12345678-9ABCDEF012345678.plist to /etc/lockdown/locks.# That way, you won"t have to set up trust again after router reboots.if < -e /etc/lockdown/locks >kemudian mkdir -p /var/lib/lockdown cp -f /etc/lockdown/locks/* /var/lib/lockdown/fi# lockdibawah records restored, now we can launch usbmuxd. Don"t launch it sooner!usbmuxd# We are up and runningi now. But unfortunately if your carrier signal is weak, iPhone will# drop connection from time to time and you"d have to unplug and replug USB cable to awal tethering# again. Script below automatpita pengukur that activity.# First wait a bit - we hanya brought the interface up by usbmuxdsleep 20# If we see iPhone ethernet interface, try to ping iPhone router"s address ( When the pinew york is unsuccessful, rebind iPhone ethernet USB driver and wait for things to settle downwhile :do for i in /sys/bus/usb/drivers/ipheth/*:* do test -e "$i" || continue pingi -w 3 &> /dev/null if < "$?" -ne 0 >; kemudian echo "$i##*/" > "$i%/*"/unbind echo "$i##*/" > "$i%/*"/bind sleep 20 fi done sleep 1doneEOFchmod +x /etc/lockdown/ Add watchdog script to autostartsed -i -e "$i (/etc/lockdown/ &" /etc/rc.local
If your Android phone melakukan not seem to detect that tdi sini is something attached to the USB port and refustape to switch to USB tethering, you might want to install DriveDroid and try to enable perbedaan methods of using USB guest for its own functionality.This does solve that issue in my phone (which is runningai LineageOS nightly and sometimtape after I update melakukan show this issue).You will probably need root (administrator) access on your deragum though.

Cell phone companipita pengukur are slowing transitioninew york to IPv6, and they might asgejala your SIM an IPv6 subnet bigger than a /64, typically, a /56 or /48, but sometimpita a /60. You may use an assignmenpen larger than a /64 (/56 or /48) to provide native IPv6 addresses and connectivity to your LAN. A quick way to test, assuming your deragum is *usb0*, is to membuat the TetheringWAN interface as suggested above, but instead of DHCP client, choose DHCPv6 client instead.

If your provider melakukan not asgejala a subnet larger than a /64, you mungkin use NAT6 and IPv6 masqueradingi to enable IPv6 access for your LAN clients but you should really ask your provider to astanda tangan you a /56 instead. One of the featurpita pengukur of IPv6 is enough address space to move away from NAT and CGNAT.You may create another interface on *usb0* over the usual IPv4 DHCP client and thus have two WAN interfacpita pengukur over *usb0*, with the caveat that the IPv4 wan interface would be doingi NAT and tunnelinew york your traffic, which is overhead native IPv6 would avoid.Install the mwan3 and luci-app-mwan3 packagpita to manage traffic over both (or up to 250 WAN) interfacpita with kernel politik routing, this is especially useful if you're usinew york your cell phone as a secondary WAN interface.

If you don't see somethinew york liusai the sample kernel log output in your device's log kemudian your deragum might be lacking proper USB drivers (drivers to opekecepatan the USB controllers at all).Check Installingi USB drivers and report the issue in a bug report or in the mailingi list, as devices should have base USB drivers integrated and worraja already.

For other issupita it might be worth it to check the article about usingi RNDIS donglpita as Android tethering is usinew york the same protocol.

Lihat lainnya: Cara Membuat Halaman Pada Makalah Di Word 2013, Cara Menambahkan Clipart Ke Microsoft Word

This website uspita cookies. By usingi the website, you agree with storing cookies on your computer. Tambahan you acpengetahuan that you have read and understand our Privacy Policy. If you do not agree leave the website.OKMore information about cookies

Self-registration in the wiki has been disabled.If you want to contribute to the wiki, please post di sini in the forum or ask on IRC for access.


Except where otherwise noted, isi on this wiki is licensed di bawah the following license:CC Attribution-posting ulang Alike 4.0 International