最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

华为5100交换机配置步骤一(精)

IT圈 admin 53浏览 0评论

2024年11月6日发(作者:涂香薇)

5105也是下面这个用户名和密码,要注意的就是5105只有三块板子,board 0,board 1,board

2; board 0是上行板,也就是坏了的那块板子,其它两块是ADSL板,你先show board 0看

一下上行以太口的状态是不是正常的,总之很简单,要是有什么问题就打我电话62002365)

用户名:root

密码:admin

(在5100中键入命令,可以先键入头几个字母,然后用空格键显示其余字母,这个和路由器

正好不同)

enable (进入配置模式)

MA5103#show (显示所有配置)

Command word

:b

oard

{(0-4)[/(0-15)]}:0/1 (显示第一快板卡的信息,这里是adsl0/1板)

Frame Slot Board Type Board State No.1 SubBoardtype No.2 SubBoardtype

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

0 1 ADLE Normal - -

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

Activate

Port State VPI(PVC) Template

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

0 Activating No VPI 1

1 Activating No VPI 1

2 Activating No VPI 1

3 Activating No VPI 1

4 Activating No VPI 1

5 Activating No VPI 1

6 Activating No VPI 1

7 Activating No VPI 1

8 Activating No VPI 1

9 Activating No VPI 1

10 Activating No VPI 1

11 Activating No VPI 1

12 Activating No VPI 1

13 Activating No VPI 1

14 Activating No VPI 1

15 Activating No VPI 1

16 Activating No VPI 1

17 Activating No VPI 1

18 Activating No VPI 1

19 Activating No VPI 1

20 Activating No VPI 1

21 Activating No VPI 1

22 Activating No VPI 1

23 Activating No VPI 1

24 Activating No VPI 1

25 Activating No VPI 1

26 Activating No VPI 1

27 Activating No VPI 1

28 Activating No VPI 1

29 Activating No VPI 1

30 Activating No VPI 1

31 Activating No VPI 1

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

MA5103#c onfigure terminal (进入配置模式)

MA5103(config)#atmlan (配置atm或者eth)

Command word :ip-address

(配置ip地址)

{ethernet,atm}:atm (这里配置atm的ip)

:10.100.0.87 (网管ip,是作带内管理用atm)

:255.255.255.0

Changing system IP may effect existent connection,Are you sure?(y/n) [n]:y

Set successfully.

A5103(config)#atmlan ip-access

(配置允许访问系统的ip地址范围 这里是用户的地址断,数据由局方提供,下面还有配置网

管地址断可以访问)

:10.4.84.0

:10.4.84.254

:255.255.255.0

Add acceptable IP address successfully.

MA5103(config)#atmlan (建立允许各个5100之间网管可以互访)

Command word :ip-access

:10.100.0.1

:10.100.0.254

:255.255.255.0

Add acceptable IP address successfully.

MA5103(config)#atmlan (允许网管地址访问该设备)

Command word :ip-access

:10.200.0.1

:10.200.0.254

:255.255.255.0

Add acceptable IP address successfully.

MA5103(config)#atmlan

Command word :ip-route

:0.0.0.0 (建立网管地址的默认路由)

:0.0.0.0

:10.100.0.1 (本机管理地址的网关)

Add successfully.

MA5103(config)#interface (进入一个板卡进行配置 这里进入lan板)

Command word :lan

{(0)/(0-6)or(9-15)}:0/6 (lan板在0/6上)

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

Mode [System Mode] (lan板的操作命令)

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

cls Clear screen

[no]exec-timeout Permit/Forbid to timeout and logout

help Description of the interactive help system

[no]help-mode Enable/Disable help mode operation

[no]monitor Open/Close the switch of debug information output

ping Send echo messages to test networks reachable

[no]scroll Screen scroll manually/automatically

search Search command content the word user input

show[11] Commands of show system information

[no]smart Enable/Disable interactive operation

terminal[1] Set terminal attribute

tracert Trace route to destination

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

Mode [Config LAN]

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

[no]bind[2] Commands of bind system information

clear[1] Commands of clear operation

Set default VLAN of LAN board port

end Exit to Privileged EXEC mode

exit Exit current command mode

interface[8] Commands of interface configuration mode

[no]loopback Set/Cancel LAND local loopback

max-mac-count Set the max learnable MAC addresses of PVC

[no]mirror Set/Cancel a port mapping to another port of LAND

operation-mode Switch LAN board operation mode

[no]pitp[2] Commands of pitp system information

port[2] Commands of port information

show[15] Commands of show system information

[no]shutdown Close/Open ethernet port of LAN board

traffic-suppress Set the traffic suppression

[no]trunk Add/Delete a trunk of LAN board

trunk-mode Set trunk mode of LAN board

vlan[3] Commands of vlan management

vport Set vport - opposite physical portID

MA5103(config-LAN-0/6)#operation-mode (选择lan操作模式)

{general,ipdslam,ipcascade}:ipdslam (选择ipdslam模式,该模式各端口不能进行配置)

Please delete all LAN access PVC(except LAN-NMS PVC)of current board before

(修改模式以后,系统会自动重启lan板)

switching operation mode.

Do you want to reserve LAN-NMS PVC of current board?(y/n) [y]:y

Some configuration data may be lost,are you sure to switch operation mode and to reset

current board?(y/n) [n]:y

Reset command was sent to service board successfully.

Switch operation mode successfully.

2004/09/15 14:29:23 minor MMX: Board manual reset(0/6)

M

MA5103(config)#

MA5103(config)#interface (进入lan板进行vlan配置)

Command word :lan

{(0)/(0-6)or(9-15)}:0/6

MA5103(config-LAN-0/6)#vlan

Command word :add (增加一个小区vlan,用于用户的访问,所有的用户

共用一个小区vlan)

{general,region}:region

{1-4095}:121 (该数据由局方提供)

{0-127}:0

{32-127}:35

Failure: Board is configurating.

(ipdslam模式下只支持regiong vlan 小区vlan,不支持general vlan ,虽然有这个提示

铁通的网管vlan为100 ,是一个general vlan,在建立网管的时候直接建立,后面有方法)

MA5103(config-LAN-0/6)#vlan

Command word :add

{general,region}:general

{1-4095}:100

{0x1-0xff}:0xff

Failure: Current operation mode is IPDSLAM mode.

(这里提示ipdslam模式下不支持general vlan)

MA5103(config-LAN-0/6)#exit

MA5103(config)#exit

MA5103#save (不要忘记再做了配置以后将配置存盘)

Are you sure to save system data?(y/n) [y]:y

This operation will take several minutes,

Frame 0 Slot 7 saving data in progress 2%.

Frame 0 Slot 7 saving data in progress 2%.

Frame 0 Slot 7 saving data in progress 2%.

Frame 0 Slot 7 saving data in progress 2%.

Frame 0 Slot 7 saving data in progress 20%.

Frame 0 Slot 7 saving data in progress 22%.

Frame 0 Slot 7 saving data in progress 24%.

Frame 0 Slot 7 saving data in progress 26%.

Frame 0 Slot 7 saving data in progress 28%.

Frame 0 Slot 7 saving data in progress 29%.

Frame 0 Slot 7 saving data in progress 31%.

Frame 0 Slot 7 saving data in progress 33%.

Frame 0 Slot 7 saving data in progress 35%.

Frame 0 Slot 7 saving data in progress 37%.

Frame 0 Slot 7 saving data in progress 39%.

Frame 0 Slot 7 saving data in progress 40%.

Frame 0 Slot 7 saving data in progress 100%.

Save data to FLASH successfully.

MA5103#c onfigure terminal

MA5103(config)#adsl (增加adsl模板,这里只有上下行速率需要设置)

Command word