使用华为光猫ONT使能工具后,本地主机如何通过Telnet登录光猫进行配置。
打开CMD窗口,运行:
CMD>start /mim telnet 光猫IP地址 23 #注意有空格**
Welcome Visiting Huawei Home Gateway
Copyright by Huawei Technologies Co., Ltd.
Login:root
Password:admin #默认输入密码屏幕不回显
Password is default value, please modify it!
success!
WAP>su #提权限
success!
SU_WAP>shell #BusyBox壳
BusyBox v1.18.4 (2015-03-31 23:19:06 CST) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
profile close core dump
WAP(Dopra Linux) #?
exit
getcustominfo.sh
restorehwmode.sh
WAP(Dopra Linux) # getcustominfo.sh
originalVersion = V300R015C10SPC135C0001290182
customInfo = COMMON
success!
WAP>?
amp add policy-stats pon
amp add policy-stats port
amp add stats gemport
amp clear policy-stats pon
amp clear policy-stats port
amp clear stats gemport
amp debug lswtable all
amp del policy-stats pon
amp del policy-stats port
amp del stats gemport
amp display efc
amp display l2act
amp display l2mac
amp display sfc
amp display userflow
amp show
ampcmd show car all
ampcmd show car index
ampcmd show emac stat
ampcmd show flow all
ampcmd show flow index
ampcmd show log
ampcmd show queue all
ampcmd show queue index
ampcmd trace all
ampcmd trace cli
ampcmd trace dpoe
ampcmd trace drv
ampcmd trace emac
ampcmd trace emap
ampcmd trace eth
ampcmd trace gmac
ampcmd trace gmap
ampcmd trace onu
ampcmd trace optic
ampcmd trace qos
bbsp add policy-stats btv
bbsp clear policy-stats btv all
bbsp clear policy-stats wan
bbsp del policy-stats btv
bbspcmd
Broadband debug
Broadband display
Broadband stat
chipdebug
clear amp pq-stats
clear file
clear lastword
clear pon statistics
clear poncnt dnstatistic
clear poncnt gemport upstatistic
clear poncnt upstatistic
clear port statistics
collect debug info
component delete all
debug dsp down msg
debug dsp msg
debug dsp up msg
debug ifm
debug qoscfg
debug rtp stack
debug sample mediastar
display access mode
display amp policy-stats pon
display amp policy-stats port
display amp pq-stats
display amp stats gemport
display apmChipStatus
display batteryStatus
display bbsp stats btv
display bbsp stats wan
display bmsxml crc
display boardItem
display cwmp debug
display debug info dhcp6c
display debug info dhcp6s
display debug info pppoev6
display debug info ra
display deviceInfo
display dhcp_em result
display dsp channel para
display dsp channel running status
display dsp channel status
display dsp chip stat
display dsp codec status
display dsp interrupt stat
display epon ont info
display ethoam ma info
display ethoam md info
display ethoam mep info
display ethoam mep perf
display file
display filter rf
display flashlock status
display flow
display inner version
display jb grid status
display jb para
display lanmac
display lastword
display log info
display macaddress
display machineItem
display memory info
display msg-queue
display oaml2shell ethvlan
display onu info
display optic
display optmode
display patch information
display pon statistics
display poncnt dnstatistic
display poncnt gemport upstatistic
display poncnt upstatistic
display portstatistics
display pppoe_em result
display productmac
display progress load
display rf config
display rtp stack channel stat
display rtp stack chip stat
display rtp stack para
display rtp stack version
display sn
display startup info
display swm bootstate
display swm state
display sysinfo
display syslog
display timeout
display timer
display usb devList
display version
display wanmac
display wifi multicast
display wifi pa type
display wifichip
display wlanmac
display zsp version
get battery alarm status
get ip conntrack
get iptables filter
get iptables mangle
get iptables nat
get iptables raw
get mac agingtime
get ont oamfrequency
get opm switch
get optic debug info
get optic par info
get optic txmode
get poncnt upgemport
get port config
get port isolate
get port vlan
get rogue status
get testself
get vlan auth
get wlan advance
get wlan associated
get wlan basic
get wlan enable
get wlan stats
get wlan txpower
get wlan wps
ifconfig
igmp clear statistics
igmp get debug switch
igmp get flow info
igmp get global cfg
igmp get iptv
igmp get multilmac
igmp get port multicast config
igmp get statistics
igmp set debug switch
ip -6 neigh
ip -6 route
ip -6 rule
ip neigh
ip route
ip rule
load pack
logout
make ssh hostkey
mgcp mg-config
mgcp mgc 1
mgcp mgc 2
mid get
mid off
mid set
napt cli
netstat -na
oamcmd clear log
oamcmd debug
oamcmd error log
oamcmd pdt show log
oamcmd show flow
oamcmd show log
omcicmd alarm show
omcicmd clear log
omcicmd debug
omcicmd error log
omcicmd mib show
omcicmd pdt show log
omcicmd pm show
omcicmd show flow
omcicmd show log
omcicmd show qos
omcicmd show tcont table
ping
qoscfg get
quit
reset
restore manufactory
route get default
save data
save log
set cwmp debug
set ethportmirror
set opticdata
set port isolate
set ringchk
set timeout
set userpasswd
set voicedebug
set voicedsploop
set voicelinetest
set voiceportloop
set voicesignalingprint
setconsole
stats clear
stats display
su
traceroute
voice remote diagnose server set
voice remote diagnose set
vspa clear rtp statistics
vspa debug
vspa display conference info
vspa display dsp running info
vspa display dsp state
vspa display mg if state
vspa display mg info
vspa display mgcp config
vspa display online user info
vspa display port status
vspa display rtp statistics
vspa display service log
vspa display signal scene info
vspa display signal scene list
vspa display user call state
vspa display user status
vspa mgc switch
vspa reset
vspa shutdown mg
wap list
wap ps
wap top
WAP>get port config portid 1
Port Config Info :
Enable : 1
Mtu : 2000
PortVid : 4095
PortPri : 0
NegoMode(0-No, 1-Auto) : 1
Speed(0-10M, 1-100M, 2-1000M) : 1
Duplex(0-Half, 1-Full) : 1
Link(0-Down, 1-Up) : 1
PauseEnable : 0
PauseLine : 250
LoopMode(0-No, 1-MAC Inner, 2-MAC Outer, 3-PHY Inner, 4-PHY Outer) : 0
MirrorEnable : 0
DstPort : 1
MirrorType(0-Output, 1-Input, 2-Both) : 0
WAP>traceroute ?
Usage:
traceroute [-m MAXTTL | -p PORT | -q PROBES | -s SRC_IP | -t TOS | -w WAIT_SEC | -i IFACE | -z PAUSE_MSEC | para ] host [ packetlen ]
Trace the route to HOST
Options:
-m Max time-to-live (max number of hops)
-p Base UDP port number used in probes (default 33434)
-q Number of probes per TTL (default 3)
-s IP address to use as the source address
-t Type-of-service in collector packets (default 0)
-w Time in seconds to wait for a response (default 3)
-i Interface
-z pause time
para Other suffix parameter(-F | -I | -l | -d | -n | -r | -v | -4,-6)
WAP>wap list ?
USAGE:
wap list [format {0|1}] [path {value}] – show directorys and files information.
SU_WAP>wap list path mnt
nfs
jffs2
success!
WAP>wap list path mnt/jffs2
fsok
hwdhcpdlog.bin
hw_equip_hardinfo
hw_hardinfo_feature
scflie_1
customize.txt
mount_ok
main_version
customize
recovername
FTCRC
hw_boardinfo.bak
CfgwithoutlineD
oldcrc
ontstatusfile
panicinfo
hw_bootcfg.xml
hwontdebuglogctrl.bin
ftvoipcfgstate
hw_ctree_bak.xml
dhcpc
resetkey
hard_version
ppplasterr257
hw_ctree.xml
reboot_info
Updateflag_bak
hw_hardinfo_feature.bak
optic_init_par.bin
optic_par_debug
ceaseadv.conf
emergencystatus
hw_boardinfo
customizepara.txt
hwontdebuglogdata.bin
hwontlog.bin
xmlcfgerrorcode
roguestatus
hw_default_ctree.xml
success!
SU_WAP>clear lastword
Clear the lastword done.
success!
WAP>grep telecomadmin mnt/jffs2/hw_ctree.xml
WAP(Dopra Linux) # restorehwmode.sh #恢复路由器定制默认出厂设置。此命令将删除用户配置信息,包括WAN、WIFI配置信息。
success!
WAP(Dopra Linux) # exit
success!
SU_WAP>reset #重新启动路由器。
SU_WAP>restore manufactory #恢复路由器工厂模式。恢复后失去定制机功能,请慎用此命令。
WAP>quit