|
DOS模式下配置路由器
要进入telnet下,前提是猫开启了80端口,而且所需驱动及连接正常。不过在telnet下不同猫的芯片类型命令不一样,以我们用的多的viking为例: 部分Telnet命令:(主要针对是Vinking系列芯片) MAC地址列表清除: 运行CMD,输入arp -d回车 备份FW:  tftp -i 192.168.1.1 get TEimage.bin 升级FW: tftp -i 192.168.1.1 put TEimage.bin TELNET的方法设置: 登陆端口设置 modify nbsize httpport <decvalue> modify nbsize telnetport <decvalue> modify nbsize ftpport <decvalue 关闭SNMP modify snmp trap disable 如果这样关闭不彻底,用扫描器仍能发现SNMP漏洞,最好加上下面两句: $delete snmp comm community private $delete snmp comm community public telnet控制台修改MTU值: modify ppp intf ifname ppp-0 mtu 1480 ifconfig eth0 mtu 14xx  (Linux Shell) 设置VPI和VCI值(由ADSL运营商提供,假设:VPI为0,VCI为 33) add interface atmpvc set interface atmpvc0 vpi 0 set interface atmpvc0 vci 33 指定线路模式(假设为 2:G.dmt) set interface adsl standard 2 设置封装类型(5为PPPOE) set interface atmpvc0 encap 5 设置拨号时的用户名和密码(由ADSL运营商提供,假设:用户名为adsl,密码 为adsl) set interface atmpvc0 user adsl set interface atmpvc0 password adsl 开启NAT(网络地址转换) set interface atmpvc0 nat on 关闭桥方式 set interface atmpvc0 bridge off set bridge off 保存设置 save 重新启动 reboot 启动完毕以后当猫同步结束即可正常上网。 输入WAN IP地址及子网掩码(由ADSL运营商提供,假设 IP地址为202.106.69.75 子网掩码为255.255.255.0) set interface atmpvc0 ip 202.106.69.75 255.255.255.0 输入NAT的 IP地址及子网掩码(同上) set interface atmpvc0 natip 202.106.69.75 255.255.255.0 输入NAT的网关IP地址(由ADSL运营商提供,假设 IP地址为202.106.69.71 ) add route 0.0.0.0 0.0.0.0 202.106.69.71 atmpvc0 关闭桥方式 set interface atmpvc0 bridge off set bridge off 打开桥接命令行设置方法:(不用复位猫) delete ppp intf ifname ppp-0 create eoa intf ifname eoa-0 lowif aal5-0 create bridge port intf ifname eoa-0 modify bridge mode enable wan2wan enable commit 然后就马上可以用PC试拔号了 PC拔号成功后,可以把猫上的IP过滤、NAT等没必要的东西关了(不关也可以),然后接上无线路由器进行设置了 设置IP session modify nbsize maxipsess XXX 注:XXX为你要修改的值 调整ADSL里面的时间的方法 1、用telnet登陆ADSL: 2、键入如下命令: modify sntp cfg disable modify system timezone "CCT" create sntp servaddr dname time.nist.gov modify sntp cfg enable commit reboot 打开UPnP功能: 用telnet登陆设备后输入   modify upnp cfg nbstatus enable   commit   reboot   设备重启就可以了!      查看设备的upnp是否开了可以这样   用telnet登陆后输入   $get upnp cfg   得到   Next Boot Status             : enable   Advertisement Cache Age(sec) : 1830 USB接口的设置去掉 用telnet登陆,执行命令 $delete usb intf ifname usb-0 $commit 即可。  Current Status               : enable 保存设置 Save/ commit 重新启动 Reboot
|
|||||||||||||||
|
|
| 最新文章 |
| 图片主题 | ||||
| |
||||
| 热门文章 |
| 推荐文章 | ||||
| |
||||
| 相关文章 |
| 便民服务 | ||||||||||||||||||||||||||||||||
| |
||||||||||||||||||||||||||||||||