On 07/23/2016 03:56 PM, Russell Senior wrote:
>> 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
>> __________________________________________
> You don't need the gateway or dns-nameservers.  The laptop's default
> gateway will be set by its wlan interface DHCP lease.
>
> So, just:
>
> auto eth0
> iface eth0 inet static
>        address 10.253.0.1
>        netmask 255.255.255.0
>        network 10.253.0.0

Good to know.

> The network part (i.e. 10.253.0) should be different than what your
> mobile hotspot is providing, and different than what your Buffalo is
> providing.  Otherwise, it can be anything in the 10.x.y.z range or
> 192.168.x.y range that doesn't conflict.  The .1 as the host part is
> traditional for a gateway router (though tastes vary), which your laptop
> is for the Buffalo.

Right. I think I understand that one. Three different ranges.

> You want to have an iptables rule on the laptop to do the NAT.  Assuming
> the wireless inteface is wlan0, then:
>
>    iptables -t nat -I POSTROUTING -o wlan0 -j MASQUERADE
>
> That will handle the routing back to your Buffalo.

Right. I remember reading that in your earlier e-mail. I just haven't 
gotten that far, yet. :-)

>
>> [...] I know I have to install isc-dhcp-server on the X200 before I
>> can connect the router to it.
> A simpler alternative is to log in to the Buffalo and give it a static
> configuration on its WAN interface as well, for example:
>
>    ip: 10.253.0.2
>    netmask: 255.255.255.0
>    gateway: 10.253.0.1
>    dns: 8.8.8.8 (or whatever you like)

Simple is better. Then I won't have to uninstall it after I don't need 
it anymore. I will have to remember to comment out the stuff I put in 
/etc/network/interfaces when this is no longer needed, though.

I'll post a summary once I've got it working, although I may not get 
back to it until later tomorrow.

Thanks for your help.

-- 
Regards,

Dick Steffens

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to