LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-11-2014, 06:40 PM   #1
hiltontr
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
can not change the metric parameter in Network configuration


eth0 Link encap:Ethernet HWaddr 3C9:2B:F2:2B:00
inet addr:10.1.19.69 Bcast:10.1.19.255 Mask:255.255.255.0
inet6 addr: fe80::3ed9:2bff:fef2:2b00/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38246 errors:0 dropped:0 overruns:0 frame:0
TX packets:60749 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2427777 (2.3 MiB) TX bytes:65675362 (62.6 MiB)
Memory:fbe60000-fbe80000

eth1 Link encap:Ethernet HWaddr 3C9:2B:F2:2B:01
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:7772 (7.5 KiB)
Memory:fbee0000-fbf00000

************
i just edited de the files that are on /etc/sysconfig/network-scripts/
ifcfg-eth0 ifcfg-eth1
and set metric=0 and metric=1.

where a went wrong?
 
Old 08-13-2014, 02:13 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,845

Rep: Reputation: 161Reputation: 161
Why do you need to change Metric?
The metric value is traditionally used by some operating systems to compute the cost of a route. Linux doesn't use this value yet, but defines it for compatibility, nevertheless.
 
Old 08-13-2014, 02:50 PM   #3
hiltontr
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
metric change

hi:

nini09, thank it is nice to now that, I have broken my head trying to change this metric parameter, the problem is that I have to use two different gateways on a database server, to give sevices two differnt networks. any idea how to do it, I've called several people and no one has a clear solution.

tanks
 
Old 08-14-2014, 02:34 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,845

Rep: Reputation: 161Reputation: 161
You can change Metric in route table. Add more route entry to meet requirement.
If two entries with identical Destination and Genmask, the one with the lower metric value is chosen.
 
Old 08-18-2014, 11:04 AM   #5
hiltontr
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Gracias. NINI09, it was the solution, i am new at networking an routing, it was of great help your answer, my problem was fixed, thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Change default route metric MikeyCarter Linux - Networking 1 09-10-2011 08:47 AM
Metric change question hackrat Linux - Networking 2 05-12-2005 04:03 PM
change metric for nic (slackware 9) andreiij Linux - Networking 1 09-24-2004 09:20 AM
Change parameter of /etc/sysconfig/network with a script philipina Linux - Hardware 1 03-11-2004 12:59 PM
Change parameter of /etc/sysconfig/network with a script philipina Linux - General 3 03-11-2004 05:05 AM

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

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