[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Route Table, more info



Jason:

You have nothing else on the ethernet segment that contains the router
internal interface and the debian eth1 interface, right?  First, stop
paying for 2 IP addresses that you don't need.  Assign "internal" IP
addresses to the router internal and debian eth1 interfaces, from one
of these IP networks:  10.0.0.0/8, 192.9.200.0/24, or, um... some class
B network whose number I can't think of right now.

So:

Machine	Interface	IP Address
----------	----------	----------
router	eth_if	10.0.0.1
router	isdn_if	207.158.140.137
debian	eth0		131.107.2.216
debian	eth1		10.0.0.2

Set up the router routing tables like this:

10.0.0.0/8		eth_if
131.107.2.0/24	gw 10.0.0.2
<ISP Gateway>/32	isdn_if
0.0.0.0/0		gw <ISP Gateway>

Set up the debian routing tables like this:

10.0.0.0/8		eth1
131.107.2.0/24	eth0
0.0.0.0/0		gw 10.0.0.1

(I used a kind of short-hand there, but I hope it's obvious what I was
trying to say.)

For every machine on the 131.107.2.0 network, you can now use the debian
machine as the gateway.

Does that work for you?

Marc

----------
Marc Mongeon <mongeon@bankoe.com>
Unix Specialist
Ban-Koe Systems
9100 W Bloomington Fwy
Bloomington, MN 55431-2200
(612)888-0123, x417 | FAX: (612)888-3344
----------
"It's such a fine line between clever and stupid."
   -- David St. Hubbins and Nigel Tufnel of "Spinal Tap"


>>> "Jason" <username@tir.com> 11/23 6:21 AM >>>
    Here is the current route table, (output of netstat -nr)

131.107.2.0     0.0.0.0         255.255.255.0   U      1500 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0          0 lo

The reason that it doesn't show the 207.158.140.138 address is because it
says that it can't reach the network when it runs the /etc/init.d/network
script. The current contents of /etc/init.d/network:

#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=131.107.2.216
NETMASK=255.255.255.0
NETWORK=131.107.2.0
BROADCAST=131.107.2.255
GATEWAY=207.158.140.139
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route -n add -net ${NETWORK}

ADDRESS=207.158.140.138
SUBNET=255.255.255.248
NET=207.158.140.0
BROADCAS=207.158.140.255
GATE=207.158.140.139
ifconfig eth1 ${ADDRESS} netmask ${SUBNET} broadcast ${BROADCAS}
route -n add -net ${NET}
[ "${GATE}" ] && route add default gw ${GATE} metric 1


Below is a diagram of our setup:

Internet
    |
ISDN Router Connection to ISP (207.158.140.137)
    |
ISDN Router Internal IP (207.158.140.139)
    |
Debian box eth1 (207.158.140.138)
    |
Debian box eth0 (131.107.2.216)


Now to recap a bit, the idea is that we need to use the debian box as the
gateway instead of the 3com ISDN router/modem. Also, on the ISDN modem, NAT
is disabled as well as DHCP. Again, if more information is needed please let
me know..

-Jason


-- 
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null



Reply to: