|
发表于 2012-6-8 22:26:26
|
显示全部楼层
本帖最后由 see_3000 于 2012-6-8 22:28 编辑
spicahan,你好!
修改之后,网络可以了(无线和有线),iptv还是不行,机顶盒连接不进网络。
/etc/config/network配置如下:- 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 ifname eth0.1
- option type bridge
- option proto static
- option ipaddr 192.168.2.1
- option netmask 255.255.255.0
- config interface wan
- option ifname eth0.81
- option proto pppoe
- option username '123456789'
- option password '123456'
- config switch
- option name switch0
- option reset 1
- option enable_vlan 1
- option enable_vlan4k 1
- config switch_vlan vlan_lan
- option device switch0
- option vlan 1
- option ports "1 5t"
- config switch_vlan vlan_iptvm
- option device switch0
- option vlan 51
- option ports "0t 2 3"
-
- config switch_vlan vlan_iptvu
- option device switch0
- option vlan 85
- option ports "0t 2 3"
-
- config switch_vlan vlan_wan
- option device switch0
- option vlan 81
- option ports "0 5t"
- config switch_port
- option port 0
- option pvid 81
-
- config swith_port
- option port 1
- option pvid 1
-
- config switch_port
- option port 2
- option pvid 85
-
- config switch_port
- option port 3
- option pvid 85
复制代码 如下为 swconfig dev rtl8366s show 内容如下:- Global attributes:
- enable_learning: 1
- enable_vlan: 1
- enable_vlan4k: 1
- blinkrate: 0
- max_length: 1
- Port 0:
- mib: Port 0 MIB counters
- IfInOctets : 30286463
- EtherStatsOctets : 30286463
- EtherStatsUnderSizePkts : 0
- EtherFragments : 0
- EtherStatsPkts64Octets : 973
- EtherStatsPkts65to127Octets : 3742
- EtherStatsPkts128to255Octets : 798
- EtherStatsPkts256to511Octets : 323
- EtherStatsPkts512to1023Octets : 351
- EtherStatsPkts1024to1518Octets : 20339
- EtherOversizeStats : 0
- EtherStatsJabbers : 0
- IfInUcastPkts : 25768
- EtherStatsMulticastPkts : 0
- EtherStatsBroadcastPkts : 758
- EtherStatsDropEvents : 0
- Dot3StatsFCSErrors : 0
- Dot3StatsSymbolErrors : 0
- Dot3InPauseFrames : 0
- Dot3ControlInUnknownOpcodes : 0
- IfOutOctets : 1379141
- Dot3StatsSingleCollisionFrames : 0
- Dot3StatMultipleCollisionFrames : 0
- Dot3sDeferredTransmissions : 2632
- Dot3StatsLateCollisions : 0
- EtherStatsCollisions : 0
- Dot3StatsExcessiveCollisions : 0
- Dot3OutPauseFrames : 0
- Dot1dBasePortDelayExceededDiscards : 0
- Dot1dTpPortInDiscards : 10434
- IfOutUcastPkts : 11181
- IfOutMulticastPkts : 0
- IfOutBroadcastPkts : 32
- led: 2
- pvid: 81
- link: port:0 link:up speed:100baseT full-duplex
- Port 1:
- mib: Port 1 MIB counters
- IfInOctets : 1040645
- EtherStatsOctets : 1040645
- EtherStatsUnderSizePkts : 0
- EtherFragments : 0
- EtherStatsPkts64Octets : 3000
- EtherStatsPkts65to127Octets : 5469
- EtherStatsPkts128to255Octets : 75
- EtherStatsPkts256to511Octets : 260
- EtherStatsPkts512to1023Octets : 316
- EtherStatsPkts1024to1518Octets : 75
- EtherOversizeStats : 0
- EtherStatsJabbers : 0
- IfInUcastPkts : 9101
- EtherStatsMulticastPkts : 32
- EtherStatsBroadcastPkts : 62
- EtherStatsDropEvents : 0
- Dot3StatsFCSErrors : 0
- Dot3StatsSymbolErrors : 0
- Dot3InPauseFrames : 0
- Dot3ControlInUnknownOpcodes : 0
- IfOutOctets : 11856774
- Dot3StatsSingleCollisionFrames : 0
- Dot3StatMultipleCollisionFrames : 0
- Dot3sDeferredTransmissions : 458
- Dot3StatsLateCollisions : 0
- EtherStatsCollisions : 0
- Dot3StatsExcessiveCollisions : 0
- Dot3OutPauseFrames : 0
- Dot1dBasePortDelayExceededDiscards : 0
- Dot1dTpPortInDiscards : 0
- IfOutUcastPkts : 10804
- IfOutMulticastPkts : 51
- IfOutBroadcastPkts : 150
- led: 3
- pvid: 1
- link: port:1 link:up speed:1000baseT full-duplex txflow rxflow
- Port 2:
- mib: Port 2 MIB counters
- IfInOctets : 5884
- EtherStatsOctets : 5884
- EtherStatsUnderSizePkts : 0
- EtherFragments : 0
- EtherStatsPkts64Octets : 15
- EtherStatsPkts65to127Octets : 2
- EtherStatsPkts128to255Octets : 0
- EtherStatsPkts256to511Octets : 0
- EtherStatsPkts512to1023Octets : 8
- EtherStatsPkts1024to1518Octets : 0
- EtherOversizeStats : 0
- EtherStatsJabbers : 0
- IfInUcastPkts : 3
- EtherStatsMulticastPkts : 0
- EtherStatsBroadcastPkts : 22
- EtherStatsDropEvents : 0
- Dot3StatsFCSErrors : 0
- Dot3StatsSymbolErrors : 0
- Dot3InPauseFrames : 0
- Dot3ControlInUnknownOpcodes : 0
- IfOutOctets : 0
- Dot3StatsSingleCollisionFrames : 0
- Dot3StatMultipleCollisionFrames : 0
- Dot3sDeferredTransmissions : 0
- Dot3StatsLateCollisions : 0
- EtherStatsCollisions : 0
- Dot3StatsExcessiveCollisions : 0
- Dot3OutPauseFrames : 0
- Dot1dBasePortDelayExceededDiscards : 0
- Dot1dTpPortInDiscards : 0
- IfOutUcastPkts : 0
- IfOutMulticastPkts : 0
- IfOutBroadcastPkts : 0
- led: 4
- pvid: 85
- link: port:2 link:up speed:100baseT full-duplex
- Port 3:
- mib: Port 3 MIB counters
- IfInOctets : 2632
- EtherStatsOctets : 2632
- EtherStatsUnderSizePkts : 0
- EtherFragments : 0
- EtherStatsPkts64Octets : 4
- EtherStatsPkts65to127Octets : 0
- EtherStatsPkts128to255Octets : 0
- EtherStatsPkts256to511Octets : 0
- EtherStatsPkts512to1023Octets : 4
- EtherStatsPkts1024to1518Octets : 0
- EtherOversizeStats : 0
- EtherStatsJabbers : 0
- IfInUcastPkts : 0
- EtherStatsMulticastPkts : 0
- EtherStatsBroadcastPkts : 8
- EtherStatsDropEvents : 0
- Dot3StatsFCSErrors : 0
- Dot3StatsSymbolErrors : 0
- Dot3InPauseFrames : 0
- Dot3ControlInUnknownOpcodes : 0
- IfOutOctets : 0
- Dot3StatsSingleCollisionFrames : 0
- Dot3StatMultipleCollisionFrames : 0
- Dot3sDeferredTransmissions : 0
- Dot3StatsLateCollisions : 0
- EtherStatsCollisions : 0
- Dot3StatsExcessiveCollisions : 0
- Dot3OutPauseFrames : 0
- Dot1dBasePortDelayExceededDiscards : 0
- Dot1dTpPortInDiscards : 0
- IfOutUcastPkts : 0
- IfOutMulticastPkts : 0
- IfOutBroadcastPkts : 0
- led: 5
- pvid: 85
- link: port:3 link:down
- Port 4:
- mib: Port 4 MIB counters
- IfInOctets : 0
- EtherStatsOctets : 0
- EtherStatsUnderSizePkts : 0
- EtherFragments : 0
- EtherStatsPkts64Octets : 0
- EtherStatsPkts65to127Octets : 0
- EtherStatsPkts128to255Octets : 0
- EtherStatsPkts256to511Octets : 0
- EtherStatsPkts512to1023Octets : 0
- EtherStatsPkts1024to1518Octets : 0
- EtherOversizeStats : 0
- EtherStatsJabbers : 0
- IfInUcastPkts : 0
- EtherStatsMulticastPkts : 0
- EtherStatsBroadcastPkts : 0
- EtherStatsDropEvents : 0
- Dot3StatsFCSErrors : 0
- Dot3StatsSymbolErrors : 0
- Dot3InPauseFrames : 0
- Dot3ControlInUnknownOpcodes : 0
- IfOutOctets : 0
- Dot3StatsSingleCollisionFrames : 0
- Dot3StatMultipleCollisionFrames : 0
- Dot3sDeferredTransmissions : 0
- Dot3StatsLateCollisions : 0
- EtherStatsCollisions : 0
- Dot3StatsExcessiveCollisions : 0
- Dot3OutPauseFrames : 0
- Dot1dBasePortDelayExceededDiscards : 0
- Dot1dTpPortInDiscards : 0
- IfOutUcastPkts : 0
- IfOutMulticastPkts : 0
- IfOutBroadcastPkts : 0
- led: ???
- pvid: 0
- link: port:4 link:down
- Port 5:
- mib: Port 5 MIB counters
- IfInOctets : 13316993
- EtherStatsOctets : 13316993
- EtherStatsUnderSizePkts : 0
- EtherFragments : 0
- EtherStatsPkts64Octets : 1934
- EtherStatsPkts65to127Octets : 10648
- EtherStatsPkts128to255Octets : 617
- EtherStatsPkts256to511Octets : 564
- EtherStatsPkts512to1023Octets : 818
- EtherStatsPkts1024to1518Octets : 7614
- EtherOversizeStats : 0
- EtherStatsJabbers : 0
- IfInUcastPkts : 21982
- EtherStatsMulticastPkts : 53
- EtherStatsBroadcastPkts : 160
- EtherStatsDropEvents : 0
- Dot3StatsFCSErrors : 0
- Dot3StatsSymbolErrors : 0
- Dot3InPauseFrames : 0
- Dot3ControlInUnknownOpcodes : 0
- IfOutOctets : 17562346
- Dot3StatsSingleCollisionFrames : 0
- Dot3StatMultipleCollisionFrames : 0
- Dot3sDeferredTransmissions : 1670
- Dot3StatsLateCollisions : 0
- EtherStatsCollisions : 0
- Dot3StatsExcessiveCollisions : 0
- Dot3OutPauseFrames : 0
- Dot1dBasePortDelayExceededDiscards : 0
- Dot1dTpPortInDiscards : 10
- IfOutUcastPkts : 25005
- IfOutMulticastPkts : 32
- IfOutBroadcastPkts : 250
- led: ???
- pvid: 81
- link: port:5 link:up speed:1000baseT full-duplex txflow rxflow auto
- VLAN 1:
- info: VLAN 1: Ports: '15t', members=0022, untag=0002, fid=0
- fid: 0
- ports: 1 5t
- VLAN 51:
- info: VLAN 51: Ports: '0t23', members=000d, untag=000c, fid=0
- fid: 0
- ports: 0t 2 3
- VLAN 81:
- info: VLAN 81: Ports: '05t', members=0021, untag=0001, fid=0
- fid: 0
- ports: 0 5t
- VLAN 85:
- info: VLAN 85: Ports: '0t23', members=000d, untag=000c, fid=0
- fid: 0
- ports: 0t 2 3
复制代码 |
|