新浪博客

配置ONU成普通交换机

2023-05-02 09:16阅读:
准备232的那种公母口转接线,笔记本是USB接口的。
WIN10要安装USB转串口驱动程序,否则插USB---9针数据线后,超级终端建立连接时,没有“串口”选项,只有TCP/IP。
超级终端登录时,用户名root
密码mduadmin
20230502操作实例:
MA5626(config)#erase flash data
This command will clear the active board data that has been loaded or saved

Please remember to backup the system configuration data
Are you sure to continue? (y/n)[n]:y
Command executes successfully, and will take effect after active board
rebooted

MA5626(config)#save
{ |configuration|data }:

Command:
r> save

MA5626(config)#
It will take several minutes to save configuration file, please wait...

MA5626(config)#
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated

MA5626(config)#
Active board data has been erased, forbid data saving now
Please reboot the board to recover the blank database

MA5626(config)#

MA5626(config)#reboot
{ system }:system

Command:
reboot system
Please check whether data has saved, the unsaved data will lose if reboot
system, are you sure to reboot system? (y/n)[n]:y

MA5626(config)#

System Starting......
启动中.....
Starting system configuration data init...successfully!
Press any key to get started
>>User name:root
>>User password:mduadmin
Huawei Integrated Access Software (MA562X).
Copyright(C) Huawei Technologies Co., Ltd. 1998-2009. All rights reserved.
MA5626>enable
MA5626#config
MA5626(config)#undo isolate port
{ frameid/slotid/portid }:0/1/1

Command:
undo isolate port 0/1/1
MA5626(config)#undo isolate port 0/1/2
MA5626(config)#undo isolate port 0/1/3
MA5626(config)#undo isolate port 0/1/4
MA5626(config)#undo isolate port 0/1/5
MA5626(config)#undo isolate port 0/1/6
MA5626(config)#undo isolate port 0/1/7
MA5626(config)#undo isolate port 0/1/8
MA5626(config)#undo isolate port 0/1/9
MA5626(config)#undo isolate port 0/1/10
MA5626(config)#undo isolate port 0/1/11
MA5626(config)#undo isolate port 0/1/12
MA5626(config)#undo isolate port 0/1/13
MA5626(config)#undo isolate port 0/1/14
MA5626(config)#undo isolate port 0/1/15
MA5626(config)#undo isolate port 0/1/16
MA5626(config)#save
{ |configuration|data }:

Command:
save
MA5626(config)#
It will take several minutes to save configuration file, please wait...
MA5626(config)#
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
MA5626(config)#
The data is being saved, please wait a moment...
MA5626(config)#
MA5626(config)#
1[2022-01-13 04:08:29]:The percentage of saved data on 0 slot's main control
board is: 21%

MA5626(config)#
1[2022-01-13 04:08:32]:The percentage of saved data on 0 slot's main control
board is: 66%

MA5626(config)#
1[2022-01-13 04:08:35]:The percentage of saved data on 0 slot's main control
board is: 72%

MA5626(config)#
1[2022-01-13 04:08:38]:The percentage of saved data on 0 slot's main control
board is: 78%
MA5626(config)#
1[2022-01-13 04:08:41]:The percentage of saved data on 0 slot's main control
board is: 96%
MA5626(config)#
1[2022-01-13 04:08:44]:The percentage of saved data on 0 slot's main control
board is: 98%
MA5626(config)#
MA5626(config)#
1[2022-01-13 04:08:44]:The data of 0 slot's main control board is saved
completely

MA5626(config)#vlan service-profile profile-id 1
{ |profile-name }:
Command:
vlan service-profile profile-id 1

MA5626(config-vlan-srvprof-1)#?
---------------------------------------------
Command of (config-vlan-srvprof-1)# Mode:
---------------------------------------------
bpdu BPDU
commit Commit VLAN service profile
dhcp DHCP command group
display Display information
pitp PITP
quit Exit from current mode and enter prior mode
return Enter the privileged mode
rip RIP
switch Switch language mode
vtp-cdp VTP-CDP

MA5626(config-vlan-srvprof-1)#commit
MA5626(config-vlan-srvprof-1)#quit
MA5626(config)#vlan bind service-profile 1 profile-id 1
MA5626(config)#multi-service-port vlan 1 port 0/1 1-16 user-vlan untagged rx-ctt
r 6 tx-cttr 6
It will take several minutes, and console may timeout, please use command idle
-timeout to set time limit
Are you sure to create service virtual port(s)? (y/n)[n]:y
The number of total board in this operation: 1
The number of total service virtual port in this operation: 16
Creating start...
Creating end:
The number of total service virtual port which need be created: 16
The number of total service virtual port which have been created: 16
MA5626(config)#save
{ |configuration|data }:
Command:
save
MA5626(config)#
It will take several minutes to save configuration file, please wait...
MA5626(config)#
1[2022-01-13 04:11:52]:The percentage of saved data on 0 slot's main control
board is: 96%
MA5626(config)#
1[2022-01-13 04:11:55]:The percentage of saved data on 0 slot's main control
board is: 98%
MA5626(config)#
1[2022-01-13 04:11:55]:The data of 0 slot's main control board is saved
completely


MA5626(config)#










A5626-16设置实例:
时间:2018年9月20日,
一、输入下列命令代码:
MA5626>enable
MA5626>erse date
MA5626#reboot
重启MA5626后。。。。。。
MA5626>enable
MA5626#config
It will take several minutes, and console may timeout, please use command
idle-timeout to set time limit
Are you sure to create service virtual port(s)? (y/n)[n]:y
The number of total board in this operation: 1
The number of total service virtual port in this operation: 24
Creating start...
Creating end:
The number of total service virtual port which need be created: 24
The number of total service virtual port which have been created: 24
需要设置虚拟端口:24
已经设置虚拟虚拟端口:24(出现24,表示24口交换机设置成功)
MA5626#reboot
重启MA5626后。。。。。。
MA5626>enable

MA5626#ping 192.168.1.144
PING 192.168.1.144: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.144: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 192.168.1.144: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 192.168.1.144: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 192.168.1.144: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 192.168.1.144: bytes=56 Sequence=5 ttl=255 time=10 ms

--- 192.168.1.144 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/10 ms

MA5626(config)#ping 192.168.1.1
PING 192.168.1.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=64 time=10 ms
Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=64 time=1 ms
Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=64 time=1 ms
Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=64 time=1 ms
Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=64 time=1 ms
WIN10下以TELNET方式登录MA5626,打开超级终端,新建连接,连接时使用“TCP/IP(winsock)”,主机
地址:192.168.1.144(已经通过COM3连接方式登录,并用系列命令:vlan 1; interface vlanif 1;ip address 192.168.1.144 24(255.255.255.0)添加网络管理Ip,

更新时间:2022年1月16日。
附图:
练习:
>>User name:root

>>User password:mduadmin

HC-JCJ-FengYunWangBa-ZX-HW-MA5626>enable
HC-JCJ-FengYunWangBa-ZX-HW-MA5626#

vlan 10
interface vlanif 10
ip address 1.1.1.1 24
qu
service-port vlan 10 eth 0/1/1multi-service user-vlan 10 rx 6 tx 6

2.关闭端口隔离
undo isolate port 0/1/1
undo isolate port 0/1/2
undo isolate port 0/1/3
undo isolate port 0/1/4
(备注:意思是以上4个端口可以互通)
实战笔记:
MA5626-16设置实例:
时间:2108年9月20日,
一、输入下列命令代码:
MA5626>enable
MA5626#config
MA5626(config)#vlan service-profile profile-id 1
user-bridging enable
commit
quit
vlan bind service-profile 1 profile-id1
multi-service-port vlan 1 port 0/1 1-15 user-vlan untagged rx-cttr 6 tx-cttr 6
在敲一遍:multi-service-port vlan 1port 0/1 1-15 user-vlan untagged rx-cttr 6 tx-cttr 6
save
二、再建立VLANIF 10
二、设置VLANIF 10的IP
三、显示INTERFACE VLANIF 10
Command:
display interface vlanif 10
vlanif10 current state : DOWN
Line protocol current state : DOWN
Description : HUAWEI, SmartAX Series, vlanif10 Interface
The Maximum Transmit Unit is 1500 bytes
Internet Address is 192.168.1.100/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0025-9ef6-8f58
四、添加服务到端口,代码如下:
MA5626(config)#service-port vlan 10 eth 0/1/1 multi-service user-vlan 10 rx-cttr
6 tx-cttr 6
MA5626(config)#save
{ |configuration|data }:data
Command:
save data
The data is being saved, please wait a moment...
MA5626(config)#
MA5626(config)#
1 [2017-08-03 14:18:44+08:00]:The percentage of saved data on 0 slot's main
control board is: 21%
MA5626(config)#
1 [2017-08-03 14:18:47+08:00]:The percentage of saved data on 0 slot's main
control board is: 27%
MA5626(config)#
1 [2017-08-03 14:18:50+08:00]:The percentage of saved data on 0 slot's main
control board is: 33%
MA5626(config)#
1 [2017-08-03 14:18:53+08:00]:The percentage of saved data on 0 slot's main
control board is: 66%
MA5626(config)#
1 [2017-08-03 14:18:56+08:00]:The percentage of saved data on 0 slot's main
control board is: 96%
MA5626(config)#
MA5626(config)#
1 [2017-08-03 14:18:58+08:00]:The data of 0 slot's main control board is saved
completely
MA5626(config)#

我的更多文章

下载客户端阅读体验更佳

APP专享