Displaying 20 results from an estimated 61 matches for "if1".
Did you mean:
if
2007 May 24
2
tc-htb traffic shaping script
Hi,
Is there any tested good HTB script for traffic shaping available like as
that of CBQ available at.
http://freshmeat.net/projects/cbq.init
I am n new bie and need to work on htb.
--
Regards,
M Arman
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
2007 Jul 05
4
Load Balancing , MSN and SSL
...OR_IP=$(expr $VALOR_IP + 1)
done
ip route add 192.168.33.0/24 via 10.1.2.1 dev eth1 src 10.1.2.2
ip route add 192.168.33.0/24 via 10.1.2.1 dev eth1 src 10.1.2.2table T1
ip route add 192.168.33.0/24 via 10.1.2.1 dev eth1 src 10.1.2.2table T2
}
IP1=xxx.xxx.xxx.18
IF1=eth0
P1_NET=xxx.xxx.xxx.16/30
P1=xxx.xxx.xxx.17
IP2=192.168.254.250
IF2=eth2
P2_NET=192.168.254.248/29
P2=192.168.254.254
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...
2006 Aug 25
2
Now to make only Traffic Priority
Hi to everybody.
I read some info and documentation but i still can''t find how to make
this simple setup for example .
I just want to make priority of certain traffic without shaping the
traffic .
For example SSH and RDP first priority
Mail second priority
WEB and FTP third
And everything else last priority.
What will be the simple and best way to achieve this.
I will appreciate
2006 Jan 05
5
multiple links and nat
...the "MASQUERADE: Route sent us somewhere
else." error. googling for that, I see lots of suggestions to use
connmark, but no examples of how connmark and the multiple link stuff
interact. Does anyone have a pointer?
The rules I''m using are roughly:
/sbin/ip route add P1_NET dev IF1 src IP1 table 201
/sbin/ip route add default via P1 table 201
/sbin/ip route add P1_NET dev IF1 src IP1
/sbin/ip route add 127.0.0.0/8 dev lo table 201
/sbin/ip rule add from IP1 table 201
/sbin/ip route add P2_NET dev IF2 src IP2 table 202
/sbin/ip route add default via P2 table 202
/sbin/ip route...
2004 Jul 12
0
Multipath load balance issues
...as follows...
#!/bin/sh
## ip route multi path configuration script
## Provider 1 (SWIFTEL)network
P1_NET="202.154.xxx.0/24"
## Provider 2(NTT) network
P2_NET="202.53.xxx.xxx/30"
## Provider 2 alias network
P2_ALIAS_NET="xxx.xxx.xxx.xxx/30"
## Interface for Provider 1
IF1="ppp0"
## Interface for Provider 2
IF2="eth1"
## Static IP Address of provider 1 connection
IP1="218.xxx.xxx.xxx"
## Static IP Address of provider 2 connection
IP2="202.xxx.xxx.xxx"
## Alias IP Address of provider 2 connection
SPIP1="203.xxx.xxx.xxx"...
2006 Dec 24
1
Question regarding Split Access description
...g one router - if I had
two routers, one connected to each of the two providers, are those setup
commands applicable, by changing the destination values to be the internet
Ethernet interface of the other router for the other link? Eg:
Router 1 - Provider 1:
ip route add $P1_NET dev $IF1 src $IP1 table T1
ip route add default via $P1 table T1
ip route add $P2_NET gw $RTR2 src $IP2 table T2
ip route add default via $P1
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
ip route add default scope global nextho...
2004 Jul 26
1
Load Balancing
...t when I try to ''equalize'' the
the two internet connections with the weight=1 it
doesn´t work. On the other hand, if I put 5 and 5
it works, but not at 100%, it does intermittlently,
some times works and others don´t.
example:
ip route add default equalize\
nexthop via $P1 dev $IF1 weight 5\
nexthop via $P2 dev $IF2 weight 5
Besides, when I open, for example, the firefox browser, it
takes a lot to start navigating, sometimes it works and other
times gives an error and I can´t navigate.
From the server it works properly, but form the clients PCs
doesn´t.
By the way, I´m ma...
2005 Oct 18
0
Two differente networks at the same ethernet pci adapter
...o de portas para os links
# Balanceamento de carga entre pontos de rede
# ++++++++++++++++++++++++
# Script criado por NATANIEL KLUG
#-------------------------
#
#----
# Variaveis de sistema
#----
IPTABLES="/usr/local/sbin/iptables"
IP="/sbin/ip"
#
#----
# ENTRADA DE LINKS
#----
IF1=''eth0''
IF2=''eth0''
#
#----
# Declara as redes
#----
P1_NET=172.30.0.0/24''
P2_NET=''10.1.1.0/24''
#
#----
# Declara IPs
#----
IP1=''172.30.0.55''
IP2=''10.1.1.10''
#
#----
# Declara gateway das conexoes
#----...
2006 Mar 28
1
IP route balance problem
...from 192.168.1.1: icmp_seq=1 ttl=128 time=0.726 ms
root@enrutizador:~# ping 192.168.254.254
PING 192.168.254.254 (192.168.254.254) 56(84) bytes of data.
64 bytes from 192.168.254.254: icmp_seq=1 ttl=255 time=0.802 ms
And here is the script I use to do it work...
#!/bin/sh
P1_NET=192.168.1.0/24
IF1=eth1
IP1=192.168.1.128
P1=192.168.1.1
P2_NET=192.168.254.0/24
IF2=eth2
IP2=192.168.254.128
P2=192.168.254.254
ip addr add $IP1/24 brd + dev $IF1
ip addr add $IP2/24 brd + dev $IF2
ip link set $IF1 up
ip link set $IF2 up
ip route add $P1_NET dev $IF1 src $IP1 table T1
ip route add default via $P...
2004 Sep 23
0
two internet connections don''t appear to be masqing
I have a script for dual internet connections that does this:
-------------------------
#!/bin/bash
IF1=eth1
IP1=203.219.190.106
P1=203.219.190.105
P1_NET=203.219.190.104
IF2=eth2
IP2=220.245.224.46
P2=220.245.224.45
P2_NET=220.245.224.44
IF0=eth0
P0_net=192.168.0.0
TABLE1=inet1
TABLE2=inet2
ip route add $P1_NET dev $IF1 src $IP1 table $TABLE1
ip route add default via $P1 table $TABLE1
ip route a...
2006 Mar 19
0
need help with route tables and policy routing please
...ied to get it working
the way I''d like. The ip route outputs below show a third nexthop to
the 70.25.176.129 address but I only have that currently running as a
test of outputing to all three ISP connections.
Kirk
#!/bin/bash
IF0=eth0
IP0=10.10.10.1
P0=70.25.176.129
P0_NET=10.10.10.0
IF1=eth1
IP1=70.25.176.154
P1=70.25.176.129
P1_NET=70.25.176.128
IF2=ppp0
IP2=209.213.232.127
P2=209.183.132.10
P2_NET=209.0.0.0
IF3=ppp1
IP3=69.63.33.227
P3=209.183.132.10
P3_NET=209.0.0.0
#ip route add $P0_NET dev $IF0 src $IP0 table 50
#ip route add default via $P0 table 50
#ip route add $P1_NET...
2005 Jul 06
0
can''t figure out nat''ing by port
...route nat or something. I''m also not quite sure
how the nat 0 works in the ip rule statement so yes I am confused in a
big way!
I will include my policy route script below so you can see the bit I
do have working. Any help or pointers will certainly be appreciated.
Kirk
#!/bin/bash
IF1=eth0
IP1=10.10.10.15
P1=10.10.10.1
P1_NET=10.10.10.0
IF2=ppp0
IP2=69.63.33.227
P2=209.183.132.10
P2_NET=69.0.0.0
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 table T1
ip route add 127.0.0.0/8 dev lo table T1
ip route add...
2005 Oct 19
2
Load balance (two links in one server): why is this not working?
...sh
#-------------------------
# Configuracao de redirecionamento de portas para os links
# Balanceamento de carga entre pontos de rede
#-------------------------
#----
# Variaveis de sistema
#----
IPTABLES="/usr/local/sbin/iptables"
IP="/sbin/ip"
#
#----
# ENTRADA DE LINKS
#----
IF1=''eth0''
IF2=''eth3''
#
#----
# Declara as redes
#----
P1_NET=''200.163.208.0/25''
P2_NET=''10.1.1.0/24''
#
#----
# Declara IPs
#----
IP1=''200.163.208.6''
IP2=''10.1.1.10''
#
#----
# Declara gateway das...
2005 Jul 29
1
Load Balancing and NAT Clients Problem
Hi,
The problem is that if I set the default route with two gateways, with
the command ''ip route change default scope global nexthop via $P1 dev
$IF1 weight 1 nexthop via $P1 dev $IF1 weight 1, in the linux router I
have no problem working with internet but the NATTED clients can''t
access. I have iptables configured with masquerade option.
What I forget to do?
Thanks and Regards...
2004 Aug 01
0
QOS
...t when I try to ''equalize'' the
the two internet connections with the weight=1 it
doesn´t work. On the other hand, if I put 5 and 5
it works, but not at 100%, it does intermittlently,
some times works and others don´t.
example:
ip route add default equalize\
nexthop via $P1 dev $IF1 weight 5\
nexthop via $P2 dev $IF2 weight 5
Besides, when I open, for example, the firefox browser, it
takes a lot to start navigating, sometimes it works and other
times gives an error and I can´t navigate.
>From the server it works properly, but form the clients PCs
doesn´t.
By the way, I´...
2004 Aug 26
0
Problems with QOS
...t when I try to ''equalize'' the
the two internet connections with the weight=1 it
doesn´t work. On the other hand, if I put 5 and 5
it works, but not at 100%, it does intermittlently,
some times works and others don´t.
example:
ip route add default equalize\
nexthop via $P1 dev $IF1 weight 5\
nexthop via $P2 dev $IF2 weight 5
Besides, when I open, for example, the firefox browser, it
takes a lot to start navigating, sometimes it works and other
times gives an error and I can´t navigate.
From the server it works properly, but form the clients PCs
doesn´t.
By the way, I´m m...
2005 Feb 01
0
multiple uplinks example script
...nection (It is just theory).
1. Client --> Main server
2. Main Server --> Client ; Main server -> small server
3. Client -> small server
The problem is, when connection 1. use different uplink then connection 2.
Those icq related rules below corrected the problem.
My script:
IF0=eth2
IF1=eth1
IF2=eth3
IF3=eth0
P0_NET=192.168.1.0/24
P1_NET=public1
P2_NET=public2
IP0=192.168.1.254
IP1=publicip1
IP2=publicip1
#gateway
P1=publicgw1
P2=publicgw2
#table
T1=211
T2=212
T3=222
IP=/sbin/ip
# Delete everything
#$IP route flush cache
$IP route flush all
$IP route flush all table $T1
$IP r...
2004 Aug 26
13
Load Balance simply doesn´t work...
i´ve been searching for a load balance solution since a month
ago... what i can say is that it simply doesn´t work. I was
unable to find one guy that did it with sucess. When "load
balance" is the subject of the message on the list, the
message is simply ignored.
So... if it doesn´t work... why LARTC don´t delete it from the
HOW TO and answer us with some "it simply doesn´t
2005 May 16
1
help for dual ineternet access on Mandrake 10.1, MASQUERADE: Route sent us somewhere else
...outer and the pakects never go thru the FW, I
see they comme in but after that nothing.
4) If I replace the load balance default route with only one path then
it work from inside (from either external path).
Setup that wont work from inside
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \
nexthop via $P2 dev $IF2 weight 1
Setup that is working
ip route change default scope global nexthop via $P1 dev $IF1 weight 1
or
ip route change default scope global nexthop via $P2 dev $IF2 weight 1
Any pointer would be very helpfull !
Should I go to 2.4 kernel that c...
2006 Mar 26
1
vpn multihoming
...ess through
the eth0 interface and the other half through the tun0
interface.
I''ve set up a script like the "load balancing split
access" instructions in the lartc howto, but it
doesn''t work. Here''s the important part of the script:
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
ip route add $P1_NET dev $IF1 src $IP1
ip route add $P2_NET dev $IF2 src $IP2
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2...