All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Multi-Link Machine
Date: Sun, 09 Mar 2003 04:41:00 +0000	[thread overview]
Message-ID: <marc-lartc-104718497017344@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104717218710987@msgid-missing>

Brad,

 : G'day, I had a quick search through the archives to try and find an
 : answer but I have come up with a blank, so I'm hoping I can get a
 : little help here.

Probably a difficulty of terminology, rather than a difficulty with
finding questions and answers on the multi-link router.....

 : I have a linux machine with 2.4.19 on it, and 2 Internet links.

Right.  /me too!  :)

This is a NATting multi-link router.....(which is also not uncommon).

 : eth0 is Telstra Bigpond Cable (Semi static ip, its dhcp assigned), which I
 : want to route certain ips ranges over this link. 144.135.23.0/24 for eg.

Right....so: "ip route add 144.135.23.0/24 via $TELSTRA_ROUTER".  You
appear to have that down:

 : [1] route add -net ip.add.re.ss netmask 255.255.255.255 gw <gw ip of eth0>
 :
 : I can get this to sort of work, but traceroute'ing to anything I set
 : static routes [1] with, doesn't work because I assume that it trys to come
 : back via the default route. Is that right?

Eh?  What do you mean?  The routing table on your linux router has nothing
to do with the upstream routers.  Your linux box should NAT to an IP in
the network range of the interface from which you wish to send the packet.
(Clunky sentence, I know...)

Example, since the IP on eth0 is dynamic:

  iptables -t POSTROUTING -d 144.135.23.0/24 -o eth0 -j MASQUERADE

The packet will leave with the source address currently on eth0.  So, if
you are tracerouting to any IP in 144.135.23.0/24, you should see packets
on eth0 (transmitted with increasing TTLs) from this source address.  Try
it for yourself, and examine the packets with tcpdump:

  tcpdump -nn -i eth0 udp

 : eth2 is an adsl connection with a static ip which I want to be the default
 : route for any traffic left over.

Yup.  There's no traffic left over after a default route!

 : Also I need to break the adsl connection into 2 parts, its a 512kbit link,
 : so I would like to take 384kbit and 128kbit of the link, and assign
 : 128kbit to 192.168.0.192/27 which would be done on eth1, but I don't want
 : to limit traffic coming from eth0. (eth0 is 9mbit, so its a bit of a waste
 : to shape it down to 128kbit now isnt it :)

I presume you mean you want to split the available bandwidth.  This is
traffic control, and you can accomplish this with tc.  Read

  http://lartc.org/howto/  # -- linux advanced routing and traffic control
  http://docum.org/        # -- Stef Coene's thorough site

You might benefit most by starting with this:

  http://docum.org/stef.coene/qos/docs/BB/BB.html

And....

  A router can only shape what it sends.

Remember the above always.

 : Is any of this possible or am I just dreaming?

Dreaming indeed.  Dream your way right on over into traffic control and
policy routing with linux.  It's a dream to work with linux.

-Martin

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-03-09  4:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-09  1:08 [LARTC] Multi-Link Machine Brad Lay
2003-03-09  4:41 ` Martin A. Brown [this message]
2003-03-09 11:09 ` paolopoletti
2003-03-10  9:27 ` Brad Lay
2003-03-10 14:55 ` Martin A. Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-104718497017344@msgid-missing \
    --to=mabrown-lartc@securepipe.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.