TG787 脚本
system reset factory=yes proceed=yes
env set var=SESSIONTIMEOUT value=0
ppp relay flush
ppp flush
eth flush
atm flush
atm phonebook flush
atm phonebook add name=pvc_Internet addr=0.35
atm ifadd intf=atm_Internet
atm ifconfig intf=atm_Internet dest=pvc_Internet ulp=mac
atm ifattach intf=atm_Internet
eth bridge config filter=none vlan=enabled
eth bridge ifadd intf=br_Internet
eth bridge ifconfig intf=br_Internet dest=atm_Internet
eth bridge ifattach intf=br_Internet
eth bridge ifconfig intf=ethport1 dynvlan=enabled
eth bridge ifconfig intf=ethport2 dynvlan=enabled
eth bridge ifconfig intf=ethport3 dynvlan=enabled
eth bridge ifconfig intf=ethport4 dynvlan=enabled
eth vlan add name=video vid=2 addrule=enabled
eth bridge vlan ifadd name=video intf=br_Internet
eth bridge vlan ifdelete name=default intf=br_Internet
eth bridge vlan ifadd name=video intf=OBC untagged=disabled
eth ifadd intf=ethoa_Internet
eth ifconfig intf=ethoa_Internet dest=bridge vlan=video
eth ifattach intf=ethoa_Internet
ppp relay ifadd intf=ethoa_Internet
ppp ifadd intf=Internet
ppp ifconfig intf=Internet dest=RELAY user=200000381562 password=s5w7f7c8 dnsmetric=10
ppp rtadd intf=Internet dst=0.0.0.0/0 src=0.0.0.0/0 metric=1
nat ifconfig intf=Internet translation=enabled
ppp ifattach intf=Internet
eth bridge dynvlan add hwaddr $1 vlan video