⑴ 邁普交換機配置命令 最好詳細點
下載個說明書不就得了:
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