找回密码
 注册

QQ登录

只需一步,快速开始

楼主: spicahan

关于用软件VLAN处理IPTV的方法

[复制链接]
发表于 2012-2-3 17:00:02 | 显示全部楼层
同問这个如果用DD-WRT操作方法也是一样吗?新建VLAN进行划分

点评

没有用过DD-WRT. 理论上应该是一样的。  详情 回复 发表于 2012-2-5 11:10
 楼主| 发表于 2012-2-5 11:10:29 | 显示全部楼层
tywg001 发表于 2012-2-3 17:00
同問这个如果用DD-WRT操作方法也是一样吗?新建VLAN进行划分

没有用过DD-WRT. 理论上应该是一样的。
发表于 2012-2-8 11:50:01 | 显示全部楼层
下面是我用上面70楼的配置文件的H618C,现在是上网正常,但IPTV的无线看不了,我如果想看无线的话,network文件要怎么改呀?我现在用的是魔屏
Linux version 2.6.32.10 (openwrtcn@openwrtcn) (gcc version 4.3.3 (GCC) ) #20 Mon Jul 19 23:39:25 CST 2010
Detected Broadcom 0x6358 CPU revision a1
CPU frequency is 300 MHz
32MB of RAM installed
registering 40 GPIOs
board_bcm963xx: CFE version: 1.0.37-10.3
bootconsole [early0] enabled
CPU revision is: 0002a010 (Broadcom BCM6358)
board_bcm963xx: board name: 96358VW2
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 8028d4a0, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 32kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Memory: 29592k/32768k available (2097k kernel code, 3176k reserved, 452k data, 136k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Calibrating delay loop... 299.00 BogoMIPS (lpj=598016)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Success to register irq 35 for button reset.
Create /proc/button_reset success.
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
pci 0000:00:01.0: reg 10 32bit mmio: [0x000000-0x001fff]
Switching to clocksource MIPS
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:01.0 to 64
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x0D, vendor 0x4243)
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x09, vendor 0x4243)
ssb: Core 2 found: PCI (cc 0x804, rev 0x0C, vendor 0x4243)
ssb: Core 3 found: PCMCIA (cc 0x80D, rev 0x07, vendor 0x4243)
ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.295:1): initialized
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0100 (irq = 10) is a bcm63xx_uart
console [ttyS0] enabled, bootconsole disabled
bcm963xx_flash: Flash phys=0x1e000000, size=0x02000000, virt= 0xbe000000
Number of erase regions: 1
Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)
Primary Algorithm Table at 0040
Alternative Vendor Command Set: 0000 (None)
No Alternate Algorithm Table
Vcc Minimum:  2.7 V
Vcc Maximum:  3.6 V
No Vpp line
Typical byte/word write timeout: 64 碌s
Maximum byte/word write timeout: 512 碌s
Typical full buffer write timeout: 64 碌s
Maximum full buffer write timeout: 2048 碌s
Typical block erase timeout: 512 ms
Maximum block erase timeout: 4096 ms
Typical chip erase timeout: 65536 ms
Maximum chip erase timeout: 262144 ms
Device size: 0x1000000 bytes (16 MiB)
Flash Device Interface description: 0x0002
  - supports x8 and x16 via BYTE# with asynchronous interface
Max. bytes in buffer write: 0x40
Number of Erase Block Regions: 1
  Erase Region #0: BlockSize 0x20000 bytes, 128 blocks
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
bcm963xx: Found an alias at 0x1000000 for the chip at 0x0
Amd/Fujitsu Extended Query Table at 0x0040
bootloc=5, NumEraseRegions=1.
bcm963xx: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
0: offset=0x0,size=0x0,blocks=131072
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6 and board type 96358VW2
bcm963xx_flash: Partition 0 is CFE offset 0 and length 20000
bcm963xx_flash: Partition 1 is kernel offset 20100 and length dff00
bcm963xx_flash: Partition 2 is rootfs offset 100000 and length ee0000
bcm963xx_flash: Partition 3 is nvram offset fe0000 and length 20000
bcm963xx_flash: Partition 4 is linux offset 20000 and length fc0000
bcm963xx_flash: Spare partition is 5e0000 offset and length a00000
Creating 5 MTD partitions on "bcm963xx":
0x000000000000-0x000000020000 : "CFE"
0x000000020100-0x000000100000 : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
0x000000100000-0x000000fe0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=5E0000, len=A00000
0x0000005e0000-0x000000fe0000 : "rootfs_data"
0x000000fe0000-0x000001000000 : "nvram"
0x000000020000-0x000000fe0000 : "linux"
bcm63xx_enet MII bus: probed
bcm63xx_wdt started, timer margin: 30 sec
Registered led device: adsl
Registered led device: ppp-fail
Registered led device: power
Registered led device: stop
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 136k freed
Please be patient, while OpenWrt loads ...
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (2)]
PPP generic driver version 2.4.2
NET: Registered protocol family 24
eth0: link UP - 100/full - flow control off
eth1: link forced UP - 100/full - flow control off/off
device eth0.51 entered promiscuous mode
device eth0 entered promiscuous mode
br-iptv: port 1(eth0.51) entering forwarding state
device eth0.85 entered promiscuous mode
br-iptv: port 2(eth0.85) entering forwarding state
Compat-wireless backport release: compat-wireless-2010-06-04-4-gf135eab
Backport based on wireless-2.6.git v2.6.35-rc2-47270-ge46da0f
cfg80211: Calling CRDA to update world regulatory domain
device eth1.2 entered promiscuous mode
device eth1 entered promiscuous mode
br-lan: port 1(eth1.2) entering forwarding state
SCSI subsystem initialized
roboswitch: Probing device eth0: Failed to enable switch
roboswitch: Probing device eth1: found a 5325! It's a 5350.
eth0: link DOWN
br-iptv: port 2(eth0.85) entering disabled state
br-iptv: port 1(eth0.51) entering disabled state
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
eth0: link UP - 100/full - flow control off
br-iptv: port 2(eth0.85) entering forwarding state
br-iptv: port 1(eth0.51) entering forwarding state
usbcore: registered new device driver usb
device eth1.3 entered promiscuous mode
br-iptv: port 3(eth1.3) entering forwarding state
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
usbcore: registered new interface driver rtl8187
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
phy0: Selected rate control algorithm 'minstrel'
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
NTFS driver 2.1.29 [Flags: R/O MODULE].
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
usbcore: registered new interface driver p54usb
ip_tables: (C) 2000-2006 Netfilter Core Team
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
bcm63xx_ehci bcm63xx_ehci.0: BCM63XX integrated EHCI controller
bcm63xx_ehci bcm63xx_ehci.0: new USB bus registered, assigned bus number 1
bcm63xx_ehci bcm63xx_ehci.0: irq 18, io mem 0xfffe1300
bcm63xx_ehci bcm63xx_ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
nf_conntrack version 0.5.0 (464 buckets, 1856 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
bcm63xx_ohci bcm63xx_ohci.0: BCM63XX integrated OHCI controller
bcm63xx_ohci bcm63xx_ohci.0: new USB bus registered, assigned bus number 2
bcm63xx_ohci bcm63xx_ohci.0: irq 13, io mem 0xfffe1400
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver zd1211rw
b43-phy0: Loading firmware version 478.104 (2008-07-01 00:50:23)
b43-phy0: Loading firmware version 478.104 (2008-07-01 00:50:23)
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
eth0: link DOWN
br-iptv: port 2(eth0.85) entering disabled state
br-iptv: port 1(eth0.51) entering disabled state
eth0: link UP - 100/full - flow control off
br-iptv: port 2(eth0.85) entering forwarding state
br-iptv: port 1(eth0.51) entering forwarding state
eth0: link DOWN
br-iptv: port 2(eth0.85) entering disabled state
br-iptv: port 1(eth0.51) entering disabled state
eth0: link UP - 100/full - flow control off
br-iptv: port 2(eth0.85) entering forwarding state
br-iptv: port 1(eth0.51) entering forwarding state
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth1.2) entering disabled state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth1.2 left promiscuous mode
br-lan: port 1(eth1.2) entering disabled state
br-iptv: port 3(eth1.3) entering disabled state
br-iptv: port 2(eth0.85) entering disabled state
br-iptv: port 1(eth0.51) entering disabled state
device eth0 left promiscuous mode
device eth1 left promiscuous mode
device eth1.3 left promiscuous mode
br-iptv: port 3(eth1.3) entering disabled state
device eth0.85 left promiscuous mode
br-iptv: port 2(eth0.85) entering disabled state
device eth0.51 left promiscuous mode
br-iptv: port 1(eth0.51) entering disabled state
device eth1.2 entered promiscuous mode
device eth1 entered promiscuous mode
br-lan: port 1(eth1.2) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device eth0.51 entered promiscuous mode
device eth0 entered promiscuous mode
br-iptv: port 1(eth0.51) entering forwarding state
device eth0.85 entered promiscuous mode
br-iptv: port 2(eth0.85) entering forwarding state
device eth1.3 entered promiscuous mode
br-iptv: port 3(eth1.3) entering forwarding state
br-iptv: port 1(eth0.51) entering disabled state
device eth0 left promiscuous mode
br-iptv: port 2(eth0.85) entering disabled state
bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (2)]
device eth0 entered promiscuous mode
br-iptv: port 1(eth0.51) entering forwarding state
br-iptv: port 2(eth0.85) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
eth0: link UP - 100/full - flow control off
b43-phy0: Loading firmware version 478.104 (2008-07-01 00:50:23)
b43-phy0: Loading firmware version 478.104 (2008-07-01 00:50:23)
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state

点评

你现在lan正常么??我那个直到被刷成砖都没正常,重启就死lan口  详情 回复 发表于 2012-2-8 14:44
发表于 2012-2-8 14:44:35 | 显示全部楼层
tywg001 发表于 2012-2-8 11:50
下面是我用上面70楼的配置文件的H618C,现在是上网正常,但IPTV的无线看不了,我如果想看无线的话,network文件 ...

你现在lan正常么??我那个直到被刷成砖都没正常,重启就死lan口
发表于 2012-2-8 14:58:21 | 显示全部楼层
呃,昨天晚上是正常的,现在还没重启过,上面楼主不是给了个命令么,不好使?

点评

无线的话我想是在接口-物理设置里面把wlan和iptv桥接到一起,不过第一、不一定能正常工作,第二,这样H618C的无线就不能用来上网了,得再接个无线AP  详情 回复 发表于 2012-2-9 09:49
发表于 2012-2-9 09:49:36 | 显示全部楼层
tywg001 发表于 2012-2-8 14:58
呃,昨天晚上是正常的,现在还没重启过,上面楼主不是给了个命令么,不好使?

无线的话我想是在接口-物理设置里面把wlan和iptv桥接到一起,不过第一、不一定能正常工作,第二,这样H618C的无线就不能用来上网了,得再接个无线AP

点评

已经测试过了  发表于 2012-2-9 10:06
发表于 2012-2-9 09:57:13 | 显示全部楼层
嗯,我昨天是在你70的配置文件里把wlan0放到vlan81 vlan85 eth1.3 一起,但是还是看不了直播,可能是没生效吧,我是在web页面配置的,可能是要到配置文件里改?但是我cat 命令看network文件时候显示是wlan0已经在桥接里了,不知道为什么不起作用,另电信自带的固件在618c上是可以用无线看iptv的,因为我用魔屏看过,表明应该是可以的,所以不知道应该怎么配置,另外openwrt用的是spicahan大侠给的固件,也用了那个网络驱动,现在有个问题,我内网的机器端口转发配置不起作用,在网上查了大量资料,各种配置,都无法从外网连接内网,不过PT端口可以用,路由器本身的WEB端口管理我在外网也可以用

点评

你这是想把WIFI弄进来搞VLAN?我只是想过要这么干,还从来没弄过。。。建议你先从简单的试起,一步一步来,有线的搞定了再试无线的。 至于魔屏走H618C电信固件无线看IPTV, 那是两码事。魔屏看IPTV是可以走普通网络的  详情 回复 发表于 2012-2-9 10:31
 楼主| 发表于 2012-2-9 10:31:39 | 显示全部楼层
tywg001 发表于 2012-2-9 09:57
嗯,我昨天是在你70的配置文件里把wlan0放到vlan81 vlan85 eth1.3 一起,但是还是看不了直播,可能是没生效吧, ...

你这是想把WIFI弄进来搞VLAN?我只是想过要这么干,还从来没弄过。。。建议你先从简单的试起,一步一步来,有线的搞定了再试无线的。
至于魔屏走H618C电信固件无线看IPTV, 那是两码事。魔屏看IPTV是可以走普通网络的,你不配VLAN就能看了。
端口转发我没碰到过有什么问题,不管是从WEB里配的,还是直接改 /etc/config/firewall 的。如果真想搞明白的话,建议看看 Linux 的 iptables 文档。

点评

我的魔屏直播看不了,只有自带的固件能看直播,能告诉我你刷的那个版本的OPENWRT吗?  详情 回复 发表于 2012-2-9 10:44
发表于 2012-2-9 10:44:12 | 显示全部楼层
spicahan 发表于 2012-2-9 10:31
你这是想把WIFI弄进来搞VLAN?我只是想过要这么干,还从来没弄过。。。建议你先从简单的试起,一步一步来 ...

我的魔屏直播看不了,只有自带的固件能看直播,能告诉我你刷的那个版本的OPENWRT吗?

点评

这就比较复杂了。。因为我很早就不用魔屏了。。我只能告诉你一些我比较肯定的事实: 1. 我用魔屏的时候(很早以前了),点播是可以看的。直播也是可以看的。但确实有些东西看不了,我不记得是什么了。。 2. 上海的  详情 回复 发表于 2012-2-9 11:26
 楼主| 发表于 2012-2-9 11:26:53 | 显示全部楼层
tywg001 发表于 2012-2-9 10:44
我的魔屏直播看不了,只有自带的固件能看直播,能告诉我你刷的那个版本的OPENWRT吗?

这就比较复杂了。。因为我很早就不用魔屏了。。我只能告诉你一些我比较肯定的事实:
1. 我用魔屏的时候(很早以前了),点播是可以看的。直播也是可以看的。但确实有些东西看不了,我不记得是什么了。。
2. 上海的IPTV接入的时候有三种认证方式:一是在VLAN 85里靠DHCP option 60来认证;二是在猫之后直接用PPPoE认证;三是不认证,在数据网里直接看。第三种方式现在应该已经看不了直播了。
3. 我从来没有在 H618C 上用软 VLAN 的方法看过 IPTV... 我只用过它的硬件 VLAN 再配合另一个有缺陷的 VLAN 交换机弄过,现在这个方案也不用了。

所以基本上,我只能祝愿你们能早日折腾出结果,造福大家。。。

点评

1.直播里分两种,一种是网络电视,一种是跟电视一样的直播频道,我现在网络电视可以看,直播频道只有用电信自带固件可以打开 2.我一直都是用的DHCP option来看IPTV的,机顶盒和魔屏都是用的DHCP 3.呃,因为发现有线高清太  详情 回复 发表于 2012-2-9 11:47
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-4-29 15:41 , Processed in 0.028618 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表