View previous topic :: View next topic |
Author |
Message |
Ob1w4n n00b


Joined: 01 Jul 2005 Posts: 36 Location: Brianza, Italy
|
Posted: Tue Dec 06, 2005 2:21 pm Post subject: Sintassi di Baselayout |
|
|
Ciao,
io vorrei rendere automatico il seguente comando, ma non so la sintassi da mettere nel file /etc/conf.d/net:
route add 192.168.1.1 dev eth0 |
|
Back to top |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Tue Dec 06, 2005 2:24 pm Post subject: |
|
|
routes_eth0=(
"192.168.1.1"
)
in /etc/conf.d/net.example hai la sintassi del nuovo baselayout per quello che riguarda le reti. quella sopra non c'è, però l'ho provata ieri e funziona. |
|
Back to top |
|
 |
Ob1w4n n00b


Joined: 01 Jul 2005 Posts: 36 Location: Brianza, Italy
|
Posted: Tue Dec 06, 2005 2:57 pm Post subject: |
|
|
Ic3M4n wrote: | routes_eth0=(
"192.168.1.1"
)
in /etc/conf.d/net.example hai la sintassi del nuovo baselayout per quello che riguarda le reti. quella sopra non c'è, però l'ho provata ieri e funziona. |
Purtroppo l'avevo già provata e non funziona.
A te forse va perchè hai una sola scheda di rete.
Io ne ho 3 di cui 2 in bonding. |
|
Back to top |
|
 |
Luca89 Advocate


Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Tue Dec 06, 2005 3:05 pm Post subject: |
|
|
Non so bene cosa significhi bonding comunque su /etc/conf.d/net.example c'è spiegato come fare. _________________ Running Fast! |
|
Back to top |
|
 |
Ic3M4n Advocate


Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Tue Dec 06, 2005 3:32 pm Post subject: |
|
|
no, ne ho due. una configurata come default route. ed una per una sottorete. quindi la mia conf è così...
routes_eth0=(
"default via 192.168.1.1"
)#qui imposto il gateway
routes_eth1=(
"192.168.0.0/24"
)#qui imposto la sottorete |
|
Back to top |
|
 |
Xet Apprentice


Joined: 02 May 2004 Posts: 170
|
Posted: Tue Dec 06, 2005 4:36 pm Post subject: |
|
|
Code: |
Ulisse xet # more /etc/conf.d/net | grep -v '#'
hotplug_eth0="no"
hotplug_eth1="no"
hotplug_eth2="no"
config_eth0=( "192.168.0.14 netmask 255.255.255.0 broadcast 192.168.0.255" )
config_eth1=( "192.168.0.114 netmask 255.255.255.0 broadcast 192.168.0.255" )
config_eth2=( "192.168.0.214 netmask 255.255.255.0 broadcast 192.168.0.255" )
routes_eth0=(
"default via 192.168.0.1"
)
routes_eth1=("default via 192.168.0.1")
routes_eth2=("default via 192.168.0.1")
|
Code: |
Ulisse xet # emerge -pv baselayout
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] sys-apps/baselayout-1.12.0_pre11-r3 -bootstrap -build -static +unicode 204 kB
Total size of downloads: 204 kB
|
funziona tutto...solo con un kernel vecchio e un vecchio baselayout ho avuto problemi con la scheda wifi (2200): non impostava i parametri da usare (quelli di iwconfig per intederci) ma con kernel e bl nuovi è tornato tutto ok da solo
nel mentre avevo posto una "patch" provvisoria al sistema mettendo i comandi in un file e facendolo eseguire in local.start. soluzione grezza ma efficace. _________________ sono colui che sostiene il reale |
|
Back to top |
|
 |
makoomba Bodhisattva


Joined: 03 Jun 2004 Posts: 1856
|
Posted: Tue Dec 06, 2005 5:07 pm Post subject: |
|
|
@Ob1w4n
usi iproute2 o ifconfig ?
con ifconfig mi pare sia necessario aggiungere anche il device _________________ When all else fails, read the instructions. |
|
Back to top |
|
 |
Ob1w4n n00b


Joined: 01 Jul 2005 Posts: 36 Location: Brianza, Italy
|
Posted: Tue Dec 06, 2005 6:50 pm Post subject: |
|
|
Allora
Ho guardato già tutto il net.example ed ho cercato altra documentazione. Niente in proposito.
Quindi ho provato:
route_eth0 = ( "192.168.1.1" )
route_eth0 = ( "192.168.1.1 eth0" )
route_eth0 = ( "192.168.1.1 dev eth0" )
route_eth0 = ( "192.168.1.1 via eth0" )
ma niente di fatto. Mi da sempre errore di sintassi
Il baselayout è > 1.12 e uso ifconfig , non iproute2
Cmq per il momento ho aggirato il problema mettendo tutti i comandi che mi servono nel local.start.
Continuerò comunque a provare, perchè questa soluzione la trovo veramente brutta e poco standard. |
|
Back to top |
|
 |
makoomba Bodhisattva


Joined: 03 Jun 2004 Posts: 1856
|
Posted: Tue Dec 06, 2005 6:57 pm Post subject: |
|
|
puoi postare l'errore ?
routes_eth0 non route_eth0 _________________ When all else fails, read the instructions. |
|
Back to top |
|
 |
Ob1w4n n00b


Joined: 01 Jul 2005 Posts: 36 Location: Brianza, Italy
|
Posted: Tue Dec 06, 2005 7:02 pm Post subject: |
|
|
makoomba wrote: | puoi postare l'errore ?
routes_eth0 non route_eth0 |
Si bhe, qua ho sbagliato a scrivere.
L'errore lo posterò venerdì perchè il tutto è in ufficio. |
|
Back to top |
|
 |
.:chrome:. Advocate


Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Tue Dec 06, 2005 7:09 pm Post subject: |
|
|
ma scusa un attimo... non hai /etc/conf.d/net.example?
lì dentro ci sono esempi per tutto quello che devi fare |
|
Back to top |
|
 |
|