|
楼主 |
发表于 2011-4-11 23:10:37
|
显示全部楼层
回复 victor2002 的帖子
如果让CPU介入的话,就很简单了。假设ONU接在WAN那个口上,它对应的就是 eth0.
eth1对应的是接交换机的那块网卡,它接的就是交换机的 port 5。交换机的 port 1 就是背后写着 iTV 的那个 LAN 2. 剩下 port 0, 2, 3 就是 LAN 1, 3, 4,作用和原来的一样。
然后执行下面的命令:
echo '1u* 5t' > /proc/switch/eth1/vlan/1/ports
echo '0u 2u 3u 5t' > /proc/switch/eth1/vlan/0/ports
vconfig add eth0 51
vconfig add eth0 85
vconfig add eth1 0
vconfig add eth1 1
ifconfig eth0 up
ifconfig eth0.51 up
ifconfig eth0.85 up
ifconfig eth1.0 up
ifconfig eth1.1 up
brctl addbr iptv
brctl addif iptv eth0.51
brctl addif iptv eth0.85
brctl addif iptv eth1.1
ifconfig iptv up
这样 IPTV 就可以了。然后 PPPoE 的 WAN 要设成 eth0, LAN 要设成 eth1.0
当然这是手动设置的方法,
也可以修改 /etc/config/network, 让系统启动的时候自动设好。 |
|