Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[routage] regler la metric au montage de la carte (resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
naerex
Guru
Guru


Joined: 02 Apr 2005
Posts: 316
Location: Paris, France

PostPosted: Sun Jan 01, 2006 5:09 pm    Post subject: [routage] regler la metric au montage de la carte (resolu) Reply with quote

Salut

J'ai cherché sur google sans succes le moyen de definir la metric de routage au montage de la carte.
actuellement j'ai ça qui marche car j'ai mis une metric de 10 pour wlan et 1 pour eth1 (fastidieux del de route et recréation avec les bonnes metric)
Code:

Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U     10     0        0 wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.254   0.0.0.0         UG    1     0        0 eth1
0.0.0.0         192.168.0.254   0.0.0.0         UG    10     0        0 wlan0


comment définir ces parametres une bonne foie pour toute ?


Last edited by naerex on Sun Jan 01, 2006 9:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Sun Jan 01, 2006 6:49 pm    Post subject: Reply with quote

il te faut simplement modifier le fichier /etc/conf.d/net
Back to top
View user's profile Send private message
naerex
Guru
Guru


Joined: 02 Apr 2005
Posts: 316
Location: Paris, France

PostPosted: Sun Jan 01, 2006 8:01 pm    Post subject: Reply with quote

ça c'est de la réponse qui tue !!! :lol:

bon j'ai trouvé un pti tool très pratique qui me fait ça simplement : emerge ifmetric
ensuite ya juste a faire : ifmetric wlan 10
Back to top
View user's profile Send private message
naerex
Guru
Guru


Joined: 02 Apr 2005
Posts: 316
Location: Paris, France

PostPosted: Sun Jan 01, 2006 9:18 pm    Post subject: Reply with quote

et maintenant comment je rajoute cette commande dans /etc/conf.d/net ?

[EDIT]

bon c'est un peu de la bidouille mais ça marche, j'ai rajouté ça dans /etc/conf.d/net :
Code:

postup() {
        /usr/sbin/ifmetric wlan0 3
        return 0
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum