成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

SAIL-AM335x中wifi作為熱點(diǎn)后,其他設(shè)備通過該wifi熱點(diǎn),可以訪問外部網(wǎng)絡(luò)的方法

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

創(chuàng)新互聯(lián)專注于班瑪網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供班瑪營銷型網(wǎng)站建設(shè),班瑪網(wǎng)站制作、班瑪網(wǎng)頁設(shè)計(jì)、班瑪網(wǎng)站官網(wǎng)定制、微信小程序服務(wù),打造班瑪網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供班瑪網(wǎng)站排名全網(wǎng)營銷落地服務(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 /打開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移植到開發(fā)板上;

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

[*] Networking support --->

  Networking options  --->

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

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

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

c??~YM?L:? 335x中wifi作為熱點(diǎn)后,其他設(shè)備通過該wifi熱點(diǎ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 /打開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移植到開發(fā)板上;

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

[*] Networking support --->

  Networking options  --->

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

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

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

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

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

分享文章:SAIL-AM335x中wifi作為熱點(diǎn)后,其他設(shè)備通過該wifi熱點(diǎn),可以訪問外部網(wǎng)絡(luò)的方法
文章路徑:http://jinyejixie.com/article32/gpicsc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)、網(wǎng)站設(shè)計(jì)公司、網(wǎng)站收錄、ChatGPT電子商務(wù)、靜態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)
宁河县| 商洛市| 普兰县| 桐梓县| 孝昌县| 三台县| 三明市| 铁岭市| 靖州| 逊克县| 沙湾县| 石屏县| 浙江省| 忻州市| 太和县| 徐水县| 布拖县| 顺平县| 黑龙江省| 吉木乃县| 镇平县| 景泰县| 霍州市| 遂平县| 康马县| 广河县| 桃园市| 秀山| 崇礼县| 桐城市| 嘉荫县| 瓦房店市| 水城县| 龙陵县| 临桂县| 广昌县| 淄博市| 峡江县| 阳曲县| 延川县| 齐河县|