Centos7-驅動小米WIFI作AP

參考文章:git

http://blog.csdn.net/sumang_87/article/details/38168877github

http://blog.csdn.net/hktkfly6/article/details/72887165vim

1. 下載驅動bash

git clone https://github.com/eywalink/mt7601u

2. 編譯源碼:網絡

sudo ./miwifi_build.sh

3. 安裝DHCPdom

yum install dhcp -y

4. 配置DHCP:編輯 sudo vim /etc/dhcp/dhcpd.confui

subnet 192.168.208.0 netmask 255.255.255.0 {

range 192.168.208.10 192.168.208.20;

option routers 192.168.208.1;

option domain-name-servers 114.114.114.114;

}

5. 把下面的保存成StartupWIFI.sh, 開機啓動便可…..net

個人小米WIFI是ra0, 以太網是eno1, 對號入座修改爲本身的, 內網IP要和上面的dhcpd.conf一致  router

ifconfig ra0 up
ifconfig ra0 192.168.208.1
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
iptables -t filter -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE
dhcpd ra0

  

若是一切順利,你會搜到一個
網絡名 MiWiFi_SuMang
密碼    52xiaomiserver

相關文章
相關標籤/搜索