1 |
On Tuesday 14 Jun 2011 20:45:30 Cahn Roger wrote: |
2 |
> > # /etc/init.d/net.eth0 stop |
3 |
> > # ifconfig eth0 192.168.1.20 up |
4 |
> > |
5 |
> > and post output of |
6 |
> |
7 |
> /etc/init.d/net.eth0 stop |
8 |
> * Caching service dependencies ... |
9 |
> /etc/init.d/../conf.d/net: line 9: broadcast : commande introuvable |
10 |
> /etc/init.d/../conf.d/net: line 10: netmask : commande introuvable |
11 |
> SIOCADDRT: Le fichier existe |
12 |
> /etc/init.d/../conf.d/net: line 9: broadcast : commande introuvable |
13 |
> /etc/init.d/../conf.d/net: line 10: netmask : commande introuvable |
14 |
> SIOCADDRT: Le fichier existe |
15 |
> /etc/init.d/../conf.d/net: line 9: broadcast : commande introuvable |
16 |
> /etc/init.d/../conf.d/net: line 10: netmask : commande introuvable |
17 |
|
18 |
You need to remove those lines that I asked you to type on the command line |
19 |
from the /etc/conf.d/net file - or look at the example file provided and use |
20 |
that to define static address/broadcast/netmask correctly. |
21 |
|
22 |
Typically something like: |
23 |
|
24 |
config_eth0="192.168.1.20/24" |
25 |
|
26 |
should do it. If you want to define a static route and dns server add: |
27 |
|
28 |
routes_eth0="default via 192.168.1.1" |
29 |
dns_servers_eth0="192.168.1.1" |
30 |
|
31 |
HTH. |
32 |
-- |
33 |
Regards, |
34 |
Mick |