View previous topic :: View next topic |
Author |
Message |
andrea.lai n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 14 Nov 2003 Posts: 32
|
Posted: Thu Dec 11, 2003 7:36 pm Post subject: Doppio Gateway |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
RedNeckCracker Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2068902139424856a06ef2f.gif)
Joined: 27 Oct 2003 Posts: 146 Location: Italy
|
Posted: Thu Dec 11, 2003 9:12 pm Post subject: |
|
|
Per il source routing devi installare iproute2 (emerge iproute) ed usare IP con tabelle di routing differenziate.
per info:
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RedNeckCracker Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2068902139424856a06ef2f.gif)
Joined: 27 Oct 2003 Posts: 146 Location: Italy
|
Posted: Thu Dec 11, 2003 9:15 pm Post subject: |
|
|
dimenticavo.. leggere l'advanced routing howto aiuta ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
comio Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/761284344415a971047e47.gif)
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Thu Dec 11, 2003 9:53 pm Post subject: |
|
|
ti consiglio di mettere il tutto in /etc/conf.d/local.start, oppure fatti uno script _________________ RTFM!!!!
e
http://www.comio.it
![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|