[Voyage-linux] voyage 0.6.5 static IP and reboot
Patrick CARON
(spam-protected)
Wed Oct 26 06:30:50 HKT 2011
Two cases possible:
1 There resolvconf
root @ voyage: ~ # apt-cache policy resolvconf
_________________________________________________________
resolvconf:
Installed: 1.46
Candidate: 1.46
Version table:
*** 1.46 0
500 http://ftp.hk.debian.org/debian/ squeeze/main i386 Packages
100 /var/lib/dpkg/status
_________________________________________________________
In which case the configuration of / etc / network / interfaces is as below
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information. auto lo iface
lo inet loopback
_________________________________________________________
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
dns-nameservers x.x.x.x y.y.y.y
# dns-search
.
.
_________________________________________________________
2) without resolvconf
root @ voyage: ~ # apt-cache policy resolvconf
_________________________________________________________
N: Unable to locate package resolvconf
_________________________________________________________
You must change yourself / etc / resolv.conf over / etc / network /
interfaces to reflect your configuration
root @ voyage: ~ # nano /etc/network/interfaces
_________________________________________________________
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
.
.
_________________________________________________________
root @ voyage: ~ # nano /etc/resolv.con
_________________________________________________________
nameserver x.x.x.x
nameserver y.y.y.y
_________________________________________________________
Patrick CARON
Linux n° #75163 / f1smf Echolink n° 128402
site web : http://f1smf.free.fr
Ensemble adoptons des gestes responsables : n'imprimez ce mail que si necessaire.
Le 25/10/2011 23:51, Gustin Johnson a écrit :
> You forgot the "auto eth0" line above the interface declaration.
>
> 2011/10/25 maciek<maciek2 at protetyka.lodz.pl>:
>> Hello
>>
>> I don`t want dhcp
>> I try to set static IP:
>> iface eth0 inet static
>> address 192.168.0.123
>> netmask 255.255.255.0
>> gateway 192.168.0.1
>>
>> I removed resolvconf
>>
>> and I put /etc/resolv.conf
>>
>> nameserver x.x.x.x
>> nameserver x.x.x.x
>>
>>
>>
>> after reboot....booting is stoped and system hanged, witchout eth0 up
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> v o i p t e l e . n e t , dzwon najtaniej jak to mozliwe
>> e r a u r . c o m , rozwiazania internetowe dla firm i klientow indywidualnych
>>
>> _______________________________________________
>> Voyage-linux mailing list
>> Voyage-linux at list.voyage.hk
>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20111026/f713b7bd/attachment.html>
More information about the Voyage-linux
mailing list