How can I route to a cable modem connection AND a DSL connection?

How can I route to a cable modem connection AND a DSL connection?

Post by jtnew » Tue, 27 Feb 2001 01:42:06



I want to be able to setup my network so that
packets get routed to either my cable modem
or DSL connection depending on which one happens
to be up.

I've been playing around with routed without much
success.

I tried using routed -g but only one default
route shows up on the host, and when I disconnect
my cable modem, routed never finds a new route
to the DSL connection.

IP networks are:
  24.* is Optimum Online (cable)
  138.* is Verizon DSL


root       834  0.0  0.2  1368  460 ?        S    10:22   0:00 routed -g
insecure 25304  0.0  0.3  1556  580 pts/2    R    11:32   0:00 fgrep
routed


root       783  0.0  0.3  1368  636 ?        S    10:27   0:00 routed -g
insecure  1455  0.0  0.3  1556  596 pts/1    S    11:32   0:00 fgrep
routed


192.168.1.4     celeron600-0.xxxxxxxxx.com      c600 ns.xxxxxxxxx.com ns
xxxxxxxxx.com
192.168.1.8     celeron700-2.xxxxxxxxx.com      c700-2


Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.1.0     192.168.1.4     255.255.255.0   UG        0 0          0
eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0
eth1
192.168.66.0    0.0.0.0         255.255.255.0   U         0 0          0
vmnet1
24.188.176.0    0.0.0.0         255.255.255.0   U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
0.0.0.0         24.188.176.1    0.0.0.0         UG        0 0          0
eth0


Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
138.89.83.43    127.0.0.1       255.255.255.255 UGH       0 0          0
lo
10.5.22.1       0.0.0.0         255.255.255.255 UH        0 0          0
ppp0
192.168.1.0     192.168.1.8     255.255.255.0   UG        0 0          0
eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
24.0.0.0        192.168.1.4     255.0.0.0       UG        0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
0.0.0.0         10.5.22.1       0.0.0.0         UG        0 0          0
ppp0

 
 
 

How can I route to a cable modem connection AND a DSL connection?

Post by Dean Thompso » Tue, 27 Feb 2001 08:38:40


Hi!,

Quote:> I want to be able to setup my network so that
> packets get routed to either my cable modem
> or DSL connection depending on which one happens
> to be up.

I think you are going to find this slightly difficult because you are going to
have concerns with regards to which route to take and how the routes are going
to get back.  Certainly, I don't think it will be easy to do automatically,
but you should be able to configure some files which hold the network
information for both carriers and then with the issue of a command, you should
be able to change some symbolic links, down the interface and bring it up
again ?

I presume that you have two ethernet cards connected to your system ?

The real problem is that at the point when you do the switch from one carrier
to the other, you are going to lose all your network connectivity that is
running at the time (this includes things like ssh/ftp/www daemons and so
forth).  They will all have to be stopped and restarted (and in the case of
WWW, you may actually have to change a few parameters inside the httpd.conf
file as well).

If you need the ability to support two different network carriers for
*mission-critical* sort of applications then you may want to look at BGP4
routing and getting your own net-block (although this is normally very costly
and too much of an overkill).

See ya

Dean Thompson

--
+______________________________+____________________________________________+

|   Bach. Computing (Hons)     | ICQ     - 45191180                         |
|   PhD Student                | Office  - <Off-Campus>                     |
|   School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
|   MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
|   Melbourne, Australia       |                                            |
+------------------------------+--------------------------------------------+

 
 
 

How can I route to a cable modem connection AND a DSL connection?

Post by jtnew » Tue, 27 Feb 2001 10:52:36


The following link seems to indicate that
such a routing configuration is possible.

http://www.linuxdoc.org/HOWTO/Net-HOWTO/x536.html


> Hi!,

> > I want to be able to setup my network so that
> > packets get routed to either my cable modem
> > or DSL connection depending on which one happens
> > to be up.

> I think you are going to find this slightly difficult because you are going to
> have concerns with regards to which route to take and how the routes are going
> to get back.  Certainly, I don't think it will be easy to do automatically,
> but you should be able to configure some files which hold the network
> information for both carriers and then with the issue of a command, you should
> be able to change some symbolic links, down the interface and bring it up
> again ?

> I presume that you have two ethernet cards connected to your system ?

> The real problem is that at the point when you do the switch from one carrier
> to the other, you are going to lose all your network connectivity that is
> running at the time (this includes things like ssh/ftp/www daemons and so
> forth).  They will all have to be stopped and restarted (and in the case of
> WWW, you may actually have to change a few parameters inside the httpd.conf
> file as well).

> If you need the ability to support two different network carriers for
> *mission-critical* sort of applications then you may want to look at BGP4
> routing and getting your own net-block (although this is normally very costly
> and too much of an overkill).

> See ya

> Dean Thompson

> --
> +______________________________+____________________________________________+

> |   Bach. Computing (Hons)     | ICQ     - 45191180                         |
> |   PhD Student                | Office  - <Off-Campus>                     |
> |   School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
> |   MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
> |   Melbourne, Australia       |                                            |
> +------------------------------+--------------------------------------------+

 
 
 

How can I route to a cable modem connection AND a DSL connection?

Post by Dean Thompso » Tue, 27 Feb 2001 11:16:15


Hi!,

Quote:> The following link seems to indicate that
> such a routing configuration is possible.

> http://www.linuxdoc.org/HOWTO/Net-HOWTO/x536.html

The example that they put forth there is a pretty simplistic one in some
regards and they don't use proper IP address (rather they use the 192.168
family), it also doens't talk about getting a default route to the outside
world (it presents a closed network solution).

However, I presume this is your scenario:

eth0 is connected to one ISP
eth1 is connected to another ISP

Which eth device do you want to setup as being your default gateway and what
does routed report/think your default gateway should be.  This should be
accomplished by doing a route -n to see which device is going to 0.0.0.0.

Additionally, how do you deal with servers that have bound themselves to eth0
when the outbound connection of eth0 fails ?

For example when you start FTP does it bind itself to both interfaces along
with SSH and Apache ?, if it does then you might be in business but you have
to remember that when you are dealing with two possible outbound routes, it
can get quite messy and confusing for the packets as well.

See ya

Dean Thompson

--
+______________________________+____________________________________________+

|   Bach. Computing (Hons)     | ICQ     - 45191180                         |
|   PhD Student                | Office  - <Off-Campus>                     |
|   School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
|   MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
|   Melbourne, Australia       |                                            |
+------------------------------+--------------------------------------------+

 
 
 

How can I route to a cable modem connection AND a DSL connection?

Post by jtnew » Tue, 27 Feb 2001 12:48:49


I think I see what you're getting at. But let me show everyone
what my network looks like and tell everyone everything I've
tried so far.

       +------->eth0 -----> 24.x.x.x --> Cable --> Optimum Online
       |                                 Modem
c600 --+------> eth1 -----> 192.168.1.4
                                  |
                                  |
                               ethernet
                                  |
                                  |
c700-2 --+------->eth0 -----> 192.168.1.8
         |
         +------->ppp0 -----> 138.x.x.x --> Westell ----> Verizon DSL
                                            DSL modem

The way I want it to work is to have two default routes.
One to 24.x.x.x and another to 138.x.x.x.  Packets could
be sent or received over either one of those networks.

My current routing tables look like:


root       834  0.0  0.2  1368  460 ?        S    15:03   0:00 routed -g
insecure 15982  1.0  0.3  1560  600 pts/2    S    22:46   0:00 fgrep routed


Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     192.168.1.4     255.255.255.0   UG        0 0          0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.66.0    0.0.0.0         255.255.255.0   U         0 0          0 vmnet1
24.188.176.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         24.188.176.1    0.0.0.0         UG        0 0          0 eth0


root       783  0.0  0.1  1368  212 ?        S    15:07   0:00 routed -g
insecure  8085  7.0  0.3  1556  596 pts/1    S    22:45   0:00 fgrep routed


Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
138.89.83.43    127.0.0.1       255.255.255.255 UGH       0 0          0 lo
10.5.22.1       0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
192.168.1.0     192.168.1.8     255.255.255.0   UG        0 0          0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
24.0.0.0        192.168.1.4     255.0.0.0       UG        0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         10.5.22.1       0.0.0.0         UG        0 0          0 ppp0

I actually did some experimenting with /etc/gateways.
I had the following configuration:

c600:/etc/gateways
net 0.0.0.0 gateway c700-2 metric 1 active

c700-2:/etc/gateways
net 0.0.0.0 gateway c600 metric 1 active

But my ethernet connection would freeze up after a while.
I tried "passive" instead "active" that didn't work either.

I then started looking at gated instead of routed
but RedHat 7.0's gated rpm is messed up,
it's missing /usr/bin/gdc.  I reported it
to bugzilla.redhat.com as

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=29394

After that, I tried downloading the gated 3.6 sources myself
from

http://www.gated.org

which redirects you to

http://www.nexthop.com/products/public/download_reg.shtml

I'm currently at the point where I'm trying to resolve some
compilation issues.

gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I. -I./../gated -I./../gatedcompat -I./..    -g -O2 -c str.c
str.c: In function `gd_vsprintf':
str.c:611: `short int' is promoted to `int' when passed through `...'
str.c:611: (so you should pass `int' not `short int' to `va_arg')
str.c:680: `short int' is promoted to `int' when passed through `...'
str.c:1173: `short int' is promoted to `int' when passed through `...'
str.c:1182: `short int' is promoted to `int' when passed through `...'
str.c:1191: `short int' is promoted to `int' when passed through `...'
make[3]: *** [str.o] Error 1
make[3]: Leaving directory `/auto-local/tmp/gated-public-3_6/src/gated'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/auto-local/tmp/gated-public-3_6/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/auto-local/tmp/gated-public-3_6/src'
make: *** [all-recursive] Error 1


> Hi!,

> > The following link seems to indicate that
> > such a routing configuration is possible.

> > http://www.linuxdoc.org/HOWTO/Net-HOWTO/x536.html

> The example that they put forth there is a pretty simplistic one in some
> regards and they don't use proper IP address (rather they use the 192.168
> family), it also doens't talk about getting a default route to the outside
> world (it presents a closed network solution).

> However, I presume this is your scenario:

> eth0 is connected to one ISP
> eth1 is connected to another ISP

> Which eth device do you want to setup as being your default gateway and what
> does routed report/think your default gateway should be.  This should be
> accomplished by doing a route -n to see which device is going to 0.0.0.0.

> Additionally, how do you deal with servers that have bound themselves to eth0
> when the outbound connection of eth0 fails ?

> For example when you start FTP does it bind itself to both interfaces along
> with SSH and Apache ?, if it does then you might be in business but you have
> to remember that when you are dealing with two possible outbound routes, it
> can get quite messy and confusing for the packets as well.

> See ya

> Dean Thompson

> --
> +______________________________+____________________________________________+

> |   Bach. Computing (Hons)     | ICQ     - 45191180                         |
> |   PhD Student                | Office  - <Off-Campus>                     |
> |   School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
> |   MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
> |   Melbourne, Australia       |                                            |
> +------------------------------+--------------------------------------------+

 
 
 

1. How to create a Linux gateway for DSL/cable modem connections

Sorry for the intrusion, but it has a lot to do with
comp.os.linux.networking...

If you are thinking about turning an old 486/Pentium into an Internet
gateway for your broadband connection, then you may want to check out our
free (and GPL'ed) solution.

http://www.pointclark.net/index2.shtml

We have tried to make the support page generic enough for those wishing
build their own Linux-based gateway.

http://www.pointclark.net/support/index.html

For you brave souls out there, you can try our beta.  We have developed an
Internet gateway software package based on Red Hat 6.2.  At the end of the
day, you will have a Red Hat 6.2 system (this is not a new distribution...
we just removed unnecessary software, secured it, added useful Internet
gateway software, and made it easier to install).

Thanks,
Samantha
Point Clark Networks.

2. Debian doesn't seem to recognize my serial ports

3. Sharing both cable modem and DSL connection

4. What's with NET-2 (to work with 0.99.10)?

5. cable connection died - can't do connection anymore?

6. Can't boot SuSE Linux anymore

7. conflict between cable and dsl connection

8. Problem with a printer filter to use Postscript on HP5L

9. Connection Binding. (DSL & Cable)

10. PPP/SLIP connection from NT to SCO Unix through direct cable connection

11. Cable modem/modem connection

12. Connection based sharing of DSL and Cable.

13. OpenBSD and two DSL connections - routing question