⑴ 迈普交换机配置命令 最好详细点
下载个说明书不就得了:
http://www.maipu.cn/support/bullet/index.asp?catalog=2
去找找你的型号吧。
⑵ 如何将.TXT格式配置文件导入迈普S4126E交换机,要具体操作命令和步骤
首先你需要的材料有:
迈普S4126E、console线一根、电脑一台(带com口)。
步骤:
将迈普交换机通电,然后将console线插入迈普交换机中。
将console线的另外一段接入到电脑的com口上
打开电脑的通讯软件 如果没有就需要下载 拨号通信软件如secure CRT
打开软件 并且连接选择计算机上的com口即可。
查看到交换机配置界面,将TXT文本配置文档复制到界面窗口。
按回车,即可将TXT配置文件写入到交换机。
选择SAVE 保存退出即可。迈普的命令中输入SAVE 按提示选择保存退出。
关机交换机,重启交换机。交换机即可按照配置文档运行。
总结:如果你只是普通的网管,建议你不要操作了,你可以寻找当地的网络工程师给与你远程调试和网络优化咨询服务。
⑶ 写出设置和清除交换机口令的命令行,口令为123
1.交换机的初始化
当交换机没有进行配置时,接入超级终端会提示是否以对话方式进行配置,初始化内容主要有IP地址、网关、主机名和口令等。配置文件是flash:config.text。
2924交换机进入ROM方式是在上电时按住其mode键,本软件是按Ctrl+Break键,出现:
switch> ;按Ctrl+Break键
switch:reset ;或用boot命令
如果有配置文件进入用户模式,否则提交对话:
--- System Configuration Dialog ---
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Continue with configuration dialog? [yes/no]:y
Enter IP address:10.65.1.8
Enter IP netmask:255.255.0.0
Would you like to enter a default gateway address? [yes]:
IP address of default gateway:
Enter host name [Switch]:swa
The enable secret is a one-way cryptographic secret used
instead of the enable password when it exists.
Enter enable secret:aaa
Would you like to configure a Telnet password? [yes]:
Enter Telnet password:a
Would you like to enable as a cluster command switch? [no]:
The following configuration command script was created:
......
Press RETURN to get started.
swa>en
password:aaa
swa# run start (保存配置信息)
swa#dir flash: (查看闪存中的文件)
再次进入对话方式:
swa#setup
2.路由器的初始化
路由器初始化与交换机类似,上电时按Ctrl+Break,进入ROM监控状态
router> ;用户模式,按Ctrl+Break
rommon>reset ;进入ROM监控状态,复位引导
(没有配置文件或采用寄存器设置跳过配置文件提示对话信息)
Continue with configuration dialog? [yes/no]:yes
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[ ]'.
Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system
Would you like to enter basic management setup? [yes/no]:yes
Configuring global parameters:
Enter host name [router]:ra回车
The enable secret is a password used to protect access to
privileged EXEC and configuration modes. This password,
after entered, becomes encrypted in the configuration.
Enter enable secret:aaa回车
The enable password is used when you do not specify an
enable secret password,with some older software versions,
and some boot images.
Enter enable password:aa回车
The virtual terminal password is used to protect
access to the router over a network interface.
Enter virtual terminal password :a回车
Enter interface name used to connect to the management
network from the above interface summary:FastEthernet0/0回车
Configuring interface FastEthernet0/0:回车
Use the 100 Base-TX (RJ-45) connector? [yes]:回车
Operate in full-plex mode? [no]:回车
Configure IP on this interface? [yes]:回车
IP address for this interface [ ]:10.1.1.1回车
Subnet mask for this interface [ ]:255.0.0.0回车
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
Enter your selection [2]:回车
ra>en
password aaa (进入特权模式)
ra#show run (显示配置信息)
ra#w (保存配置信息)
ra#dir flash: (显示配置文件)
(配置文件在2621路由器不能删除,放弁配置文件要用寄存器设置0x2142);
3. 用命令行设置交换机和路由器的口令和主机名
交换机和路由器的口令和主机名的设置基本相同,在提问对话时,回答n,则进入命令行的状态。 先对交换机进行操作,双击SwitchA,出现:
switch>en ;第一次密码为空
switch#conf t ;进入全局配置模式
switch(config)#hostname swa ;设置交换机名
swa(config)#enable secret aaa ;设置特权加密口令为 aaa
swa(config)#enable password aax ;设置特权非密口令为 aax
swa(config)#line console 0 ;进入控制台口(Rs232)
swa(config-line)#password aa ;设置登录口令aa
swa(config-line)#login ;登录要求口令验证
swa(config-line)#line vty 0 4 ;进入虚拟终端virtual tty
swa(config-line)#password a ;设置登录口令a
swa(config-line)#login ;登录要求口令验证
swa(config-line)#exit ;返回上一层
swa(config)#exit ;返回上一层
swa#sh run ;看配置信息
swa#exit ;返回命令
swa>en
password: ;请问输入哪个口 (aaa)
secret是设置加密口令,一般都使用这种口令设置方式,它优先级高,
即没设置secret口令时,非加密口令才有效。
路由器的设置与交换机类似,双击RouterA,进入用户模式,例如:
router>en
router#conf t
router(config)#hostname roa
roa(config)#
......
......
与交换机相同,不再多述。
4. 清除交换机口令
清除交换机口令,实际中是在开机时按住交换机上的mode按钮,在
模拟软件中按Ctrl+Break,进入ROM方式switch:。
配置文件是flash:config.text,与nvarm:startup-configuse相同。
switch:flash_init
switch:dir flash:
switch:delete flash:config.text
switch:delete nvram:startup-configure
switch:boot 或
switch:reset
因为没有了配置文件,所以重新引导后会提示对话,要求进行配置。
有些情况下,最好用改名方法,修改口令后现将原配置恢复,再重新设置
口令后存盘。例如:
switch:flash_init
switch:rename flash:config.text flash:config.bak
switch:boot
....
switch>en
switch# flash:config.bak flash:running-configure
switch#conf t
switch(config)#en secret aaa
switch(config)#exit
switch#w 或
switch# run start
switch#reload
5. 清除路由器口令
路由器2621的配置文件不让删除和改名,需要采用设置寄存器开关的方法实现。
实际当中是在上电时,按Ctrl+Break。在软件模拟中,双击RouterA进入终端模式,再按Ctrl+Break进入rommon>状态,操作如下:
rommon> ;进入ROM监控状态
rommon>confreg 0x2142 ;跳过配置文件适用26xx 36xx 45xx
rommon>reset ;重新引导,等效于重开机
Continue with configuration dialog? [yes/no]:no
router>en
router#conf t
router(config)#enable secret bbb ;设置特权加密口令为 bbb
router(config)#config-register 0x2102 ;正常使用配置文件
router(config)#exit
router#exit
router>
router>en
password:bbb
6. 备份IOS和配置文件
在实际工作中经常需要备份路由器的IOS和配置文件,以备系统有问题时的恢复。可以这样操作:
router#dir nvram:
router# flash:c2621.bin tftp:
router# startup-config tftp:
router#
实验二 计算机与交换机IP地址设置
1. 双击HostA, 输入用户名和入口令,键入"?"可以求得帮助。
PCA login:root
Password:linux
设置 IP :[root#PCA root]# ifconfig eth0 10.65.1.1 netmask 255.255.0.0
查看 IP :[root#PCA root]# ifconfig
关闭网卡 :[root#PCA root]# ifconfig eth0 10.65.1.1 netmask 255.255.0.0 down
设置网关:[root#PCA root]# route add default gw 10.65.1.9
查看网关:[root#PCA root]# route
删除网关:[root#PCA root]# route del default gw 10.65.1.9
2. 双击HostB, 输入用户名和入口令,键入"?"可以求得帮助。
PCB login:root
Password:linux
设置 IP :[root#PCB root]# ifconfig eth0 10.65.1.2 netmask 255.255.0.0
设置网关:[root#PCB root]# route add default gw 10.65.1.9
这里只是说明设置网关的方法,关于它的意义在后面实现才能体现。
[root@PCA root]# ping 10.65.1.1 (通)
[root@PCA root]# ping 10.65.1.2 (通)
[root@PCB root]# ping 10.65.1.1 (通)
[root@PCB root]# ping 10.65.1.2 (通)
可见交换机不用做任何设置,就可以让两个计算机连通。交换机默认状态是
所有端口全在vlan1,可以替代HUB使用,交换机的端口独享带宽。
3.双击SwitchA
进入特权模式 : switch>en
进入全局配置模式:switch#conf t
进入默认vlan状态:switch(config)#int vlan 1
设置ip地址和掩码:switch(config-if)#ip address 10.65.1.3 255.255.0.0
设置switch的网关:switch(config)#ip default-gateway 10.65.1.9
查看当前配置:switch#sh run
测试联通情况:
switch#ping 10.65.1.1 (通) ;ping HostA
switch#ping 10.65.1.2 (通) ;ping HostB
switch#ping 10.65.1.3 (通) ;这相操作是ping自己
switch#ping 10.65.1.4 (不通) ;没有这个IP,所以不通。
设置交换机的IP地址,一般是做远程序管理用,即用telnet 远程登录到交换机。至于交换机的网关,则是为了提供从交换机连接到其它设备的路由。
4.双击PCA
[root@PCA root]# ping 10.65.1.3 (通) ;从电脑ping 交换机
这是资料,你可以参考下!
⑷ 保存交换机上所做的设置命令为
保存配置命令:save
不要再特权模式下输入,否则可能无效命令
⑸ 迈普s4000交换机恢复出厂设置命令
命令是resetsaved-configuration、reboot。在工作中,某些设备可能不承载以前的业务,也可能重新利用一些旧设备,这就需要恢复出厂默认设置。
⑹ h3c交换机保存配置命令
h3c交换机保存配置命令
1、是用Telnet命令,前提是交换机己配置好IP地址,并打开telnet功能,同时和电脑在同一局域网内。
2、是用超极终端或仿真终端。前提是用控制线把电脑和交换机console端口相连接。
提示:通过WEB页面也可以对交换机进行配置,前提是交换机己配置好IP地址,并打开HTTP功能,同时和电脑在同一局域网内。
h3c交换机保存配置命令方法:
1、system-view 进入系统视图模式
2、sysname 为设备命名
3、display current-configuration 当前配置情况
4、 language-mode Chinese|English 中英文切换
5、interface Ethernet 1/0/1 进入以太网端口视图
6、 port link-type Access|Trunk|Hybrid 设置端口访问模式
7、 undo shutdown 打开以太网端口
8、 shutdown 关闭以太网端口
9、 quit 退出当前视图模式
10、 vlan 10 创建VLAN 10并进入VLAN 10的视图模式
11、 port access vlan 10 在端口模式下将当前端口加入到vlan 10中
12、port E1/0/2 to E1/0/5 在VLAN模式下将指定端口加入到当前vlan中
13、port trunk permit vlan all 允许所有的vlan通过
h3c交换机保存配置命令方法是,步骤如下:
1:当提示你将被写入设备。Are you sure? [Y/N] 按“y”。
2:提示你输入文件名,默认是:flash:/startup.cfg,此时直接回车。
3:flash:/startup.cfg已经存在,是否overwrite? [Y/N]
4:按YValidating file.Please wait................ 过两秒钟提示估存成功。
拓展知识: h3c交换机基础配置命令
一.用户配置:
H3C>system-view
[H3C]super password H3C 设置用户分级密码
[H3C]undo super password 删除用户分级密码
[H3C]localuser bigheap 123456 1 Web网管用户设置,1(缺省)为管理级用户,缺省admin,admin
[H3C]undo localuser bigheap 删除Web网管用户
[H3C]user-interface aux 0 只支持0
[H3C-Aux]idle-timeout 2 50 设置超时为2分50秒,若为0则表示不超时,默认为5分钟
[H3C-Aux]undo idle-timeout 恢复默认值
[H3C]user-interface vty 0 只支持0和1
[H3C-vty]idle-timeout 2 50 设置超时为2分50秒,若为0则表示不超时,默认为5分钟
[H3C-vty]undo idle-timeout 恢复默认值
[H3C-vty]set authentication password 123456 设置telnet密码,必须设置
[H3C-vty]undo set authentication password 取消密码
[H3C]display users 显示用户
[H3C]display user-interface 显示用户界面状态
二.系统IP配置:
[H3C]vlan 20
[H3C]management-vlan 20
[H3C]interface vlan-interface 20 创建并进入管理VLAN
[H3C]undo interface vlan-interface 20 删除管理VLAN接口
[H3C-Vlan-interface20]ip address 192.168.1.2 255.255.255.0 配置管理VLAN接口静态IP地址(缺省为192.168.0.234)
[H3C-Vlan-interface20]undo ip address 删除IP地址
[H3C-Vlan-interface20]ip gateway 192.168.1.1 指定缺省网关(默认无网关地址)
[H3C-Vlan-interface20]undo ip gateway
[H3C-Vlan-interface20]shutdown 关闭接口
[H3C-Vlan-interface20]undo shutdown 开启
[H3C]display ip 显示管理VLAN接口IP的相关信息
[H3C]display interface vlan-interface 20 查看管理VLAN的接口信息
debugging ip 开启IP调试功能
undo debugging ip
三.DHCP客户端配置:
[H3C-Vlan-interface20]ip address dhcp-alloc 管理VLAN接口通过DHCP方式获取IP地址
[H3C-Vlan-interface20]undo ip address dhcp-alloc 取消
[H3C]display dhcp 显示DHCP客户信息
debugging dhcp-alloc 开启DHCP调试功能
undo debugging dhcp-alloc
四.端口配置:
[H3C]interface Ethernet0/3
[H3C-Ethernet0/3]shutdown
[H3C-Ethernet0/3]speed 100 速率,可为10,100,1000和auto(缺省)
[H3C-Ethernet0/3]plex full 双工,可为half,full和auto(缺省) 光口和汇聚后不能配置
[H3C-Ethernet0/3]flow-control 开启流控,默认为关闭
[H3C-Ethernet0/3]broadcast-suppression 20 设置抑制广播百分比为20%,可取5,10,20,100,缺省为100,同时组播和未知单播也受此影响
[H3C-Ethernet0/3]loopback internal 内环测试
[H3C-Ethernet0/3]loopback external 外环测试,需插接自环头,必须为全双工或者自协商模式
[H3C-Ethernet0/3]port link-type trunk 设置链路的类型为trunk,可为access(缺省),trunk
[H3C-Ethernet0/3]port trunk pvid vlan 20 设置20为该trunk的缺省VLAN,默认为1
(trunk线路两端的PVID必须一致)
[H3C-Ethernet0/3]port access vlan 20 将当前access端口加入指定的VLAN
[H3C-Ethernet0/3]port trunk permit vlan all 允许所有的VLAN通过当前的trunk端口,可多次使用该命令
[H3C-Ethernet0/3]mdi auto 设置以太端口为自动监测,normal(缺省)为直通线,across为交叉线
[H3C]link-aggregation Ethernet 0/1 to Ethernet 0/4 将1-4口加入汇聚组,1为主端口,两端需要同时配置,设置了端口镜像以及端口隔离的端口无法汇聚
[H3C]undo link-aggregation Ethernet 0/1 删除该汇聚组
[H3C]link-aggregation mode egress 配置端口汇聚模式为根据目的MAC地址进行负荷分担,可选为 ingress,egress和both,缺省为both
[H3C]monitor-port Ethernet 0/2 将该端口设置为镜像端口,必须先设置镜像端口,删除时必须先删除被镜像端口,而且它们不能同在一个端口,该端口不能在汇聚组中,设置新镜像端口时,新取代旧,被镜像不变
[H3C]mirroring-port Ethernet 0/3 to Ethernet 0/4 both 将端口3和4设置为被镜像端口,both为同时监控接收和发送的报文,inbound表示仅监控接收的报文,outbound表示仅监控发送的报文
[H3C]display mirror
[H3C]display interface Ethernet 0/3
reset counters 清除所有端口的统计信息
[H3C]display link-aggregation Ethernet 0/3 显示端口汇聚信息
[H3C-Ethernet0/3]virtual-cable-test 诊断该端口的电路状况
五.VLAN配置:
[H3C]vlan 2
[H3C]undo vlan all 删除除缺省VLAN外的所有VLAN,缺省VLAN不能被删除
[H3C-vlan2]port Ethernet 0/4 to Ethernet 0/7 将4到7号端口加入到VLAN2中,此命令只能用来加access端口,不能用来增加trunk或者hybrid端口
[H3C-vlan2]port-isolate enable 打开VLAN内端口隔离特性,不能二层转发,默认不启用该功能
[H3C-Ethernet0/4]port-isolate uplink-port vlan 2 设置4为VLAN2的隔离上行端口,用于转发二层数据,只能配置一个上行端口,若为trunk,则建议允许所有VLAN通过,隔离不能与汇聚同时配置
[H3C]display vlan all 显示所有VLAN的详细信息
S1550E支持基于端口的VLAN,通过创建不同的user-group来实现,一个端口可以属于多个user-group,不属于同一个user-group的端口不能互相通信,最多支持50个user-group
[H3C]user-group 20 创建user-group 20,默认只存在user-group 1
[H3C-UserGroup20]port Ethernet 0/4 to Ethernet 0/7 将4到7号端口加入到VLAN20中,初始时都属于user-group 1中
[H3C]display user-group 20 显示user-group 20的'相关信息
六.集群配置:
S2100只能作为成员交换机加入集群中,加入后系统名改为"集群名_成员编号.原系统名"的格式.
即插即用功能通过两个功能实现: 集群管理协议MAC组播地址协商和管理VLAN协商
[H3C]cluster enable 启用群集功能,缺省为启用
[H3C]cluster 进入群集视图
[H3C-cluster]administrator-address H-H-H name switch H-H-H为命令交换机的MAC,加入switch集群
[switch_1.H3C-cluster]undo administrator-address 退出集群
[H3C]display cluster 显示集群信息
[H3C]management-vlan 2 集群报文只能在管理VLAN中转发,同一集群需在同一个管理VLAN中,需在建立集群之前指定管理VLAN
debugging cluster
七.QoS配置:
QoS配置步骤:设置端口的优先级,设置交换机信任报文的优先级方式,队列调度,端口限速
[H3C-Ethernet0/3]priority 7 设置端口优先级为7,默认为0
[H3C]priority-trust cos 设置交换机信任报文的优先级方式为cos(802.1p优先级,缺省值),还可以设为dscp方式(dscp优先级方式)
[H3C]queue-scheler hq-wrr 2 4 6 8 设置队列调度算法为HQ-WRR(默认为WRR),权重为2,4,6,8
[H3C-Ethernet0/3]line-rate inbound 29 将端口进口速率限制为2Mbps,取1-28时,速率为rate*8*1024/125,即64,128,192...1.792M;29-127时,速率为(rate-27)*1024,即2M,3M,4M...100M,千兆时可继续往下取,128-240时,速率为(rate-115)*8*1024,即104M,112M,120M...1000M
[H3C]display queue-scheler 显示队列调度模式及参数
[H3C]display priority-trust 显示优先级信任模式
八.系统管理:
[H3C]mac-address blackhole H-H-H vlan 1 在VLAN1中添加黑洞MAC
[H3C]mac-address static H-H-H interface Ethernet 0/1 vlan 1 在VLAN1中添加端口一的一个mac
[H3C]mac-address timer aging 500 设置MAC地址表的老化时间为500s
[H3C]display mac-address
[H3C]display arp
[H3C]mac-address port-binding H-H-H interface Ethernet 0/1 vlan 1 配置端口邦定
[H3C]display mac-address port-binding
[H3C]display saved-configuration
[H3C]display current-configuration
save
[H3C]restore default 恢复交换机出厂默认配置,恢复后需重启才能生效
[H3C]display version
reboot
[H3C]display device
[H3C]sysname bigheap
[H3C]info-center enable 启用系统日志功能,缺省情况下启用
[H3C]info-center loghost ip 192.168.0.3 向指定日志主机(只能为UNIX或LINUX,不能为Windows)输出信息,需先开启日志功能,缺省关闭
[H3C]info-center loghost level 8 设置系统日志级别为8,默认为5.级别说明:1.emergencies 2.alerts 3.critical 4.errors 5.warnings 6.notifications 7.informational 8.debugging
terminal debugging 启用控制台对调试信息的显示,缺省控制台为禁用
terminal logging 启用控制台对日志信息的显示,缺省控制台为启用
terminal trapping 启用控制台对告警信息的显示,缺省控制台为启用
[H3C]display info-center 显示系统日志的配置和缓冲区记录的信息
[H3C]display logbuffer 显示日志缓冲区最近记录的指定数目的日志信息
[H3C]display trapbuffer 显示告警缓冲区最近记录的指定数目的日志信息
reset logbuffer 清除日志缓冲区的信息
reset trapbuffer 清除告警缓冲区的信息
⑺ 迈普交换机配置问题
其实不是很麻烦的啊 从路由器过来的 网线 直接接到第一个交换机的第一口 从第一交换机的2口做成下连交换机的口 就可以的啊 以此类推 3口做第3个交换机的 4口做第4个交换机的 就可以啊
login:admin
password:admin
Switch>enable
Switch#configure terminal 进入配置模式
Switch(config)#vlan 2 创建vlan 2
Switch(config-vlan2)#port 0/0 tag 透传级联端口
Switch(config)#exit
Switch(config)#layer2-mode disable 关闭2层模式
Switch(config)#interface sw0 进入 SW0接口
Switch(config-if-sw0)#ip address 192.168.11.x 255.255.255.128 配置管理地址 x范围(2-126)
Switch(config-if-sw0)#vlan-id 2 管理vlan
Switch(config-if-sw0)#exit
Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.1 静态路由,指向管理地址x网关
Switch(config)#enable password level 15 admin 为交换机密码
Switch(config)#igmpsnoop en 打开组播
Switch(config)#exit
Switch#write
Are you sure to override /rfa1/startup (Yes|No)?y
exit
exit