Displaying 20 results from an estimated 27 matches for "p2_net".
Did you mean:
p1_net
2007 Jul 05
4
Load Balancing , MSN and SSL
...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 $IP2
ip rul...
2006 Jan 05
5
multiple links and nat
...ve 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 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 n...
2004 Jul 12
0
Multipath load balance issues
...onnection 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 connection
IP1="218.xxx.xxx.xxx"
## Static IP Address...
2004 Jul 26
1
Load Balancing
...ating 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_interval
echo 0 > /proc/sys/net/ipv4/route/gc_timeout
ip route flu...
2006 Dec 24
1
Question regarding Split Access description
...up
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 nexthop via $P1 dev $IF1 weight
1 \
nexthop via $P2 gw $RTR2 weight 1
Router 2 - Prov...
2005 Feb 01
0
multiple uplinks example script
...n 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 $T3
#icq rules...
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 table $TABLE2
ip route add $P1_NET dev $IF1 src...
2006 Mar 19
0
need help with route tables and policy routing please
...76.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
#ip route add $P3_NET dev $IF3 table 50
#ip route a...
2006 Mar 26
1
vpn multihoming
...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
Note that ping works over the tunnel, over the
subnets, but the users on my LAN c...
2006 Mar 28
1
IP route balance problem
...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 $P1 table T1
ip route add $P2_NET dev $IF2 src...
2005 Jul 06
0
can''t figure out nat''ing by port
...t 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 via $P2 table T2
ip route add $P1_NET dev $...
2005 Oct 18
0
Two differente networks at the same ethernet pci adapter
...ANIEL 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 e marca os pacotes
#----
$IPTAB...
2004 Aug 01
0
QOS
...ating 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_interval
echo 0 > /proc/sys/net/ipv4/route/gc_timeout
ip route flu...
2004 Aug 26
0
Problems with QOS
...ating 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_interval
echo 0 > /proc/sys/net/ipv4/route/gc_timeout
ip route flu...
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
2005 Oct 19
2
Load balance (two links in one server): why is this not working?
...#-------------------------
#----
# 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''
#
#----
# Mascara as redes e marca os pacotes
#----
$...
2005 Nov 24
0
Load Balancing/NAT
...#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 network
NAT_NET=192.168.252/22
#Add the rout...
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
2004 Aug 17
16
Sanity check please !
I am setting to a shorewall system with 4 NIC''s as per the outline
specification below. Can anyone please have a look and let me know what I
have missed and what I have got wrong as I want to take this system live
ASAP but do not want to kill internet access and the hosting for too long !
I have listed below the system outline & have attached the config files that
I have changed, if
2004 Aug 12
0
Advanced Routing and FreeSwan
...;$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
echo ''Setting up advanced routing''
ip route add $P1_NET via $P1 src $IP1 table qsc1
ip route add default via $P1 table qsc1
ip route add $P2_NET via $P2 src $IP2 table qsc2
ip route add default via $P2...