小弟安裝一台ubuntu 7.10 server,上面有一片有線網卡(eth1)及一片無線網卡(eth0,具有soft ap 功能,使用bcm43xx模組),成功驅動無線網卡後,
#vim /etc/network/interfaces
auto eth0 eth1
iface eth1 inet static
address 140.127.247.*(抱歉,隱藏ip末碼)
netmask 255.255.255.*
network 140.127.247.0
broadcast 140.127.247.*
gateway 140.127.247.*
dns-nameservers 203.68.253.129
iface eth0 inet static
address 192.168.1.254
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
wireless-rate 11M
wireless-mode ad-hoc
wireless-essid GOOD
#/etc/init.d/networking restart
一切都很正常,無線網卡的綠燈也亮起,接著安裝dhcp3 server,編輯
#vim /etc/dhcp3/dhcpd.conf
配發192.168.1.0網段
#/etc/init.d/dhcp3-server start
最後,啟動nat功能
#echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -t nat -A POSTROUTING -o eth1 -s 192.168.1.0/24 -j MASQUERADE
感覺SOFT Ap應該已經完成,但是拿了一台筆電來測試,卻是搜尋不到網路,請問各位高手原因何在?