Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sintassi di Baselayout
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
Ob1w4n
n00b
n00b


Joined: 01 Jul 2005
Posts: 36
Location: Brianza, Italy

PostPosted: Tue Dec 06, 2005 2:21 pm    Post subject: Sintassi di Baselayout Reply with quote

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


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Tue Dec 06, 2005 2:24 pm    Post subject: Reply with quote

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


Joined: 01 Jul 2005
Posts: 36
Location: Brianza, Italy

PostPosted: Tue Dec 06, 2005 2:57 pm    Post subject: Reply with quote

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


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Tue Dec 06, 2005 3:05 pm    Post subject: Reply with quote

Non so bene cosa significhi bonding comunque su /etc/conf.d/net.example c'è spiegato come fare.
_________________
Running Fast!
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Tue Dec 06, 2005 3:32 pm    Post subject: Reply with quote

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


Joined: 02 May 2004
Posts: 170

PostPosted: Tue Dec 06, 2005 4:36 pm    Post subject: Reply with quote

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


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Tue Dec 06, 2005 5:07 pm    Post subject: Reply with quote

@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
View user's profile Send private message
Ob1w4n
n00b
n00b


Joined: 01 Jul 2005
Posts: 36
Location: Brianza, Italy

PostPosted: Tue Dec 06, 2005 6:50 pm    Post subject: Reply with quote

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


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Tue Dec 06, 2005 6:57 pm    Post subject: Reply with quote

puoi postare l'errore ?
routes_eth0 non route_eth0
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Ob1w4n
n00b
n00b


Joined: 01 Jul 2005
Posts: 36
Location: Brianza, Italy

PostPosted: Tue Dec 06, 2005 7:02 pm    Post subject: Reply with quote

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


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Tue Dec 06, 2005 7:09 pm    Post subject: Reply with quote

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
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