Welcome, Guest. Please Login or Register
FUG-FR logo
 
  HomeHelpSearchLoginRegister  
 
Lancer un "dhclient wlan0" lors du boot (Read 1800 times)
Cortexm
YaBB Newbies
*
Offline


Everybody 's free

Posts: 31
Paris
Gender: male
Lancer un "dhclient wlan0" lors du boot
29. Jan 2011 at 18:57
 
Bonsoir,

j'avance dans la mise en place de freebsd sur mon vieux pc  portable VAIO.
Donc, dessus j'ai une carte PCMCIA Linksys wifi WRT54GS.
J'ai suivi différent tuto, et j'ai fini par réussir à faire marcher le wifi.

tuto1
tuto2
tuto3

Tout fonctionne, sauf une chose.
Après le boot de freebsd, je rentre mon login et pass.
Et je suis obligé de faire un dhclient wlan0 pour avoir une ip.

En effet:
Quote:
SONY# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:14:bf:c5:fc:16
        media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
        status: associated
        ssid TheCoolBaby channel 6 (2437 MHz 11g) bssid 00:1c:10:13:b8:f3
        regdomain ETSI country FR authmode OPEN privacy OFF txpower 24.5
        bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 protmode CTS
        roaming MANUAL

On voit qu'il n'y a pas d'ip affecté à wlan0
Je fais donc un dhclient wlan0:
Quote:
SONY# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.16 -- renewal in 43200 seconds.

Quote:
SONY# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:14:bf:c5:fc:16
        inet 192.168.1.16 netmask 0xffffff00 broadcast 192.168.1.255
        media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
        status: associated
        ssid TheCoolBaby channel 6 (2437 MHz 11g) bssid 00:1c:10:13:b8:f3
        regdomain ETSI country FR authmode OPEN privacy OFF txpower 24.5
        bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 protmode CTS
        roaming MANUAL


Comment puis-je automatiser ça.
Voici mon /etc/rc.conf:
Quote:
hostname="SONY.FREEBSD.WORKGROUP"
ifconfig_rl0="DHCP"
keymap="fr.iso.acc"
moused_enable="YES"
hald_enable="YES"
dbus_enable="YES"
clear_tmp_enable="YES"
powerd_enable="YES"
#Configuration pour la carte WIFI Linksys
wlans_ndis0="wlan0"
ifconfig_wlan0="country FR WPA DHCP"


Extrait du tuto 3:
Quote:
Attention, depuis FreeBSD 8.0 il n'est plus possible d'utiliser directement une interface wifi qui supporte le multi-bss:
Il faut cloner la carte principale en une carte secondaire «virtuelle», et appliquer les configurations sur cette carte secondaire.
[root@d630]~#ifconfig wlan create wlandev ndis0

En fait wlan0 est un copie de ndis0 qui pour le coup ndis0 est la carte wifi
Quote:
SONY# ifconfig ndis0
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:14:bf:c5:fc:16
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated

Je ne sais pas mais peut être est ce important...

An idea ?  Cool

Merci de votre aide précieuse.
Back to top
« Last Edit: 29. Jan 2011 at 19:28 by Cortexm »  

- Freenas: 0.7.2 Sabanda - Raid1 sur 2x WD320Go - 1x WD1To -
- FreeBSD 8.1: Dell Latitude D800
Cortexm  
IP Logged
 
Marck
God Member
*****
Offline


I Love New YaBB

Posts: 1113
Re: Lancer un "dhclient wlan0" lors du boot
Reply #1 - 30. Jan 2011 at 11:55
 
Salut

Honnêtement, aucune réelle idée et la flemme d'éplucher les tutos... Je te donne juste ce que j'ai trouvé et dont tu ne parles pas.

man dhclient

Quote:
On startup, dhclient reads /etc/dhclient.conf for configuration instructions. It then gets a list of all the network interfaces that are configured in the current system. It then attempts to configure each interface with DHCP.


man dhclient.conf

Quote:
In many cases, it is sufficient to just create an empty dhclient.conf file - the defaults are usually fine.


Alors - peut-être - n'as-tu pas de fichier /etc/dhclient.conf ; suffirait-il alors d'en créer un vide (touch /etc/dhclient.conf) ou de l'éditer et de mettre "ce qu'il faut dedans" ?

Réponse à deux centimes Sad
Back to top
 
WWW WWW  
IP Logged