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-16-2010, 10:39 PM   #1
Joydeep Bakshi
Member
 
Registered: May 2007
Distribution: debian
Posts: 62

Rep: Reputation: 15
can metric prioritize between two Ethernet lan ?


Hello,

I have configured guessnet along with ifplugd and it is working really well. I have two internet connection at office and I like to set a priority there. I have already installed ifmetric and here is my guessnet related config

```````````````
iface office-airtel inet static
address 192.168.1.99
netmask 255.255.0.0
network 192.168.1.0
broadcast 192.168.1.0
gateway 192.168.1.1
metric 1
test peer address 192.168.1.1 mac 00:15:17:62:39:4f
#pre-up /usr/local/bin/wishnet stop

iface office-tata inet static
address 192.168.1.99
netmask 255.255.0.0
network 192.168.2.0
broadcast 192.168.2.0
gateway 192.168.2.1
metric 2
test peer address 192.168.2.1 mac 00:17:31:c0:bb:f6
`````````````````````````

You can see the metric1 is set to office-airtel which I like to be set when I connect lan at office. But it always set to office-tata. Obviously I checked both the connection by omitting its presence from map and both of them individually working well with guessnet. I wounder if guessnst can't set metric between the same lan device. Is there anything which can help me to set the priority ?

Thanks
 
Old 06-17-2010, 02:36 AM   #2
Joydeep Bakshi
Member
 
Registered: May 2007
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
A correction. Actually there is only a single NIC. guessnet scans for the availability of the network. So I am looking for an arrangement which can set a particular connection among other as highest priority. Can metric help me in this situation ?

Thanks
 
Old 06-17-2010, 05:06 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Metric effectively adds delay to a route. When computing the best route to send packets to a given destination, metric will cause a route to score lower. It may be possible to use it for your purpose, by making one interface have priority over the other. However, I suspect you have a more fundamental problem.

Note:
iface office-airtel inet static
address 192.168.1.99
netmask 255.255.0.0
network 192.168.1.0

and

iface office-tata inet static
address 192.168.1.99
netmask 255.255.0.0
network 192.168.2.0

This really looks like an addressing conflict. Both interfaces have the same IP on what you have said is the same network segment (network: 192.168.x.x). You need to address this issue first. One simple way to do so, would be to set the mask to 255.255.255.0, but this will only work if it is compatible with the reset of the network.
 
Old 06-18-2010, 12:08 AM   #4
Joydeep Bakshi
Member
 
Registered: May 2007
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks for your response.

Well, I think I need to clarify more. The IP 192.168.1.99 should be given to my laptop regardless the route 192.168.2.1 or 192.168.1.1 . That's why my mask is
255.255.0.0. One more reason to do this, I need to access both the segments. If I set manually like "ifup eth0=office-airtel" or ifup eth0=office-tata" the route command shows the effective gateway in action. guessnet actually taking care to auto config the eth0 and I am looking some arrangement to force guessnet to always set a highest priority to office-airtel even the presence of office-tata.
 
  


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
Ethernet LAN, Sound and Wireless LAN not working dongarry Linux - Newbie 1 11-03-2009 03:31 PM
Incoming traffic prioritize dorian33 Linux - Networking 8 10-26-2008 05:44 AM
How do I prioritize network interfaces MikeyCarter Linux - Networking 2 08-27-2008 02:30 PM
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
prioritize (inversely) P2P traffic. eantoranz Linux - Networking 0 08-11-2005 09:26 AM

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

All times are GMT -5. The time now is 12:11 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