Displaying 20 results from an estimated 29 matches for "p1_net".
2007 Jul 05
4
Load Balancing , MSN and SSL
...xpr $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
ip route ad...
2006 Jan 05
5
multiple links and nat
..., and I saw 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/...
2004 Jul 26
1
Load Balancing
...ent PCs.
Do you have any idea why does it take so long to start
navigating and why sometimes it works and sometimes doesn´t.
This is the current script running in my server:
#=================================================
P0_NET=10.0.1.0/24
IF0=eth1
IP0=10.0.1.1
IF1=eth0
IP1=xxx.xxx.xxx.7
P1_NET=xxx.xxx.xxx.0/24
P1=xxx.xxx.xxx.1
IF2=eth2
IP2=yyy.yyy.yyy.21
P2_NET=yyy.yyy.yyy.0/24
P2=yyy.yyy.yyy.1
echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
echo 3 > /proc/sys/net/ipv4/route/gc_elasticity
echo 1 > /proc/sys/net/ipv4/route/gc_...
2006 Dec 24
1
Question regarding Split Access description
...are inferring 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 glob...
2005 Feb 01
0
multiple uplinks example script
...n 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 flush all table $T2
$IP route flush all table $...
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...
2006 Mar 19
0
need help with route tables and policy routing please
...ike. 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 dev $IF1 table 50
#ip route add $P2_NET d...
2006 Mar 26
1
vpn multihoming
...Internet access 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 t...
2006 Mar 28
1
IP route balance problem
...ytes of data.
64 bytes 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...
2005 Jul 06
0
can''t figure out nat''ing by port
...lso 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 $P2_NET dev $IF2 src $IP2 table T2
ip rou...
2005 Oct 18
0
Two differente networks at the same ethernet pci adapter
...+++++++
# 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''
P2=''10.1.1.1''
#
#----
# Mascara as redes...
2004 Aug 01
0
QOS
...ent PCs.
Do you have any idea why does it take so long to start
navigating and why sometimes it works and sometimes doesn´t.
This is the current script running in my server:
#=================================================
P0_NET=10.0.1.0/24
IF0=eth1
IP0=10.0.1.1
IF1=eth0
IP1=xxx.xxx.xxx.7
P1_NET=xxx.xxx.xxx.0/24
P1=xxx.xxx.xxx.1
IF2=eth2
IP2=yyy.yyy.yyy.21
P2_NET=yyy.yyy.yyy.0/24
P2=yyy.yyy.yyy.1
echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
echo 3 > /proc/sys/net/ipv4/route/gc_elasticity
echo 1 > /proc/sys/net/ipv4/route/gc_...
2004 Aug 26
0
Problems with QOS
...ent PCs.
Do you have any idea why does it take so long to start
navigating and why sometimes it works and sometimes doesn´t.
This is the current script running in my server:
#=================================================
P0_NET=10.0.1.0/24
IF0=eth1
IP0=10.0.1.1
IF1=eth0
IP1=xxx.xxx.xxx.7
P1_NET=xxx.xxx.xxx.0/24
P1=xxx.xxx.xxx.1
IF2=eth2
IP2=yyy.yyy.yyy.21
P2_NET=yyy.yyy.yyy.0/24
P2=yyy.yyy.yyy.1
echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter
echo 3 > /proc/sys/net/ipv4/route/gc_elasticity
echo 1 > /proc/sys/net/ipv4/route/gc_...
2002 Nov 01
0
The split access puzzled me
Hi,
Very sorry for my poor Enlgish because I''m not a native speaker.
I had read the lartc HOWTO and ip-cref very hard but puzzled by those
commands in lartc, 4.2.1. Split access. They are (only xx1 listed):
ip route add $P1_NET dev $IF1 src $IP1 table T1
ip route add default via $P1 table T1
ip route add $P1_NET dev $IF1 src $IP1
ip route add default via $P1
ip rule add from $IP1 table T1
I think here "ip rule add from $IP1 table T1" means, the IP package which
source address is $IP1 will be passed to table T1....
2004 Aug 12
0
Advanced Routing and FreeSwan
..., tunnel0 works
flawlessly.
I used Debian Stable with kernel 2.4.20
Freeswan: 1.98b
The setup for the advanced routing looks like this:
- -snip-
#!/bin/sh
function ip {
echo ip "$@"
/sbin/ip "$@"
}
[ "$DEBUG" != "1" ] && unset ip
# P1 Gateway, P1_NET Network address, IP1 local address, IF1 interfac
e
export IF1=eth0
export IP1=212.202.224.34
export P1=212.202.224.33
export P1_NET=212.202.224.32/29
export IF2=eth2
export IP2=83.236.132.166
export P2=83.236.132.165
export P2_NET=83.236.132.164/30
if [ "$1" == "start" ]; then...
2006 Jul 28
1
Problem with routing for multiple uplinks/providers using iproute2
hi all,
we were trying to configure our system with 2 ethernet catds connected to two different providers using iproute2 so that it recieves and transmits data from both of them. We have followed the configuration as given on lartc''s howto
But the most wierd part of the story is that after we restart the system (We have put the script in rc.local) the system works fine and we can ping
2004 Jul 12
0
Multipath load balance issues
...the ppp config,
but it hasn''t worked. I need to run connection specific scripts as I
have other ppp''s going up & down which aren''t related.
The routing script starts 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 c...
2005 Oct 19
2
Load balance (two links in one server): why is this not working?
...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=''200.163.208.1''
P2=''10.1.1.1''
#
#----
#...
2005 Nov 24
0
Load Balancing/NAT
...Router/Modem IP (Gateway)
P3=10.254.10.10 #Sattelite 3 Router/Modem IP (Gateway)
P4=10.254.16.10 #Sattelite 4 Router/Modem IP (Gateway)
P5=10.254.17.10 #Sattelite 5 Router/Modem IP (Gateway)
P6=10.254.18.10 #Sattelite 6 Router/Modem IP (Gateway)
#Networks
P0_NET="10.10.1.0/24" # BBSM Net
P1_NET=10.254.7.0/24 #Satellite 1 Network
P2_NET=10.254.9.0/24 #Satellite 2 Network
P3_NET=10.254.10.0/24 #Satellite 3 Network
P4_NET=10.254.16.0/24 #Satellite 4 Network
P5_NET=10.254.17.0/24 #Satellite 5 Network
P6_NET=10.254.18.0/24 #Satellite 6 Network
#Perform Network Address Translation for this net...
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