Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Route table
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
maruscya
Guru
Guru


Joined: 13 Aug 2004
Posts: 507

PostPosted: Thu Jan 12, 2006 2:31 pm    Post subject: Route table Reply with quote

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
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Jan 12, 2006 2:44 pm    Post subject: Reply with quote

in /etc/conf.d/net
Code:
routes_eth0=( "default via $GW" "route2" "route3" )

_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
maruscya
Guru
Guru


Joined: 13 Aug 2004
Posts: 507

PostPosted: Thu Jan 12, 2006 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Thu Jan 12, 2006 3:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
maruscya
Guru
Guru


Joined: 13 Aug 2004
Posts: 507

PostPosted: Thu Jan 12, 2006 3:59 pm    Post subject: Reply with quote

Ho controllato il file... /etc/conf.d/net.example ma non ho trovato nulla... :(
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Jan 12, 2006 4:26 pm    Post subject: Reply with quote

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
Code:
10.1.0.0/24

perchè "dev eth0" è aggiunto automaticamente
_________________
When all else fails, read the instructions.
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