again the same prob that is ::two providers (heres full description )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

many many thanks for ur help
ok i m making my problem more clear...

my LAN ip is :
ip of eth1 is :  and this is fixed and permanent address
                and it has no netmask and gateway(so, to provide internet to my LAN i have used the ppp0 for this connection )
ip of eth2 :; netmask:; gateway:

for eth0 my file is :/etc/sysconfig/network-scripts/ifcfg-eth0
for eth1 :/etc/sysconfig/network-scripts/ifcfg-eth1
for eth2:/etc/sysconfig/network-scripts/ifcfg-eth2

and my rules are placed in /etc/iproute2/rt_tables as suggested by
and the whole copy of my above file is copied below:::>>>

# reserved values
#255    local
#254    main
#253    default
#0      unspec
# local
#1      inr.ruhep

# below this is added by me and above this is by default
# two addational routing tables

#ip route add dev eth1 src ppp0 table T1
#ip route add default via ppp0 table T1
ip route add dev eth2 src table T2
ip route add default via table T2

# main routing table

ip route add dev eth1 src ppp0
ip route add dev src

# preference for default route

ip route add default via

# routing rules

ip rule add from ppp0 table T1
ip rule add from table T2

# entries for local network

ip route add    dev eth0 table T1
ip route add    dev eth2 table T1
ip route add        dev lo   table T1
ip route add    dev eth0 table T2
ip route add     dev eth1 table T2
ip route add        dev lo   table T2

#load balancing
ip route add default scope global nexthop via ppp0 dev eth1 weight 1 nexthop via dev eth2 weight 1

this above one is the full and exact copy of my working....

Indunil Jayasooriya <indunil75@xxxxxxxxx>

On 8/21/07, mangal regmi <mangalregmi@xxxxxxxxx> wrote:
Hi to all
i think this is not a new problem for this forum....but its newest for me as i m a new  linux lerner. Even if it is new plzz....reply me ur answer..n if its already asked n have solution..plzz forward the solution.  My problem is here mentioned:
I have fedora core 4 as a linux server. there r two external links connected to this.

I there are 2 external links, What is the file /etc/sysconfig/network like?

Can you witre down the file?

the settings are as: eth0 ->for internal (that is for LAN)
                             eth2 ->dsl connection
                             eth1 ->cable line connection( this connection has no gateway and netmask address provided so this is connected via ppp0. this is provided from ISP via DHCP but have the fixed ipaddress) Hey, What is this FIXED ip address? Is it a perment address?

YOUR eth0 of Fedora Server is for internal (that is for LAN)
YOUR eth2 of Fedora Server is connected to the dsl connection.
YOUR eth1 of Fedora Server is connected to the cable line connection. It has a ip.

i want to use these two link to provide the internet in my LAN where there are about 8 to 10 computers. i want that if any of the link goes down ...the other should  continue the internet ...n also while both the links r up..the load should be shared   between these two that the net conection and downloads be faster....

i have heard about the scripts....that can do this....but i have no idea how to write these...scripts. i need these  to be on after reboot also...

To come up the script after the reboot, There are two ways. Either you have to write everytning IN /etc/rc.d/rc.local or write the script as a seperate file and and make it executable by using chmod.

Pls see bellow.

first create the file as follows.

touch /etc/rc.d/loadbalancing

then , By using vi editor write the script and save it as usual. Then , Make it executable as follows.

chmod 755 /etc/rc.d/loadbalancing

and finally add PATH OF THE SCRIPT to /etc/rc.d/rc.local file as follows.


That's it. Now, whenever you reboot the system, the scripts also comes up with the system.

i tried my best and i also refered the ..but i could do a little only.

WHAT I DID: it works very well if i connect both of the links and the default path is  via ppp0. but suppose if that is(ppp0) disconnected then the dsl connection can handle only upto 15/16 seconds. after that it  disconnects . whats the solution m in big trouble....

COULD YOU PLS write down your RULES . then, I will be able to help you.

Remember that i don't have gateway and netmask of eth1 connection. it has  ip address is NATed via ppp0. and also my all working are based on case of dsl connection i have just replaced the ip and gateways with my ip and gateways....n in case of ppp0 conection i have put ppp0 in the place of  gateway n netmask  and in place of ip i have given the ip of that link.

The above paragraph is not so clear.


Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.

LARTC mailing list

Thank you
Indunil Jayasooriya

Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
LARTC mailing list

[Bugtraq]     [Fedora Legacy]     [GCC Help]     [Yosemite News]     [Yosemite Photos]     [IP Tables]     [Netfilter Devel]     [Fedora Users]

Powered by Linux