最近2018中文字幕在日韩欧美国产成人片_国产日韩精品一区二区在线_在线观看成年美女黄网色视频_国产精品一区三区五区_国产精彩刺激乱对白_看黄色黄大色黄片免费_人人超碰自拍cao_国产高清av在线_亚洲精品电影av_日韩美女尤物视频网站

RELATEED CONSULTING
相關(guān)咨詢(xún)
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
SAIL-AM335x中wifi作為熱點(diǎn)后,其他設(shè)備通過(guò)該wifi熱點(diǎn),可以訪問(wèn)外部網(wǎng)絡(luò)的方法

今天與大家分享的是sail-am335x中wifi作為熱點(diǎn)后,其他設(shè)備通過(guò)該wifi熱點(diǎn),訪問(wèn)外部網(wǎng)絡(luò)的方法,具體的方法步驟如下:

創(chuàng)新互聯(lián)專(zhuān)注于班瑪網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供班瑪營(yíng)銷(xiāo)型網(wǎng)站建設(shè),班瑪網(wǎng)站制作、班瑪網(wǎng)頁(yè)設(shè)計(jì)、班瑪網(wǎng)站官網(wǎng)定制、微信小程序服務(wù),打造班瑪網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供班瑪網(wǎng)站排名全網(wǎng)營(yíng)銷(xiāo)落地服務(wù)。

1.335x前邊已經(jīng)移植好了hostapd;直接使用就可以熱點(diǎn)名為rtwap,密碼為87654321

2.dhcpd 配置文件修改

創(chuàng)建空文件/var/db/dhcpd.leases

mkdir -p /var/db

touch /var/db/dhcpd.leases

3.ifconfig eth0 up

udhcpc -i eth0

ifconfig wlan0 up

ifconfig wlan0 10.5.5.1 netmask 255.255.255.0

echo 1 >/proc/sys/net/ipv4/ip_forward /打開(kāi)IP轉(zhuǎn)發(fā)/

/sbin/iptables -t nat -A POSTROUTING -oeth0 -j MASQUERADE

設(shè)置網(wǎng)卡的混雜模式

ifconfig wlan0 promisc

[ 3725.324000] device wlan0 enteredpromiscuous mode

dhcpd -cf /etc/dhcpd.conf wlan0 &

hostapd /etc/hostapd.conf -B

4.前邊命令中需要用到iptables,文件系統(tǒng)中需要移植iptables (iptables編譯)

./configure --host=arm-arago-linux-gnueabi--prefix=/root/335x/localcode/iptables/install --disable-nftables--with-ksource=/root/335x/localcode/kernel-3.2.0 --enable-static --disable-shared

make

make install

編譯完成后需要將iptables移植到開(kāi)發(fā)板上;

內(nèi)核中也需要配置iptables的支持

[*] Networking support --->

  Networking options  --->

          [*] Network packet filteringframework (Netfilter)  --->

                 Core NetfilterConfiguration  --->(全部選上)

                 IP: NetfilterConfiguration  --->(全部選上)

c??~YM?L:? 335x中wifi作為熱點(diǎn)后,其他設(shè)備通過(guò)該wifi熱點(diǎn),可以訪問(wèn)外部網(wǎng)絡(luò)的方法

1.335x前邊已經(jīng)移植好了hostapd;直接使用就可以熱點(diǎn)名為rtwap,密碼為87654321

2.dhcpd 配置文件修改

創(chuàng)建空文件/var/db/dhcpd.leases

mkdir -p /var/db

touch /var/db/dhcpd.leases

3.

ifconfig eth0 up

udhcpc -i eth0

ifconfig wlan0 up

ifconfig wlan0 10.5.5.1 netmask 255.255.255.0

echo 1 >/proc/sys/net/ipv4/ip_forward /打開(kāi)IP轉(zhuǎn)發(fā)/

/sbin/iptables -t nat -A POSTROUTING -oeth0 -j MASQUERADE

設(shè)置網(wǎng)卡的混雜模式

ifconfig wlan0 promisc

[ 3725.324000] device wlan0 enteredpromiscuous mode

dhcpd -cf /etc/dhcpd.conf wlan0 &

hostapd /etc/hostapd.conf -B

4.前邊命令中需要用到iptables,文件系統(tǒng)中需要移植iptables (iptables編譯)

./configure --host=arm-arago-linux-gnueabi--prefix=/root/335x/localcode/iptables/install --disable-nftables--with-ksource=/root/335x/localcode/kernel-3.2.0 --enable-static --disable-shared

make

make install

編譯完成后需要將iptables移植到開(kāi)發(fā)板上;

內(nèi)核中也需要配置iptables的支持

[*] Networking support --->

  Networking options  --->

          [*] Network packet filteringframework (Netfilter)  --->

                 Core NetfilterConfiguration  --->(全部選上)

                 IP: NetfilterConfiguration  --->(全部選上)

以上步驟是基于電魚(yú)電子的sail-am335開(kāi)發(fā)板為例來(lái)實(shí)現(xiàn)的。

這樣通過(guò)這幾個(gè)小步驟以后,其他設(shè)備通過(guò)該wifi熱點(diǎn),可以成功連接到外部網(wǎng)絡(luò)啦~


本文題目:SAIL-AM335x中wifi作為熱點(diǎn)后,其他設(shè)備通過(guò)該wifi熱點(diǎn),可以訪問(wèn)外部網(wǎng)絡(luò)的方法
標(biāo)題鏈接:http://fisionsoft.com.cn/article/gpicsc.html