nano /etc/conf.d/net. ti si apre un editor di testo e ci devi mettere due linee cosė:
iface_eth0="192.168.1.4 broadcast 192.168.1.255 netmask 255.255.255.0"
gateway="eth0/192.168.1.1"
posto che 192.168.1.4 č l'ip che dai al pc e 192.168.1.1 č l'ip del pc/router che ti butta in rete. per salvare e uscire da nano premi ctrl+x
fatto questo metti i dns dentro /etc/resolv.conf editandolo sempre con nano. devi mettere un paio di linee cosė:
nameserver ip-dns
nameserver ip-dns
ora provi a tirare su la rete con:
/etc/init.d/net.eth0 start
se tutto va bene puoi pingare un sito qualsiasi su internet.
a sto punto per fare in modo che la rete sia configurata in automatico ad ogni avvio fai:
rc-update add net.eth0 default
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux
Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter
|