LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2010, 08:51 PM   #16
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15

The \ is only to show segmentation of a long sentance.. but just for giggles I tried it.
and as expected it didn't work

[root@dns ~]# ip route add default scope global nexthop via 192.168.1.254 dev wlan0 weight 1 \
nexthop via 192.168.25.2 dev eth0 weight 1
Error: "nexthop" or end of line is expected instead of " nexthop"


This one has really got me. i just cannot find a solution to this, and your help is appreciated.

I just finished trying a new configuration using fwmark with iptables with the EXACTLY the same result.

This was baised on http://linux-ip.net/html/adv-multi-internet.html

Last edited by jschofield; 01-20-2010 at 08:53 PM.
 
Old 01-20-2010, 09:05 PM   #17
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Strange, because as you have mentioned before, if you change order of "nexthop" everything works but different way.

So looks like balancing doesn't work, or kernel chooses only first route always.
You may try to disconnect one interface, to check this, or you can change "weight".

Last edited by nimnull22; 01-20-2010 at 09:07 PM.
 
1 members found this post helpful.
Old 01-20-2010, 09:20 PM   #18
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15
you maybe correct on this. I was also thinking because the wireless card in the server is a linksys WMP54GS using ndiswrpper that this may be affecting it.. I initially disregarded this as it was working when you pinged or tracepathed to the respective gateways.

it still doesn't really explain why the route cache is using the wrong source ip address..
I may just start from scratch recompile the kernel, reconfigure the interface, and see if i can get away from using ndiswrapper for this wireless nic..

I just know that this problem is hinging on something small and seemingly insignificant.
usually when I get stuck this seems to allways be the case.
 
Old 01-20-2010, 09:29 PM   #19
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
No, wait

Change weight of the route and check, it is much easy. Or disconnect ethernet, in this case kernet has to take second interface. Try.
 
Old 01-20-2010, 09:40 PM   #20
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15
Ok, Sure.

Well Interesting... this is working as a Fall-over.. as soon as I unplugged eth0 (192.168.25.1), the other gateway started to work.. i pluged it back in and it goes back to the way it was before.

the changing of the weight only add's preference to a paticular gateway, witch is what i am finding.. weight 2 on 192.168.25.2 makes 3 of my 5 test tracepath's go out the working gateway. the other 2 hit the one that isnt working correctly.
 
Old 01-20-2010, 09:57 PM   #21
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Can you remove "default route", which was "0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 wlan0" on previous page, and check again.

Thanks
 
Old 01-20-2010, 10:01 PM   #22
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15
This will take down the multi-path route as well..


Just tested it.. and as expected the multi-path route is gone.
leaving no default route

[root@dns jason]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.25.0 * 255.255.255.0 U 10 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.254 0.0.0.0 UG 0 0 0 wlan0
[root@dns jason]# route del default gw 192.168.1.254
[root@dns jason]# ip route
192.168.1.0/24 dev wlan0 scope link
192.168.25.0/24 dev eth0 proto kernel scope link src 192.168.25.1 metric 10
127.0.0.0/8 dev lo scope link
[root@dns jason]#
 
Old 01-20-2010, 10:08 PM   #23
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Let me think.

Last edited by nimnull22; 01-20-2010 at 10:10 PM.
 
Old 01-20-2010, 10:09 PM   #24
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15
I also just tried Appending the default route with

route add default gw 192.168.1.254

ip route append default scope global nexthop via 192.168.1.254 dev wlan0 weight 1 nexthop via 192.168.25.2 dev eth0 weight 1

resulting in

[root@dns jason]# ip route
192.168.1.0/24 dev wlan0 scope link
192.168.25.0/24 dev eth0 proto kernel scope link src 192.168.25.1 metric 10
127.0.0.0/8 dev lo scope link
default via 192.168.25.2 dev eth0
default
nexthop via 192.168.1.254 dev wlan0 weight 1
nexthop via 192.168.25.2 dev eth0 weight 1
[root@dns jason]#

and still the same results... one gateway will respond the other will not.

Last edited by jschofield; 01-20-2010 at 10:17 PM.
 
Old 01-20-2010, 10:11 PM   #25
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15
No, they are already present in the routing table
 
Old 01-20-2010, 10:17 PM   #26
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Look, right now you have in your output:
192.168.1.0/24 dev wlan0 scope link
192.168.25.0/24 dev eth0 proto kernel scope link src 192.168.25.1 metric 10
127.0.0.0/8 dev lo scope link

default via 192.168.25.2 dev eth0

default
nexthop via 192.168.1.254 dev wlan0 weight 1
nexthop via 192.168.25.2 dev eth0 weight 1


In your previous post there was not it, and really sure that it work through eth0.
 
Old 01-20-2010, 10:24 PM   #27
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15
Sorry, I have a nasty habit of transposing number and such...
but also i have been flipping around so many numbers and routes that I probably put the wrong one in the post.

I am also sitting at my work station at work here and when I bring the ip route add default scope global nexthop via 192.168.1.254 dev wlan0 weight 1 nexthop via 192.168.25.2 dev eth0 weight 1
its 50/50 shot if my reply posts will make it. so i take it down and manually add my single default route in
route add default gw 192.168.25.2

sorry for the confusion. fatuige is setting in..

Currently yes the eth0 gateway is working. 192.168.25.2 is working in the multi-path route wile 192.168.1.254 is not.
 
Old 01-20-2010, 10:39 PM   #28
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
I meant that outputs of "ip route" are different:
the first one from previous page looks like:
[root@dns jason]# ip route
192.168.1.0/24 dev wlan0 scope link
192.168.25.0/24 dev eth0 proto kernel scope link src 192.168.25.1 metric 10
127.0.0.0/8 dev lo scope link
default equalize
nexthop via 192.168.1.254 dev wlan0 weight 1
nexthop via 192.168.25.2 dev eth0 weight 1


Now it looks like:
[root@dns jason]# ip route
192.168.1.0/24 dev wlan0 scope link
192.168.25.0/24 dev eth0 proto kernel scope link src 192.168.25.1 metric 10
127.0.0.0/8 dev lo scope link
default via 192.168.25.2 dev eth0
default
nexthop via 192.168.1.254 dev wlan0 weight 1
nexthop via 192.168.25.2 dev eth0 weight 1

Last edited by nimnull22; 01-20-2010 at 10:42 PM.
 
Old 01-20-2010, 10:44 PM   #29
jschofield
LQ Newbie
 
Registered: Jan 2010
Location: Blackfalds, Alberta
Distribution: Mandriva 2006.0
Posts: 26

Original Poster
Rep: Reputation: 15
Oh, yes, I exptected as much,

I had added my single default route in and THEN the multi-path route. that is why the output was different.

it was just something i was trying. just to see if it would make the difference.. i also did this with the single default route of 192.168.1.254 then the multi-path route, witch i didnt include in the post as the result was the same
 
Old 01-20-2010, 10:54 PM   #30
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Ok, thanks, there wasn't much help from me.
I think you better roll back to your original configuration.

I also think, as you mentioned before about ndiswrpper, may be that happen because kernel doesn't use driver directly.

I hope tomorrow someone else will give you a better advice.

Last edited by nimnull22; 01-20-2010 at 10:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi ISP load balancing Skillz Linux - Networking 8 03-13-2012 01:54 PM
Bandwidth load balancing between 2 ISP thet.zawko Linux - Server 6 07-14-2011 05:36 PM
Load balancing two ISP links on Suse9.0 akistam Linux - Networking 1 02-05-2009 12:02 PM
Load Balancing With 2 ISP on LAN (problem with web site on the Server) smadon Linux - Networking 1 08-21-2008 01:58 AM
Load balancing two isp and two local run_time Linux - Networking 0 01-12-2008 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration