Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Doppio Gateway
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
andrea.lai
n00b
n00b


Joined: 14 Nov 2003
Posts: 32

PostPosted: Thu Dec 11, 2003 7:36 pm    Post subject: Doppio Gateway Reply with quote

Salve a tutti,
Ho un problema relativo al come impostare un doppio gateway oppure una rotta statica sulla mia interfaccia di rete avendo anche 2 intefacce di rete distinte .

Faccio un esempio suopposto che la mia scheda di rete abbia ip 192.168.0.1 e come default gateway 192.168.0.15 ( per internet ) ma volendo indirizzare tutto il traffico per gli indirizzi 192.168.2.0 verso il gateway 192.168.0.13 come faccio ad impostarlo in automatico ad ogni reboot del sistema senza dare ogni volta il comando

Code:
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.0.13   eth0

?

Su altre distro esisteva un file denominato "static-routes" dove era possibile fare ciò.

Esiste anche in Gentoo qualcosa di simile ?

Grazie
Back to top
View user's profile Send private message
RedNeckCracker
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2003
Posts: 146
Location: Italy

PostPosted: Thu Dec 11, 2003 9:12 pm    Post subject: Reply with quote

Per il source routing devi installare iproute2 (emerge iproute) ed usare IP con tabelle di routing differenziate.
per info:
Code:

man ip
Back to top
View user's profile Send private message
RedNeckCracker
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2003
Posts: 146
Location: Italy

PostPosted: Thu Dec 11, 2003 9:15 pm    Post subject: Reply with quote

dimenticavo.. leggere l'advanced routing howto aiuta ;)
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Thu Dec 11, 2003 9:53 pm    Post subject: Reply with quote

ti consiglio di mettere il tutto in /etc/conf.d/local.start, oppure fatti uno script
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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