我的技术随记

  • 首页
  • 博客
  • 联系
  • 关于
Hello World!
安卓App鸿蒙改造、游戏辅助软件开发、微信公众号小程序开发、各类网站开发维护、网络改造维护、系统解决方案等......
  1. 首页
  2. 技术分享
  3. 正文

华为E8C光猫telnet查询命令

2022年2月16日 1470点热度 1人点赞 0条评论

1.查询光功率:WAP>display optic

LinkStaus   : ok 

Voltage     : 3285 (mV)

Bias        : 7 (mA)

Temperature : 41 (C)

RxPower     : -21.14 (dBm)

TxPower     :  2.33 (dBm)

RfRxPower   : -- (dBm)

VendorName  : HUAWEI         

VendorSN    : 1352A0018265B

2.查询ETH端口配置信息:WAP>send hlp cmd 0x7604001

Send  Hlp   :

/*-----------------Dump Port Tab Start------------------*/

Lsw Port   1 Tab Addr= 0x41ad8090

Lsw Port Vlan Mode = 0

Lsw Port L2L3 Ind= 0

Lsw Port Qinq Ind= 0

Lsw Port VlanAll Ind= 0

Lsw Port Lock Status= 1

Lsw Port Native Vlan= 1

Lsw Port Native Pri= 0

Lsw Port Pri Policy= 1

Lsw Port Vlan Num      : 1

3.查看语音接口状态:WAP>vspa display mg info

Port Number            :0

Port Status            :Onhook

--------------------------------------------------

PriProxy IP            :255.255.255.255

PriProxy Port          :65535

SecProxy IP            :255.255.255.255

SecProxy Port          :65535

Current Register Proxy :-

Home DomainName        :

Local Port             :5060

Signaling IP           :255.255.255.255

Media IP               :255.255.255.255

MgDomainName           :

4.查看设备版本:WAP>display version

hardware version          = 393.A

main software version     = V3R012C00S008

standby software version  = V3R012C00S008

uboot version             = 2010.03

5.查看SN: WAP>display sn

sn = 485754435041E027

6.查看ONT端口vlan信息: WAP>get port vlan portid 1 vlan all

Instance  VlanId

0         0

1         1

43        43

4080      4080

4081      4081

4095      4095

7.查看ONT gemport信息: WAP>display flow id all

Instance  Gemportid FlowType  BridgeID  Vlan      Pri       Status    PhyPort   UserFlowidTrans     Pir       Sir      

0         128       1         0         41        255       1         255       0         0         0         0        

1         128       1         0         43        255       1         255       1         0         0         0     

8.查看ONT所有网络设备的状态: WAP(Dopra Linux) # ifconfig

可以看到很多wan信息:

9.查看设备路由表: WAP(Dopra Linux) # route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.1.0     *               255.255.255.0   U     0      0        0 br0

10.查看设备上的ARP信息: WAP(Dopra Linux) # ip neigh(cat /proc/net/arp)

192.168.1.12 dev br0 lladdr 00:25:9e:76:ff:49 nud delay

IP address       HW type     Flags       HW address            Mask     Device

192.168.1.12     0x1         0x2         00:25:9e:76:ff:49        *        br0

11.查看设备已启动的链接: WAP(Dopra Linux) # netstat –na

Active Internet connections (w/o servers)

Proto Recv-Q Send-Q Local Address           Foreign Address         State      

tcp        0      0 localhost:56442         localhost:telnet        ESTABLISHED

tcp        0      0 localhost:telnet        localhost:56442         ESTABLISHED

tcp        0      0 192.168.1.1:telnet      192.168.1.12:64271      ESTABLISHED

Active UNIX domain sockets (w/o servers)

Proto RefCnt Flags       Type       State         I-Node Path

unix  2      [ ]         DGRAM                      1267

unix  3      [ ]         STREAM     CONNECTED        934

unix  3      [ ]         STREAM     CONNECTED        933

unix  2      [ ]         DGRAM                       902

unix  3      [ ]         STREAM     CONNECTED        807

unix  3      [ ]         STREAM     CONNECTED        806

12.设置设备ETH端口vlan:WAP>set  portvlan  portid  2  vlanid  43

13.查看设备ETH端口配置: WAP>get port config portid 1

Port Config Info : Enable=1 Mtu=2000 PortVid=4095 PortPri=0 NegoMode=1 Speed=1 Duplex=1 Link=1 PauseEn=0 PauseLine=200 LoopMode=0 MirrorEn=0 DstPort=1 MirrorType=0

14.查看设备ETH数据统计:WAP>get port statistics  portid  1

15.查看设备端口vlan配置:WAP>get port vlan portid 1 vlan all

Instance  VlanId

0         0

1         1

43        43

4080      4080

4081      4081

4095      4095

16.查看设备ETH端口学习到的mac地址: WAP>get l2 mac  portid 1 mac all

17.查看设备路由信息: WAP(Dopra Linux) # route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.1.0     *               255.255.255.0   U     0      0        0 br0

18.查看设备已存在的连接: WAP(Dopra Linux) # cat /proc/net/ip_conntrack

tcp      6 431999 ESTABLISHED src=192.168.1.12 dst=192.168.1.1 sport=64271 dport=23 packets=4408 bytes=179428 src=192.168.1.1 dst=192.168.1.12 sport=23 dport=64271 packets=2918 bytes=158825 [ASSURED] mark=0 use=2

tcp      6 430149 ESTABLISHED src=127.0.0.1 dst=127.0.0.1 sport=23 dport=56442 packets=15 bytes=4115 src=127.0.0.1 dst=127.0.0.1 sport=56442 dport=23 packets=15 bytes=600 [ASSURED] mark=0 use=2

19.查看设备语音DSP使用数: WAP>vspa display  online user info

Port   DSP1   DSP2

20.针对telnet很快老化的情况可以使用: arp -s 172.24.0.22 08:19:a6:f4:40:99 -i br0添加静态mac地址映射;

21.WAP> pppoe_em operate Start username iadtest@pppoe password iadtest vlanid 1025 port 1 retrytimes 3

l Username 为用户名;

l Password 为密码;

l Vlanid为用户流vlan;

l Port 为仿真端口号;

l Retrytimes为重试次数。

WAP> display pppoe_em result

WAP> pppoe_em operate Stop

22.(2)telnet到ONT上,查看日志

WAP>shell

WAP(Dopra Linux) # cat /mnt/jffs2/hwontopt.log

arp -s 192.168.100.24 4c:b1:6c:f5:a5:04 -i br0

vspa pots simulate set voiceservice 1 port 1 testtype Caller callednumber 77770391

标签: 暂无
最后更新:2022年2月16日

海欧

这个人很懒,什么都没留下

打赏 点赞
下一篇 >

文章评论

您需要 登录 之后才可以评论

COPYRIGHT © 2025 hiou.vip

Theme Kratos Made By Seaton Jiang

陕ICP备2022000293号-1