On 07/20/2016 11:59 PM, Russell Senior wrote: > Dick> I may need to be without Comcast for a time. Is there a way to use > Dick> a tablet WiFi hotspot and a laptop to feed my router so I can > Dick> support two desktops? > > <...> > > Oh, and yes (actually reading what you wrote), running it through a > laptop can work. Laptop wifi connects to your mobile hotspot, ethernet > connects your laptop to the WAN port on a router (or directly to a > switch or desktop machine), give the ethernet interface a static IP on a > different network from the mobile hotspot, e.g. 192.168.11.1/24, then run > the command: > > iptables -t nat -I POSTROUTING -o wlan0 -j MASQUERADE > > (where wlan0 is your laptop's wireless interface connecting to the > mobile hotspot). > > Then you'll need to run a DHCP server providing leases on the ethernet > interface only, and you are done.
Okay. I'm starting to try this. I have a Thinkpad X200 laptop talking to my Verizon Ellipsis 8 hotspot. I'm looking at how to set the X200 eth0 to static, so I can connect it to my Buffalo WZR 600 DHP router. From: http://askubuntu.com/questions/470237/assigning-a-static-ip-to-ubuntu-server-14-04-lts it recommends putting the following into /etc/network/interfaces, with addresses suited to my situation: __________________________________________ auto eth0 iface eth0 inet static address 10.253.0.50 netmask 255.255.255.0 network 10.253.0.0 gateway 10.253.0.1 dns-nameservers 8.8.8.8 __________________________________________ The Buffalo router will be serving addresses in the 192.168.0.xxx range, so I assume I should use an address in a different range for the X200's eth0. ifconfig on the X200 shows the address of wlan0 as 192.168.43.206. I assume that's the address provided by the Ellipsis 8 hotspot. Does that mean that the X200's eth0 should be in that range? Or should I use something like 192.168.1.100? The netmask entry looks like every other netmask entry I've ever seen, so that's probably okay. What should the network entry be? Should it be 192.168.43.0, or 192.168.1.0, or something else? Am I correct in assuming the gateway is the address assigned by the hotspot? I know dns-nameservers 8.8.8.8 is Google's, and I assume that's okay. So, should /etc/network/interfaces look something like this? __________________________________________ auto eth0 iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 network ??? gateway 192.168.43.206 dns-nameservers 8.8.8.8 __________________________________________ I know I have to install isc-dhcp-server on the X200 before I can connect the router to it. Fortunately I have a few days to get this figured out. -- Regards, Dick Steffens _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
