Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114514 - No exemple to assign a default metric to a default route
Summary: No exemple to assign a default metric to a default route
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 02:55 UTC by Aurélien Requiem
Modified: 2005-12-05 08:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Requiem 2005-12-05 02:55:12 UTC
in /etc/conf.d/net.exemple there's no exemple to assign a metric to the default
route. This is very usefull if you have more than one interface with both
default routes.

Here is a small exemple to add to the file:

routes_eth0=(
        "default via xxx.xxx.xxx.xxx metric 0"
)

routes_eth1=(
        "default via yyy.yyy.yyy.yyy metric 1"
)

Reproducible: Always
Steps to Reproduce:
1. have 2 nics
2. assign 2 default routes
3. try to ping outside both networks.

Actual Results:  
System has a lot of difficulties to route packets correctly.

Expected Results:  
Should access/ping/connect correctly to the remote host.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-12-05 08:28:21 UTC
baselayout-1.12 supports metric_eth0="1"