Two interfaces routing problem, Debian, kernel 2.4
I have AT&T U-Verse as my provider. The routing device they supply has a quirk that's making life difficult.
To pass all incoming requests to a device on my network, that device has to have a dynamic IP. I'm fine with that. However, that device I also use for other things on the internal network. As its address changes, the internal machines (mix of linux/windows) need to have the new address given to them and that's a pain. So I installed a second interface. This interface I've given a static IP address (192.168.1.13), and have pointed my internal machines to it for services. The problem is this: that box can no longer communicate outside my network (no internet). Internally, everything's fine. Externally, nothing. Here's the ifconfig: Code:
eth0 Link encap:Ethernet HWaddr 00:C0:4F:72:E1:FF Code:
Destination Gateway Genmask Flags Metric Ref Use Iface |
try
Code:
# ip route del default dev eth0 Quote:
Code:
# ifconfig eth0:internal 192.168.0.1 |
/etc/network/interfaces
I'm not sure of where your distro stores network settings, but this is what I would do with /etc/network/interfaces in debian:
Code:
auto eth0 Code:
/etc/init.d/networking restart |
Deleting the route worked.
Quote:
I tried using two addresses for the same NIC but for some reason, I couldn't get it to use DHCP on one and static on the other. Since the machine already had another NIC card in it (from when it functioned as my firewall) enabling the second one wasn't a big deal. |
Quote:
(Sorry, I'm too lazy to test this myself) Code:
auto eth0 |
All times are GMT -5. The time now is 01:21 PM. |