Re: Route Table, more info

1999-11-23 Thread Jason
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


Re: Route Table, more info

1999-11-23 Thread Marc Mongeon
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  eth0131.107.2.216
debian  eth110.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/32isdn_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 [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED]  /dev/null



Re: Route Table, more info

1999-11-23 Thread Robert Waldner
On Tue, 23 Nov 1999 08:02:43 CST, Marc Mongeon writes:
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.

that would be:
192.168.0.0/16
172.16.0.0/12
10.0.0.0/8

_Don't_ use 192.9.200.0, these aren't private ip-adresses, take a look at 
RFC1918.

rw
-- 
- ___   - Robert Waldner  Junior Network Engineer
 //   /  ___   _/_ -- [EMAIL PROTECTED] RW960-RIPE
--- /--- /   / /   / /___/ /  --- EUnet EDV-DienstleistungsgesmbH
-- /___ /___/ /   / /___  /_  Diefenbachgasse 35  A-1150 Wien
-   - Tel: +43 1 89933 0 Fax: +43 1 89933 533



Re: Route Table, more info

1999-11-23 Thread Marc Mongeon
Robert:

Thanks for the correction, and the RFC pointer.  I've got it clearly
bookmarked now, so I won't make the same mistake again.

Marc

--
Marc Mongeon [EMAIL PROTECTED]
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


 Robert Waldner [EMAIL PROTECTED] 11/23 8:22 AM 
[...]
 that would be:
 192.168.0.0/16
 172.16.0.0/12
 10.0.0.0/8
[...]