> 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

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.

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.

> [...] 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)


-- 
Russell Senior, President
[email protected]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to