bandwidth_pig
03-29-2003, 10:27 PM
I have a small home LAN. I wanted to try setting up Debian as a DHCP server for my windows machine and as a router for it. The network topology lies out like so:
1. Cable modem facing WAN/ISP
2. Linksys router facing Debian box performing DHCP for eth0 facing Linksys router.
3. 2nd NIC in Debian router connected to Windows machine via a cross over cable and plugged into Windows Machine NIC. Debian 2nd NIC is eth1.
DHCP to the windows machine works. It doesn't work well, but it works. I seem to have to for some reason kill DHCPD and then restart it and then the windows machine will pick up the DHCP offer from the Debian box. IPs are as follows:
1. Linksys router: 192.168.1.1
2. Debian machine: 192.168.1.103 for eth0
3. Debain machine: 192.168.1.1.102 (hard coded via ifconfig) for eth1
4. Windows machine: 192.168.1.100 via DHCP from Debian machine.
I can ping both 192.168.1.103 and 192.168.1.102 from the windows machine. I can't ping 192.168.1.1 from the windows machine and I can't get to the internet from it.
To create routes, I have been using iproute. My iproute table looks like so:
192.168.1.100 via 192.168.102 dev eth1
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.103
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.102
default via 192.168.1.1 dev eth0
I added the first line statically. The others were there by default. Anybody have any insight into how to make it so my windows machine can hit the default gateway? Once I get this working ok I'll most likely toss the linksys router. I want to do packet shaping between the debian machine and the windows client and I can't do that with the linksys. Advice and input most appreciated (I did quite a bit of Google searching before posting).
1. Cable modem facing WAN/ISP
2. Linksys router facing Debian box performing DHCP for eth0 facing Linksys router.
3. 2nd NIC in Debian router connected to Windows machine via a cross over cable and plugged into Windows Machine NIC. Debian 2nd NIC is eth1.
DHCP to the windows machine works. It doesn't work well, but it works. I seem to have to for some reason kill DHCPD and then restart it and then the windows machine will pick up the DHCP offer from the Debian box. IPs are as follows:
1. Linksys router: 192.168.1.1
2. Debian machine: 192.168.1.103 for eth0
3. Debain machine: 192.168.1.1.102 (hard coded via ifconfig) for eth1
4. Windows machine: 192.168.1.100 via DHCP from Debian machine.
I can ping both 192.168.1.103 and 192.168.1.102 from the windows machine. I can't ping 192.168.1.1 from the windows machine and I can't get to the internet from it.
To create routes, I have been using iproute. My iproute table looks like so:
192.168.1.100 via 192.168.102 dev eth1
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.103
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.102
default via 192.168.1.1 dev eth0
I added the first line statically. The others were there by default. Anybody have any insight into how to make it so my windows machine can hit the default gateway? Once I get this working ok I'll most likely toss the linksys router. I want to do packet shaping between the debian machine and the windows client and I can't do that with the linksys. Advice and input most appreciated (I did quite a bit of Google searching before posting).