Skip to contentSkip to conversation

Question

LARTC [email protected] [email protected] 7 participants 7 messages Oct 18, 2000 – Dec 17, 2003

lore
Share & tools
lore
#0 lore raw

<PRE>I'm needing to do both QoS and NAT on a network. Also the router box itself has a program running on it that needs bandwidth...I need to make sure that the people on the NAT side has 90% of the bandwidth though...If need be I can offload the program onto another box, and work that way, but I'd prefer to keep the number of boxes there to a minimum...

THanks
Ben Konosky
<A HREF="mailto:[email protected]">[email protected]</A>

</PRE>

#1 lore raw

Hi,
Actually my question isn't too hard. I've red the "Advance Routing &
Traffic Control How to", but it isn't clear to me where the routes are keept. Since you do specify the location on which the rules are stored (/etc/iproute2/rt\_table), I hope you can clear this up for me. Thank U.

Gaston Forbice

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

#2 lore raw
In reply to [email protected] [email protected]
Quoted 6 lines · Gastón Forbice

Hi,
Actually my question isn't too hard. I've red the "Advance Routing &
Traffic Control How to", but it isn't clear to me where the routes are keept. Since you do specify the location on which the rules are stored (/etc/iproute2/rt\_table), I hope you can clear this up for me.

This differs per distribution. Check the documentation that came with it.

REgards,

bert

Signature · 8 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
#3 lore raw
In reply to [email protected] [email protected]
                                                    Hi,

I have that schema:

                                                   Linux box
                                              ======
Outside world  <-----------> eth0              eth1 <--------------->
Inside world
                                              ======

On both, eth0 and eth1 I have a HTB queue applied. The filter is applied on the net 10.1.1.0/24. From the Inside world a need to reach some computers from the Outside world, the net is 172.16.45.0/24. My question
is: in condition that I don't have any other filter applied on the net 172.16.45.0/24 that traffic will be gone at full speed through my Linux box ?

Thank you,
Liviu

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to [email protected] [email protected]
Quoted 10 lines · Liviu Faciu
                                                    Hi,

I have that schema:

                                                   Linux box
                                              ============
Outside world  <-----------> eth0              eth1 <--------------->
Inside world
                                              ============
Quoted 6 lines

On both, eth0 and eth1 I have a HTB queue applied. The filter is applied on the net 10.1.1.0/24. From the Inside world a need to reach some computers from the Outside world, the net is 172.16.45.0/24. My question
is: in condition that I don't have any other filter applied on the net 172.16.45.0/24 that traffic will be gone at full speed through my Linux box ?

I don't understand what you want to say. But if you don't have any filters but you do have a htb setup, the traffic ends in the default class if you specified one. If you don't have a default class, the packets are transmitted as fast as the link allows.

Stef

Signature · 9 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net


_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to [email protected] [email protected]

Hello:

I need some help on split access and load balancing:

I have 2 xDSL (eth1 @ wireless broadband modem; and ppp0, actually connected to eth0 on a phone DSL).

Both links have dynamic addresses.
I was reading the examples in the HOWTO:
--- copied from the howto ---

ip route add $P1_NET dev $IF1 src $IP1 table T1 ip route add default via $P1 table T1 ip route add $P2_NET dev $IF2 src $IP2 table T2 ip route add default via $P2 table T2
--- end copy --

this is awesome... is there any script that could convert these vars ($P1_NET, etc) into the REAL values of my 2 dsl connections?

I'm still not too good at coding in Linux... can anyone help me?

Thanks in advance

Edgar

_________________________________________________________________
MSN Fotos: la forma más fácil de compartir e imprimir fotos.
http://photos.msn.es/support/worldwide.aspx

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#6 lore raw
In reply to [email protected] [email protected]
Quoted 18 lines · Edgar Estrada Lopez

Hello:

I need some help on split access and load balancing:

I have 2 xDSL (eth1 @ wireless broadband modem; and ppp0, actually connected to eth0 on a phone DSL).

Both links have dynamic addresses.
I was reading the examples in the HOWTO:
--- copied from the howto ---

ip route add $P1_NET dev $IF1 src $IP1 table T1 ip route add default via $P1 table T1 ip route add $P2_NET dev $IF2 src $IP2 table T2 ip route add default via $P2 table T2
--- end copy --

Quoted 8 lines

this is awesome... is there any script that could convert these vars ($P1_NET, etc) into the REAL values of my 2 dsl connections?

I'm still not too good at coding in Linux... can anyone help me?

Thanks in advance

Edgar

Since nobody else volunteered:

--cut here --
#!/bin/sh
IFCONFIG="/sbin/ifconfig"
ROUTE="/sbin/route"
IF1="ppp0"
IF2="eth1"

# returns the IP address and netmask assigned to the interface
  IP1=`$IFCONFIG $IF1 2>/dev/null | grep inet | cut -d : -f 2 | cut -d
\  -f 1`
  MASK1=`$IFCONFIG $IF1 2>/dev/null | grep Mask | cut -d : -f 4`
  echo "$IP1/$MASK1"
# returns the network IP address and netmask per the routing table
  MASK1=`$IFCONFIG $IF1 2>/dev/null | grep Mask | cut -d : -f 4`
  P1_NET=`$ROUTE -n | grep $IF1 | grep $MASK | grep -w "U" | cut -d\ 
-f1`
  echo "$P1_NET/$MASK1"

# CAVEAT: The interfaces must already be up. Some error checking would be advisable. E.G.:

if [ "$P1_NET" = "" ]; then
echo "no routing entry found for $IF1. Aborting." exit
fi
-- cut here --

You might also look to see if information can be obtained from /etc/ppp/ip-up.local or /etc/dhcpc/dhcpcd-eth1.info.

buck
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/