Displaying 20 results from an estimated 51 matches for "if2".
Did you mean:
if
2004 Jul 12
0
Multipath load balance issues
...onfiguration 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"
## Gateway address for provider 1
P1="202...
2007 Jul 05
4
Load Balancing , MSN and SSL
.../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
ip route add $P1_NET dev $IF1 src $IP1
ip route add $P2_NET dev $IF2 src...
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
2006 Jan 05
5
multiple links and nat
...r?
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 add P2_NET dev IF2 src IP2
/sbin/ip route add 127.0.0.0/8 dev lo table 202
/sbin/ip rule add from IP2 table 202
/sbin/ip route del default
/sbin/ip route add default scope global nexthop via P1 dev IF1 weight 1 nexthop v...
2006 Mar 19
0
need help with route tables and policy routing please
...tputs 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 dev $IF1 table 50
#ip route add $P2_NET dev $IF2 table 50
#...
2004 Jul 26
1
Load Balancing
...39;' 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 making NAT toward the Client PCs.
Do...
2005 Nov 24
0
Load Balancing/NAT
...changes I should make before I basically go live to run the test.
One thing I have not added yet is the interfacing to eth0 (Internal
addressing) which I am unsure how to code exactly. Thanks for any help
anyone can give.
SCRIPT FOLLOWS:
#!/bin/sh
#Define my vars
#Interfaces
IF0=eth0
IF1=eth1
IF2=eth2
IF2=eth3
IF2=eth4
IF2=eth5
IF2=eth6
#IP Addresses bound to interfaces
IP0=10.10.1.1 #Internal Interface Address
IP1=10.254.7.1 #Satellite 1 Interface
IP2=10.254.9.1 #Satellite 2 Interface
IP3=10.254.10.1 #Satellite 3 Interface
IP4=10.254.16.1 #Satellite 4 Interface
IP5=10.254.17.1 #Satellite...
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 add $P2_NET dev $IF2 src $IP2 table $TABLE2
ip route add default via $P2...
2005 Oct 18
0
Two differente networks at the same ethernet pci adapter
...alanceamento 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
#----
P1=''172.30.0.1'...
2006 Mar 28
1
IP route balance problem
...r:~# 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 $P1 table T1
ip route add $P2_NET dev $IF2 src $IP2 table T2
ip rout...
2005 Jul 06
0
can''t figure out nat''ing by port
...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 $P2_NET dev $IF2 src $IP2 table T2
ip route add default...
2005 Oct 19
2
Load balance (two links in one server): why is this not working?
...# 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 conexoes
#----
P1=''...
2004 Aug 01
0
QOS
...39;' 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 making NAT toward the Client PCs....
2004 Aug 26
0
Problems with QOS
...39;' 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 making NAT toward the Client PCs.
Do...
2005 Feb 01
0
multiple uplinks example script
...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 route flus...
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
...e 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 comes with mandrake 10.1 ?
TIA
2006 Mar 26
1
vpn multihoming
...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
Note that ping works over the tunnel, over the
subnets, but the users on my LAN can'...
2006 Dec 24
1
Question regarding Split Access description
...te add default via $P1
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
ip route add default scope global nexthop via $P1 dev $IF1 weight
1 \
nexthop via $P2 gw $RTR2 weight 1
Router 2 - Provider 2:
ip route add $P2_NET dev $IF2 src $IP2 table T2
ip route add default via $P2 table T2
ip route add $P1_NET gw $RTR1 src $IP1 table T2
ip route add default via $P2
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
ip route add default scope global nextho...
2003 Feb 27
1
Routing for multiple uplinks/providers
..., I have the same case with HOWTO, the
difference is that the whole incoming traffic goes through interface 0, the
other difference is that I do not want to balance the out going traffic,
because I have specific networks to take it throughout another interface.
Mi Case
IF1 --> Input and Output
IF2 --> Only aoutput for three Network
I need Help, How can I execute my case with the case of HowTo?
Thanks In Advanced,
Regards,
4.2. Routing for multiple uplinks/providers
A common configuration is the following, in which there are two providers
that connect a local network (or even a single m...