|
本帖最后由 angelazy 于 2020-3-1 10:42 编辑
2 网络设置
# vi /etc/network/interfaces
...
iface eth0 inet dhcp
...
iface wlan0 inet manual
...
# vi /etc/network/interfaces.d/bridge
auto br-lan
iface br-lan inet static
address 10.168.10.1
netmask 255.255.255.0
dns-nameservers 10.168.10.10
gateway 10.168.10.10
bridge_ports wlan0
# vi /etc/default/hostapd
...
DAEMON_CONF="/etc/hostapd.conf"
...
# vi /etc/hostapd.conf
...
interface=wlan0
...
bridge=br-lan
driver=nl80211
我刷的是armbian5.77,就想把N1放到另一房间利用一下它发射热点功能,采用pdf文档中上边代码设置当旁路由,设置完重启,可以看到热点名称,输入密码长时间显示获取网络ip,最后超时无法连接,大老,问题在哪里呢,在线等,现在就这个问题没法解决了,我的主路由ip:192.168.31.1 n1有线网口获得的地址是192.168.31.18 上边代码我一个也没有改动,是不是ip设置有问题??
我把我的/etc/network/interfaces文件内容放上来,大佬帮忙看看哪里有问题:
source /etc/network/interfaces.d/*
# Wired adapter #1
allow-hotplug eth0
no-auto-down eth0
iface eth0 inet dhcp
#address 192.168.0.100
#netmask 255.255.255.0
#gateway 192.168.0.1
#dns-nameservers 8.8.8.8 8.8.4.4
# hwaddress ether # if you want to set MAC manually
# pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
# Wireless adapter #1
# Armbian ships with network-manager installed by default. To save you time
# and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings
# manually. The below lines are only meant as an example how configuration could
# be done in an anachronistic way:
#
#allow-hotplug wlan0
iface wlan0 inet manual
#address 192.168.0.100
#netmask 255.255.255.0
#gateway 192.168.0.1
#dns-nameservers 8.8.8.8 8.8.4.4
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)
#wireless-mode Managed
#wireless-power off
# Local loopback
auto lo
iface lo inet loopback
|
|