openwrteth02down
Ⅰ TP-LINK WR703N刷OPENWRT 有线接口eth0一直为离线状态
你直接由原带固件升级的话,要选对固件类型,选带factory字样的
比如:openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
Ⅱ 极贰openwrt 编译 7620a+7621e,能够开启 2.4G,5G 该怎么打开
操作步骤如下:
1.下载openwrt最新代码
2. 下载openwrt官方的7621e驱动
3. 参考 打上hc5761的补丁,使用其hc5761的config,并开启mtk-wifi-gpl
4. 编译完成通过ttl,sysupgrade -F -n
openwrt-ramips-mt7620a-hiwifi-hc5761-squashfs-sysupgrade.bin刷机
5. 完成重启,2.4G能够开启
dmesg的输出:
[ 21.160000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 21.190000] xt_time: kernel timezone is -0000
[ 21.190000] cfg80211: Calling CRDA to update world regulatory domain
[ 21.190000] cfg80211: World regulatory domain updated:
[ 21.190000] cfg80211: DFS Master region: unset
[ 21.190000] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp), (dfs_cac_time)
[ 21.190000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000
mBm), (0 s)
[ 21.190000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000
mBm), (0 s)
[ 21.190000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0
mBm), (N/A)
[ 21.190000] PPP generic driver version 2.4.2
[ 21.190000] PPP MPPE Compression mole registered
[ 21.190000] NET: Registered protocol family 24
[ 21.530000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 21.560000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev
0500 detected
[ 21.570000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620
detected
[ 21.580000] ieee80211 phy0: Selected rate control algorithm
'minstrel_ht'
[ 29.030000] device eth0.1 entered promiscuous mode
[ 29.050000] device eth0 entered promiscuous mode
[ 29.380000] br-lan: port 1(eth0.1) entered forwarding state
[ 29.380000] br-lan: port 1(eth0.1) entered forwarding state
[ 31.380000] br-lan: port 1(eth0.1) entered forwarding state
[ 32.800000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 32.800000] device wlan0 entered promiscuous mode
[ 32.800000] br-lan: port 2(wlan0) entered forwarding state
[ 32.820000] br-lan: port 2(wlan0) entered forwarding state
[ 32.820000] br-lan: port 2(wlan0) entered disabled state
[ 33.310000] br-lan: port 2(wlan0) entered forwarding state
[ 33.310000] br-lan: port 2(wlan0) entered forwarding state
[ 33.320000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 35.310000] br-lan: port 2(wlan0) entered forwarding state
[ 202.070000] nf_conntrack: automatic helper assignment is deprecated and
it will be removed soon. Use the iptables CT target to attach helpers
instead.
[ 341.460000] br-lan: port 2(wlan0) entered disabled state
[ 341.460000] br-lan: port 1(eth0.1) entered disabled state
[ 341.470000] device eth0.1 left promiscuous mode
[ 341.480000] device eth0 left promiscuous mode
[ 341.480000] br-lan: port 1(eth0.1) entered disabled state
[ 341.510000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[ 341.540000] device wlan0 left promiscuous mode
[ 341.540000] br-lan: port 2(wlan0) entered disabled state
[ 341.580000] device eth0.1 entered promiscuous mode
[ 341.580000] device eth0 entered promiscuous mode
[ 341.590000] device wlan0 entered promiscuous mode
[ 341.600000] br-lan: port 2(wlan0) entered forwarding state
[ 341.600000] br-lan: port 2(wlan0) entered forwarding state
[ 341.600000] br-lan: port 1(eth0.1) entered forwarding state
[ 341.620000] br-lan: port 1(eth0.1) entered forwarding state
[ 343.600000] br-lan: port 2(wlan0) entered forwarding state
[ 343.620000] br-lan: port 1(eth0.1) entered forwarding state
[ 450.680000] ralink_soc_eth 10100000.ethernet eth0: port 0 link down
[ 450.700000] br-lan: port 1(eth0.1) entered disabled state
[ 455.570000] ralink_soc_eth 10100000.ethernet eth0: port 0 link up
(100Mbps/Full plex)
[ 455.590000] br-lan: port 1(eth0.1) entered forwarding state
[ 455.590000] br-lan: port 1(eth0.1) entered forwarding state
[ 456.340000] ralink_soc_eth 10100000.ethernet eth0: port 0 link down
[ 456.670000] br-lan: port 1(eth0.1) entered disabled state
[ 467.680000] ralink_soc_eth 10100000.ethernet eth0: port 1 link up
(100Mbps/Full plex)
[ 467.700000] br-lan: port 1(eth0.1) entered forwarding state
[ 467.700000] br-lan: port 1(eth0.1) entered forwarding state
[ 469.770000] br-lan: port 1(eth0.1) entered forwarding state
Ⅲ openWRT如何修改MAC地址
1、修改 eth0 mac地址:
编辑 /etc/rc.local,ifconfig eth0 down;ifconfig eth0 hw ether d8:64:c7:5e:f1:c6;ifconfig eth0 up。
2、修改wireless mac地址。
这就最纠结了直接修改 /etc/config/wireless中的mac是没用的,并且修改后无线网络会无法启动。
在研究了/sbin/wifi脚本后,只能通过迂回战术来进行解决。
编辑 /sbin/wifi;修改如下一段,增加内容。
set_wifi_up() {
echo wifi_up;ls /tmp/run/*.conf
kill `cat /var/run/wifi-phy0.pid`
sed -i s/^bssid=.*/bssid=d8:64:c7:5f:f1:c6/ /var/run/hostapd-phy0.conf
hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
local cfg="$1"
echo wifi_up 2;ls /tmp/run/*.conf
local ifname="$2"
echo wifi_up 3;ls /tmp/run/*.conf
uci_set_state wireless "$cfg" up 1
uci_set_state wireless "$cfg" ifname "$ifname"
}
3、修改完成 。
sync;reboot 重启,就能看到所有修改都生效了。