LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-21-2013, 10:32 AM   #1
kenyee
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
can't activate load balancing uplink default route?


Any idea why the "file exists" error happens on this ip route command to load balance two uplinks?
I tried doing these
ip route add default via 205.237.100.209
ip route add default via 205.237.100.209 dev em2
but neither had any effect.

+ /sbin/ip route add default scope global nexthop via 205.237.100.209 dev em2 weight 1 nexthop via 216.36.102.185 dev em4 weight 1
RTNETLINK answers: File exists

# ip route list
216.36.102.248 dev em4 scope link src 216.36.102.189
205.237.100.0 dev em2 scope link src 205.237.100.217
216.36.102.184/29 dev em4 proto kernel scope link src 216.36.102.189
192.168.100.0/24 dev em1 proto kernel scope link src 192.168.100.217
205.237.100.0/24 dev em2 proto kernel scope link src 205.237.100.217
169.254.0.0/16 dev em1 scope link metric 1002
169.254.0.0/16 dev em2 scope link metric 1003
169.254.0.0/16 dev em4 scope link metric 1005
192.168.0.0/16 via 192.168.100.210 dev em1
default via 216.36.102.185 dev em4


# ip route list table T1
192.168.100.0 dev em1 scope link
216.36.102.248 dev em4 scope link
205.237.100.0 dev em2 scope link src 205.237.100.217
127.0.0.0/8 dev lo scope link
default via 205.237.100.209 dev em2

# ip route list table T2
192.168.100.0 dev em1 scope link
216.36.102.248 dev em4 scope link src 216.36.102.189
205.237.100.0 dev em2 scope link
127.0.0.0/8 dev lo scope link
default via 216.36.102.185 dev em4
 
Old 06-21-2013, 10:56 AM   #2
kenyee
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Figured it out...Centos/RHEL's auto network startup adds a default.
So in this script, I had to get rid of any previous defaults:

ip route del default via 205.237.100.209 dev em2
ip route dell default via 216.36.102.185 dev em4

And then executing the load-balancing default works...
 
  


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
[SOLVED] Iproute2 load balancing without default route Cenobite Linux - Networking 1 01-12-2011 01:14 PM
Network Load balancing + squid server with multiple uplink configuration ntlinn Linux - Server 0 08-19-2009 02:43 AM
Quagga default route not showing in kernel default route (netstat -nr) Valkyr1e Linux - Networking 3 08-03-2008 09:20 PM
iproute2 (ip route), pppoe and default route lorddoskias Linux - Networking 0 05-09-2007 11:04 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 04:59 AM

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

All times are GMT -5. The time now is 01:54 AM.

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