banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Lỗi khi chạy "/sbin/dhclient wlan0"?  XML
  [Question]   Lỗi khi chạy "/sbin/dhclient wlan0"? 20/09/2007 08:29:16 (+0700) | #1 | 85808
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Sau khi config và chạy thì tớ gặp lỗi:


Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
wmaster0: unknown hardware address type 801
/sbin/dhclient-script: configuration for wlan0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: wlan0: No such file or directory
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:19:d2:6d:f5:b0
Sending on LPF/wlan0/00:19:d2:6d:f5:b0
Sending on Socket/fallback
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
Trying recorded lease 192.168.1.118
/sbin/dhclient-script: configuration for wlan0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: wlan0: No such file or directory

PING 192.168.1.1 (192.168.1.1) from 192.168.1.118 wlan0: 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2022ms
, pipe 3
No working leases in persistent database - sleeping.
/sbin/dhclient-script: configuration for wlan0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: wlan0: No such file or directory
 

Dòng 78 của network-functions:

source_config ()
{
DEVNAME=`basename $CONFIG | sed 's/^ifcfg-//g'`
if echo ${CONFIG##*/} | grep -q '[^g]-' ; then
PARENTCONFIG=`echo $CONFIG | sed 's/-[^-]*$//g'`
PARENTDEVNAME=${PARENTCONFIG##*/ifcfg-}
[ -f $PARENTCONFIG ] || {
echo $"Missing config file $PARENTCONFIG." >&2
exit 1
}
. $PARENTCONFIG
[ -r "keys-$PARENTDEVNAME" ] && . keys-$PARENTDEVNAME
fi
. $CONFIG // Đây là dòng 78
[ -r "keys-$DEVNAME" ] && . keys-$DEVNAME
case "$TYPE" in
Ethernet)
DEVICETYPE="eth"
;;
CIPE)
DEVICETYPE="cipcb"
;;
IPSEC)
DEVICETYPE="ipsec"
;;
Modem)
DEVICETYPE="ppp"
;;
xDSL)
DEVICETYPE="ppp"
;;
ISDN)
DEVICETYPE="ippp"
;;
Wireless)
DEVICETYPE="eth"
;;
"Token Ring")
DEVICETYPE="eth"
;;
CTC)
DEVICETYPE="ctc"
;;
IUCV)
DEVICETYPE="iucv"
;;
GRE | IPIP)
DEVICETYPE="tunnel"
;;
esac
[ -z "$DEVICETYPE" ] && DEVICETYPE=`echo ${DEVICE} | sed "s/[0-9]*$//"`
[ -z "$REALDEVICE" -a -n "$PARENTDEVICE" ] && REALDEVICE=$PARENTDEVICE
[ -z "$REALDEVICE" ] && REALDEVICE=${DEVICE%%:*}
if [ "${DEVICE}" != "${REALDEVICE}" ]; then
ISALIAS=yes
else
ISALIAS=no
fi
if [ -n "$HWADDR" ]; then
HWADDR=`echo $HWADDR | awk '{ print toupper($0) }'`
fi
if [ -n "$MACADDR" ]; then
MACADDR=`echo $MACADDR | awk '{ print toupper($0) }'`
fi
}
 

Config wlan0 trong /sbin/dhclient-script như thế nào?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: Lỗi khi chạy "/sbin/dhclient wlan0"? 23/09/2007 09:24:34 (+0700) | #2 | 86410
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
tui chưa thử dhcp nhưng tui nghĩ wlan0 thì cũng là interface giống như eth0, eth1,.... -----> config cũng tương tự như mấy cái đó thôi.
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|