home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] %route 666?

On Tue, May 23, 2006 at 01:51:02AM -0400, Sebastien Bailard wrote:
> 
> What should I do to fix this?  I think I need to fix the routing table, but 
> I'm not sure what to do.  Also, what will my desktop use as a dns server?

Insure that the laptop is forwarding packets

# sysctl -w net.ipv4.ip_forward=1

On Debian edit the ip_forward option in /etc/network/options to make
the change permenant.


Tell the gateway-router-wireless device how to find the desktop. Most
of these devices have a static route section. You will
want to specify something like:

address: 192.168.1.0
netmask: 255.255.255.0
gateway: 192.168.0.IP_addr_of_laptop

You probably need to use a static ip on the laptop so it works when
everything is rebooted.

Make sure that the desktop has the the laptop's 192.168.1.1 address as
a default route, not 192.168.0.1.



> 	root@kappa:~# cat my_dhcpd.conf
> 	option domain-name-servers 192.168.0.1;
> 	option routers 192.168.0.1;
                       ^^^^^^^^^^^
Should be ip address of laptop: 192.168.1.1



> But now my routing table is

>  192.168.1.0     *               255.255.255.0   U     0  0 0 eth0
>  192.168.0.0     *               255.255.255.0   U     0  0 0 eth1
>  default         192.168.0.1     0.0.0.0         UG    0  0 0 eth1



I see nothing wrong with that routing table.

-- 
sg

references