|
楼主 |
发表于 2023-3-20 19:27
|
显示全部楼层
#lan3 拨号 lan4 接iptv的脚本,加入/jffs/scripts/services-start
ifconfig eth3 allmulti up
#####################################################################
vlanctl --mcast --if-create eth3 0 #
vlanctl --if eth3 --rx --tags 0 --set-rxif eth3.v0 --rule-append #
ifconfig eth3.v0 up #
#
brctl addbr br2 #
brctl addif br2 eth3.v0 #
ifconfig br2 up #
#
nvram set wan_ifnames="eth0 br2" #
nvram set wan1_ifname=br2 #
#####################################################################
#####################################################################
brctl delif br0 eth4 #
#
vlanctl --mcast --if-create eth4 0 #
vlanctl --if eth4 --rx --tags 0 --set-rxif eth4.v0 --rule-append #
ifconfig eth4.v0 up #
#
brctl addif br0 eth4.v0 #
#####################################################################
vlanctl --mcast --if-create eth3 1
#all_trans vlanctl --if eth3 --rx --tags 1 --set-rxif eth3.v1 --rule-append
#81_trans_pop vlanctl --if eth3 --rx --tags 1 --filter-vid 85 0 --pop-tag --set-rxif eth3.v1 --rule-append
#51_trans_pop vlanctl --if eth3 --rx --tags 1 --filter-vid 51 0 --pop-tag --set-rxif eth3.v1 --rule-append
vlanctl --if eth3 --rx --tags 1 --filter-vid 85 0 --set-rxif eth3.v1 --rule-append
vlanctl --if eth3 --rx --tags 1 --filter-vid 51 0 --pop-tag --set-rxif eth3.v1 --rule-append
vlanctl --if eth3 --tx --tags 0 --filter-txif eth3.v1 --push-tag --set-vid 85 0 --rule-append
ifconfig eth3.v1 up
vlanctl --mcast --if-create eth4 1
vlanctl --if eth4 --rx --tags 1 --set-rxif eth4.v1 --rule-append
#81_trans_pop vlanctl --if eth4 --rx --tags 1 --filter-vid 85 0 --pop-tag --set-rxif eth4.v1 --rule-append
#vlanctl --if eth4 --rx --tags 1 --filter-vid 85 0 --set-rxif eth4.v1 --rule-append
#vlanctl --if eth4 --tx --tags 0 --filter-txif eth4.v1 --push-tag --set-vid 85 0 --rule-append
ifconfig eth4.v1 up
brctl addbr iptv
brctl addif iptv eth3.v1
brctl addif iptv eth4.v1
ifconfig iptv up
bcmmcastctl mode -i iptv -p 1 -m 0
|
|