View previous topic :: View next topic |
Author |
Message |
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 10:52 am Post subject: |
|
|
No, ho dhcpcd versione 2.0.0...
Tutti sti post li ho spediti con la scheda wi-fi del portatile, connessa con dhcpcd.
E il mio /etc/conf.d/net ora è: Code: | config_eth0=("dhcp")
modules_eth0=( "dhcpcd" )
modules=( "dhcpcd" )
dhcpcd_eth0="-t 10"
dhcp_eth0="nontp nonis"
|
Inoltre: Code: | candooc canduc # ls -l /etc/init.d/net.eth0
lrwxrwxrwx 1 root root 6 Feb 5 2007 /etc/init.d/net.eth0 -> net.lo |
Che faccio, aggiorno dhcpcd all'ultima versione disponibile (2.0.5-r1)?
Confesso che ho un po' paura... _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
crisandbea Veteran
Joined: 03 Jul 2005 Posts: 1778 Location: BOSCO (SA) ... ma domiciliato a Bologna....
|
Posted: Mon Feb 05, 2007 10:55 am Post subject: |
|
|
aggiorna tranquillamente alla versione 2.0.5-r1;
nb: ma se dopo che il pc è partito, dai da shell ovviamente come root, il comando che ti dice??
ciauz |
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 11:18 am Post subject: |
|
|
Allora, ho aggiornato dhcpcd alla versione 2.0.5-r1 e alla fine della compilazione mi ha dato il seguente messaggio che non so cosa significa: Code: | QA Notice: USE Flag 'kernel_linux' not in IUSE for net-misc/dhcpcd-2.0.5-r1
*
* dhcpcd requires kernel support for Packet Socket (CONFIG_PACKET).
*
>>> Regenerating /etc/ld.so.cache...
>>> net-misc/dhcpcd-2.0.5-r1 merged.
|
Questo è quello che succede (con cavo inserito): Code: | candooc canduc # dhcpcd eth0
Error, dhcpStart: interface eth0 is not Ethernet or 802.2 Token Ring |
Da notare che dhcp con la wi-fi, continua ad andare benissimo...
Ho anche questo risultato: Code: | candooc canduc # ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:448 (448.0 b) TX bytes:448 (448.0 b)
wlan0 Link encap:Ethernet HWaddr 00:11:D8:BB:C7:0A
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:febb:c70a/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:317 errors:0 dropped:0 overruns:0 frame:0
TX packets:273 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:338010 (330.0 Kb) TX bytes:34129 (33.3 Kb)
candooc canduc # ifconfig eth0
eth0 Link encap:UNSPEC HWaddr 00-E0-18-00-03-2C-94-16-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|
Mi maca qualcosa nel kernel?! _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Mon Feb 05, 2007 11:23 am Post subject: |
|
|
prova cosi' Code: | emerge -C dhcpcd
echo ">net-misc/dhcpcd-3.0.6" >> /etc/portage/package.mask
echo ">=net-misc/dhcpcd-3.0.6" >> /etc/portage/package.keywords
emerge dhcpcd |
_________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
|
crisandbea Veteran
Joined: 03 Jul 2005 Posts: 1778 Location: BOSCO (SA) ... ma domiciliato a Bologna....
|
Posted: Mon Feb 05, 2007 11:28 am Post subject: |
|
|
posta queste info :
Code: |
lspci |grep eth0
dmesg |grep eth0
|
ciauz |
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 11:33 am Post subject: |
|
|
Code: | candooc canduc # lspci |grep eth0
candooc canduc # dmesg |grep eth0
eth1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
|
Il primo comando non mi dà risultati...
Scusa noice, ma secondo me il problema è da un'altra parte...
La tua soluzione la tengo come ultima spiaggia... _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
crisandbea Veteran
Joined: 03 Jul 2005 Posts: 1778 Location: BOSCO (SA) ... ma domiciliato a Bologna....
|
Posted: Mon Feb 05, 2007 11:45 am Post subject: |
|
|
hai attivato il modulo per la tua scheda di rete nel kernel ???
Code: |
Linux Kernel v2.6.19-gentoo-r5 Configuration
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌────────────────────────────────────── IEEE 1394 (FireWire) support ───────────────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted letters are hotkeys. │
│ Pressing <Y> includes, <N> excludes, <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, │
│ </> for Search. Legend: [*] built-in [ ] excluded <M> module < > module capable │
│ │
│ ┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ <M> IEEE 1394 (FireWire) support │ │
│ │ --- Subsystem Options │ │
│ │ [ ] Excessive debugging output (NEW) │ │
│ │ [ ] OUI Database built-in (NEW) │ │
│ │ [ ] Build in extra config rom entries for certain functionality (NEW) │ │
│ │ [ ] Export all symbols of ieee1394's API (NEW) │ │
│ │ --- Device Drivers │ │
│ │ --- Texas Instruments PCILynx requires I2C │ │
│ │ < > OHCI-1394 support (NEW) │ │
│ │ --- Protocol Drivers │ │
│ │ < > SBP-2 support (Harddisks etc.) (NEW) │ │
│ │ < > Ethernet over 1394 (NEW) <-- Dovrebbe essere il tuo.
│ │ < > Raw IEEE1394 I/O support (NEW) │ │
│ │ │ │
│ │ │ │
│ │ │ │
<Select> < Exit > < Help >
|
ciauz |
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 11:59 am Post subject: |
|
|
Sì, ce l'ho settato come modulo...
Ma cosa centra la firewire?Io ho una scheda ethernet normalissima...
Nell'help di make menuconfig non c'è il nome del modulo: volevo vedere se era caricato... _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
crisandbea Veteran
Joined: 03 Jul 2005 Posts: 1778 Location: BOSCO (SA) ... ma domiciliato a Bologna....
|
Posted: Mon Feb 05, 2007 12:02 pm Post subject: |
|
|
canduc17 wrote: | Sì, ce l'ho settato come modulo...
Ma cosa centra la firewire?Io ho una scheda ethernet normalissima...
Nell'help di make menuconfig non c'è il nome del modulo: volevo vedere se era caricato... |
la tua eth0 è --> Code: | eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0) | , quindi potresti non aver settato questo modulo, posta un Code: | sudo lspci | grep Eth | .
ciauz |
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 12:04 pm Post subject: |
|
|
Code: | candooc linux # lspci
00:00.0 Host bridge: nVidia Corporation nForce3 Host Bridge (rev a4)
00:01.0 ISA bridge: nVidia Corporation nForce3 LPC Bridge (rev f6)
00:01.1 SMBus: nVidia Corporation nForce3 SMBus (rev a4)
00:02.0 USB Controller: nVidia Corporation nForce3 USB 1.1 (rev a5)
00:02.1 USB Controller: nVidia Corporation nForce3 USB 1.1 (rev a5)
00:02.2 USB Controller: nVidia Corporation nForce3 USB 2.0 (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 Audio (rev a2)
00:06.1 Modem: nVidia Corporation Unknown device 00d9 (rev a2)
00:08.0 IDE interface: nVidia Corporation nForce3 IDE (rev a5)
00:0a.0 PCI bridge: nVidia Corporation nForce3 PCI Bridge (rev a2)
00:0b.0 PCI bridge: nVidia Corporation nForce3 AGP Bridge (rev a4)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)
02:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
02:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
02:01.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
02:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 08)
|
_________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Mon Feb 05, 2007 12:07 pm Post subject: |
|
|
hai provato a vedere qui? _________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
|
crisandbea Veteran
Joined: 03 Jul 2005 Posts: 1778 Location: BOSCO (SA) ... ma domiciliato a Bologna....
|
Posted: Mon Feb 05, 2007 12:10 pm Post subject: |
|
|
hai abilitato il supporto Code: | 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13) | dovrebbe essere uno di questi. ovviamente lo trovi in Ethernet 1000Mbit del kernel.
Code: |
< > New SysKonnect GigaEthernet support
< > SysKonnect Yukon2 support (EXPERIMENTAL)
< > Marvell Yukon Chipset / SysKonnect SK-98xx Support (DEPRECATED) |
ciauz |
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 12:14 pm Post subject: |
|
|
Grazie noice.
Ecco qua: Code: | candooc linux # ifconfig -a
eth0 Link encap:UNSPEC HWaddr 00-E0-18-00-03-2C-94-16-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth1 Link encap:Ethernet HWaddr 00:11:D8:A7:F6:D5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Memory:feaf8000-0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:448 (448.0 b) TX bytes:448 (448.0 b)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wlan0 Link encap:Ethernet HWaddr 00:11:D8:BB:C7:0A
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:febb:c70a/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1782 errors:525 dropped:0 overruns:0 frame:525
TX packets:1334 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1997423 (1.9 Mb) TX bytes:183370 (179.0 Kb) |
Si vede che con l'aggiornamento la mia scheda ethernet è diventata eth1.
Ora, come faccio a rimettere le cose a posto:
la cosa preferibile sarebbe rinominare la scheda di rete con eth0, ma non so come si fà...
Oppure cambio tutti gli eth0 ion eth1 in /etc/conf.d/net? _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 12:35 pm Post subject: |
|
|
Come indicava il post di noice, ho eliminato questo driver: Code: | rm /path/to/eth1394.ko | Ora la eth0 corrisponde alla scheda ethernet.
Se riavvio la macchina con il cavo di rete attaccato, va tutto a buon fine: Code: | candooc canduc # rc-status default
Runlevel: default
xdm [ started ]
dbus [ started ]
hald [ started ]
local [ started ]
mysql [ started ]
vixie-cron [ started ]
syslog-ng [ started ]
tomcat-5.5 [ started ]
net.eth0 [ started ]
netmount [ started ]
apache2 [ started ]
| Ma se il cavo è staccato, non va come prima...
Ora, siccome io mi collego più spesso con la wi-fi, come faccio a dirgli di lasciare perdere net.eth0, ma di farmi partire apache lo stesso?
Cosa devo scrivere in /etc/conf.d/net? _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Mon Feb 05, 2007 1:07 pm Post subject: |
|
|
se non vuoi far partire eth0 al boot rimuovila dal runlevel
Code: | rc-update del net.eth0 default |
oppure puoi editare in /etc/conf.d/rc Code: |
RC_PLUG_SERVICES="!net.eth0" |
_________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
|
canduc17 l33t
Joined: 11 Oct 2005 Posts: 795 Location: Ferrara, Italy
|
Posted: Mon Feb 05, 2007 1:10 pm Post subject: |
|
|
Ce l'ho fatta!
Ho editato come segue /etc/conf.d/net: Code: | config_eth0=("noop" "192.168.1.3/24")
modules_eth0=( "dhcpcd" )
modules=( "dhcpcd" )
dhcpcd_eth0="-t 10"
dhcp_eth0="nontp nonis"
|
In questo modo che il cavo ci sia o non ci sia, mi dà l'indirizzo all'interfaccia e tutto funziona!
Grazie mille ragazzi! _________________ A cow enters a supermarket, does an handstand and dies. (Public toilet graffito) |
|
Back to top |
|
|
|