我使用桥接模式的调制解调器和 WDR3600 作为 openwrt 路由器。我有一条从调制解调器 LAN 到 WDR WAN 的电缆和一条从 WDR 到 PC 的电缆。我通过电缆连接。从 192.168.1.1 开始,当我选择启用无线时,它会突出显示Generic MAC80211 802.11bgn (radio0)
但我没有连接(信号为 0%,比特率为零)。(不过我不确定如何处理 radio1 设备)
/etc/config/无线
config wifi-device 'radio0'
option type 'mac80211'
option channel '6'
option macaddr '...'
option hwmode '11ng'
option htmode 'HT20'
list ht_capab 'LDPC'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STBC'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
config wifi-iface
option device 'radio0'
option network 'wan2'
option mode 'ap'
option ssid 'myOpenWrt'
option encryption 'psk2'
option key 'mykey'
config wifi-device 'radio1'
option type 'mac80211'
option channel '36'
option macaddr '...'
option hwmode '11na'
option htmode 'HT20'
list ht_capab 'LDPC'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STBC'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option disabled '1'
config wifi-iface
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
(我也不确定要选择什么模式,“ap”还是“sta”)?
/etc/config/网络
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option _orig_ifname 'eth0.1 radio0.network1 radio1.network1'
option _orig_bridge 'true'
option ifname 'eth0.1 tap0'
config interface 'wan'
option _orig_ifname 'eth0.2'
option _orig_bridge 'false'
option proto 'pppoe'
option username '...'
option password '...'
option ifname 'eth0.1'
config interface 'wan2'
option _orig_ifname 'eth0.2'
option _orig_bridge 'false'
option proto 'pppoe'
option username '...'
option password '...'
option ifname 'eth0.2'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0t 2 3 4 5'
config switch_vlan
option device 'eth0'
option vlan '2'
option ports '0t 1'
答案1
好的!我必须从无线 (rasdio0) 设置检查“lan”网络,它正常工作!