View previous topic :: View next topic |
Author |
Message |
maruscya Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 13 Aug 2004 Posts: 507
|
Posted: Thu Jan 12, 2006 2:31 pm Post subject: Route table |
|
|
Ciao a tutti..
Ho aggiunto con un bel route -add etc... un nuovo gateway alla mia macchina.
Credo che al riavvio dovro' rifare lo stesso comando per ripristinare la situazione. Tempo fa sotto redhat c'era un file /etc/<qualcosa>/static-route dove si potevano salvare le impostazioni delle routing table per essere ripristinate all' avvio.
Con gentoo come funziona ??
Grazie mille... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
makoomba Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/54100765943a2d293cd61e.jpg)
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Jan 12, 2006 2:44 pm Post subject: |
|
|
in /etc/conf.d/net
Code: | routes_eth0=( "default via $GW" "route2" "route3" ) |
_________________ When all else fails, read the instructions. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maruscya Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 13 Aug 2004 Posts: 507
|
Posted: Thu Jan 12, 2006 3:53 pm Post subject: |
|
|
makoomba wrote: | in /etc/conf.d/net
Code: | routes_eth0=( "default via $GW" "route2" "route3" ) |
|
Grazie per la risposta.
In effetti al riavvio mi sono ristrovato il GW assegnato, pero' con netmask errata. A naso ho provato cosi
Code: | routes_eth0=( "default via $GW" "10.101.18.0 netmask 255.255.255.0 via <IP-GW>" ) |
Ma non funziona come dovrebbe Sul forum non sono riuscito a trovare nulla che mi aiutasse (anche perche la ricerca del sito fa un po' pena )
Forse devo cambiare sintassi o altro ma non so dove mettere le mani
MaruscyA |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Onip Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/14414636074b138f3ed54ce.png)
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Thu Jan 12, 2006 3:56 pm Post subject: |
|
|
prova a vedere in
Code: | /etc/conf.d/net.example |
magari trovi qualcosa di utile...
Byez _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maruscya Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 13 Aug 2004 Posts: 507
|
Posted: Thu Jan 12, 2006 3:59 pm Post subject: |
|
|
Ho controllato il file... /etc/conf.d/net.example ma non ho trovato nulla... ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
makoomba Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/54100765943a2d293cd61e.jpg)
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Jan 12, 2006 4:26 pm Post subject: |
|
|
la sintassi varia in base al modulo usato per gestire le routes (route/iproute2).
manualmente
- rimuovi le routes
- aggiungile singolarmente
quando la rete funge correttamente, le copi in routes_eth0 da add in poi
ad esempio, con iproute2
Code: | ip route add 10.1.0.0/24 dev eth0 |
diventa
perchè "dev eth0" è aggiunto automaticamente _________________ When all else fails, read the instructions. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|