[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problemi con ifupdown e guessnet



Ho modificato guessnet in modo che configuri la rete automaticamente in
base al contesto. C'è qualcosa che non va, all'avvio l'interfaccia
ethernet non viene mai configurata correttamente, ma se la riavvio
manualmente con ifdown/ifup viene configurata correttamente.

Questo è il /etc/network/interfaces

--8<---------------cut here---------------start------------->8---
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0

# Ifplugd brings up interfaces, so do not bring them up at startup
noauto eth0 
#auto eth0

#Iface eth0 inet dhcp

# Profile "none" is selected if no network signal is detected
# (i.e. there is no cable plugged into the socket)
#no-net missing-cable

Mapping eth0
    script guessnet-ifupdown
    #map easynote dhcp
    map default: dhcp
    map timeout: 3
    map verbose: true
    map debug: true
    #up /usr/local/bin/fetchnewsd.sh

#Easynote
iface easynote inet static
    address 192.168.2.2
    netmask 255.255.255.0
    bradcast 192.168.2.255
    gateway 192.168.2.1
    test peer address 192.168.2.1 mac 00:40:d0:7e:e5:3e

# If there is no link detected, don't try DHCP
#iface interface inet manual
#	test missing-cable
#	pre-up echo No link present.
#	Pre-up false

#Iface home inet dhcp

# Guessnet default
iface dhcp inet dhcp

Iface dsl-provider inet ppp
    pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
    dns-nameservers 208.67.222.222 208.67.220.220 
    provider dsl-provider

Allow-hotplug wlan0
iface wlan0 inet manual
    wpa-driver wext
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

Iface wifihome inet dhcp
--8<---------------cut here---------------end--------------->8---

E questo il log di ifup:

--8<---------------cut here---------------start------------->8---
Guessnet: Added startable with priority 100
guessnet: Added startable with priority 200
guessnet: Added startable with priority 4294967295
guessnet: 1 candidates found in input
guessnet: Guessnet 0.53 starting...
Guessnet: Trying MII detection
guessnet: 0 candidate profiles
guessnet: Added "default" test dhcp
guessnet: Trying MII detection
guessnet: Initialized test subsystems
guessnet: Starting all 3 startables
guessnet: Starting elements with priority 100
guessnet: Starting elements with priority 200
guessnet: Starting net sender
guessnet: Starting elements with priority 4294967295
guessnet: Sending 10 ARP probes, 1 every second...
Guessnet: Started tests
guessnet: 2 candidates
guessnet: Got ARP reply from 192.168.2.1 00:40:d0:7e:e5:3e
guessnet: ARP reply from 192.168.2.1 00:40:d0:7e:e5:3e matches
guessnet: Notified success of scan peer 192.168.2.1 00:40:d0:7e:e5:3e
guessnet: Keeping candidate easynote
guessnet: Got ARP reply from 192.168.2.1 00:40:d0:7e:e5:3e
guessnet: ARP reply from 192.168.2.1 00:40:d0:7e:e5:3e matches
guessnet: Notified success of scan peer 192.168.2.1 00:40:d0:7e:e5:3e
guessnet: Keeping candidate easynote
guessnet: Got ARP reply from 192.168.2.1 00:40:d0:7e:e5:3e
guessnet: ARP reply from 192.168.2.1 00:40:d0:7e:e5:3e matches
guessnet: Notified success of scan peer 192.168.2.1 00:40:d0:7e:e5:3e
guessnet: Keeping candidate easynote
--8<---------------cut here---------------end--------------->8---

-- 
                     Dona i tuoi cicli di clock alla ricerca!
                     http://boinc.berkeley.edu/
                          --------------------
    L'unica soddisfazione che danno i figli ai genitori e' nove mesi
    prima di nascere.
    		-- Vito Catozzo (Giorgio Faletti)


Reply to: