Eu tenho a configuração de rede:
config interface 'lan'
option ifname 'eth2.1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option macaddr '00:17:a5:00:07:5d'
config interface 'wan'
option ifname 'eth2.2'
config switch
option name 'mt762x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'mt762x'
option vlan '1'
option ports '0 1 2 3 5 6t'
config switch_vlan
option device 'mt762x'
option vlan '2'
option ports '4 6t'
ifconfig:
br-lan Link encap:Ethernet HWaddr 00:17:A5:00:07:5D
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:504 (504.0 B)
eth2 Link encap:Ethernet HWaddr 00:17:A5:70:07:44
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:632 errors:0 dropped:440 overruns:0 frame:0
TX packets:343 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:97202 (94.9 KiB) TX bytes:11616 (11.3 KiB)
Interrupt:3
eth2.1 Link encap:Ethernet HWaddr 00:17:A5:70:07:44
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:504 (504.0 B)
eth2.2 Link encap:Ethernet HWaddr 00:17:A5:70:07:44
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Eu pinguei 192.168.2.2, que é meu host.
eth2.1 tx é 12, mas rx é 0.
Tenho certeza de que o hardware está ok.
quando eu conecto à porta 0, o host pode conectar o roteador。
Tags openwrt