salut

am 2 ISPisti bla bla bla

am urmat RTFMul de la http://lartc.org/howto/lartc.rpdb.multiple-links.html

pachetele vin prin ISP2, raspunsul la ele pleaca pe ruta default, iar daca nu exista ruta default nu pleaca defel. daca sunt apelat din clasele de care apartin IPurile de pe interfete functioneaza ok. am bifat cam tot de pe la networking din kernel (2.6.19.1, alta versiune nu mere din cauza de VMware). cu iptables cred ca am o mascaradare, dar pot sa renunt la ea, si isi mai baga VMware-le o interfata NAT dar daca aia e renunt si la aia.

ce sa ii mai fac, unde sa ma uit? orice sugestii sunt apreciate. ideea e ca Apachele sa serveasca pe ambele interfete. (am listen pe ambele in httpd.conf).

some crappy listings:

ip route flush all

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:95:4E:3C:18
         inet addr:193.168.0.3  Bcast:193.168.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
         Interrupt:12 Base address:0x2f00

eth1      Link encap:Ethernet  HWaddr 00:02:2A:EF:FB:9E
         inet addr:86.55.94.81  Bcast:86.55.94.95  Mask:255.255.255.224
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
         Interrupt:11 Base address:0xaf00

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

###p1_net=193.168.0.0/24 if1=eth0 ip1=193.168.0.3 p1=193.168.0.1
###p2_net=86.55.94.64/27 if2=eth1 ip2=86.55.94.81 p2=86.55.94.65

ip route add  193.168.0.0/24  dev  eth0  src  193.168.0.3  table T1
ip route add default via 193.168.0.1  table T1
RTNETLINK answers: Network is unreachable
ip route add  86.55.94.64/27  dev  eth1  src  86.55.94.81  table T2
ip route add default via  86.55.94.65  table T2
RTNETLINK answers: Network is unreachable
ip route add  193.168.0.0/24  dev  eth0  src  193.168.0.3
ip route add  86.55.94.64/27  dev  eth1  src  86.55.94.81
ip rule add from  193.168.0.3  table T1
ip rule add from  86.55.94.81  table T2
ip route add 127.0.0.0/8 dev lo table T1
ip route add 127.0.0.0/8 dev lo table T2

in afara de astea mai am

ip route add default via 193.168.0.1
si inca o ruta speciala pentru un host

[EMAIL PROTECTED]:~# ip route show table main
86.55.239.65 dev eth1  scope link
86.55.94.64/27 dev eth1  scope link  src 86.55.94.81
193.168.0.0/24 dev eth0  scope link  src 193.168.0.3
192.168.189.0/24 dev vmnet8  proto kernel  scope link  src 192.168.189.1
default via 193.168.0.1 dev eth0
[EMAIL PROTECTED]:~# ip route show table T1
193.168.0.0/24 dev eth0  scope link  src 193.168.0.3
127.0.0.0/8 dev lo  scope link
[EMAIL PROTECTED]:~# ip route show table T2
86.55.94.64/27 dev eth1  scope link  src 86.55.94.81
127.0.0.0/8 dev lo  scope link
[EMAIL PROTECTED]:~# ip rule show
0:      from all lookup local
32764:  from 86.55.94.81 lookup T2
32765:  from 193.168.0.3 lookup T1
32766:  from all lookup main
32767:  from all lookup default
[EMAIL PROTECTED]:~#

--
tia,
ghrt


_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui