|
发表于 2005-7-9 16:45:44
|
显示全部楼层
fc没有用过,用的是slackware10.1,在/etc/rc.d/rc.inet1.conf中设定为静态IP:
# Config information for eth1:
IPADDR[1]="192.168.1.101"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Default gateway IP address:
GATEWAY="192.168.1.1"
将IP地址改为你的,GATEWAY也设置为你的
在以下文件中设置无线网络/etc/rc.d/rc.wireless.conf:
VERBOSE=1
case "$HWADDR" in
XX:XX:XX:*)#注意这是我的无线网卡的前三位MAC
INFO="Intel wireless 2200BG"
# ESSID (extended network name) : My Network, any
ESSID="Your_essid"
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="Your_channel"
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M
RATE=""
# Encryption key : 4567-89AB-CD, s:password
KEY="Your_key"
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;
esac
其中Your_essid Your_channel Your_key分别指定为你的网络名,频道,密码,注意设定无线网卡的前三位MAC,就可绑定上述设定。
还要确定与无线网卡相应的modules和fireware已在开机时装载,我是用lsmod发现:ipw2200 150664 0
firmware_class 7296 1 ipw2200
ieee80211 38436 1 ipw2200
ieee80211_crypt 5320 3 ieee80211_crypt_wep,ipw2200,ieee80211
用iwlist eth1 scan:
eth1 Scan completed :
Cell 01 - Address: Your_AP_MAC#不用设定
ESSID:"Your_essid"
Protocol:IEEE 802.11bg
Mode:Master
Channel:Your_channel
Encryption keyn
Bit Rate:54Mb/s
Extra: Rates (Mb/s): 1 2 5.5 6 9 11 12 18 24 36 48 54
Quality:59/100 Signal level:-65 dBm Noise level:-256 dBm
Extra: Last beacon: 6ms ago
(有关modules和fireware的设定我也不太清楚,只是安装后就可用了)
开机就可上无线网 |
|