h3ctftp伺服器ip
1. H3C交換機配置
分那麼少
給你一些命令你好好看看吧
Cisco路由器交換機配置命令詳解
1. 交換機支持的命令:
交換機基本狀態:
switch: ;
ROM狀態,
路由器是rommon>hostname> ;
用戶模式hostname# ;
特權模式hostname(config)# ;
全局配置模式hostname(config-if)# ;
介面狀態
交換機口令設置:
switch>enable ;
進入特權模式switch#config terminal ;
進入全局配置模式switch(config)#hostname ;
設置交換機的主機名switch(config)#enable secret xxx ;
設置特權加密口令switch(config)#enable password xxa ;
設置特權非密口令switch(config)#line console 0 ;
進入控制台口switch(config-line)#line vty 0 4 ;
進入虛擬終端switch(config-line)#login ;
允許登錄switch(config-line)#password xx ;
設置登錄口令xxswitch#exit ;
返回命令
交換機VLAN設置:
switch#vlan database ;
進入VLAN設置switch(vlan)#vlan 2 ;
建VLAN 2switch(vlan)#no vlan 2 ;
刪vlan 2switch(config)#int f0/1 ;
進入埠1switch(config-if)#switchport access vlan 2 ;
當前埠加入vlan 2switch(config-if)#switchport mode trunk ;
設置為干線switch(config-if)#switchport trunk allowed vlan 1,2 ;
設置允許的vlanswitch(config-if)#switchport trunk encap dot1q ;
設置vlan 中繼switch(config)#vtp domain ;
設置發vtp域名switch(config)#vtp password ;
設置發vtp密碼switch(config)#vtp mode server ;
設置發vtp模式switch(config)#vtp mode client ;
設置發vtp模式
交換機設置IP地址:
switch(config)#interface vlan 1 ;
進入vlan 1switch(config-if)#ip address ;
設置IP地址switch(config)#ip default-gateway ;
設置默認網關switch#dir flash: ;
查看快閃記憶體
交換機顯示命令:
switch#write ;
保存配置信息switch#show vtp ;
查看vtp配置信息switch#show run ;
查看當前配置信息switch#show vlan ;
查看vlan配置信息switch#show interface ;
查看埠信息switch#show int f0/0 ;
查看指定埠信息
2. 路由器支持的命令:
路由器顯示命令:
router#show run ;
顯示配置信息router#show interface ;
顯示介面信息router#show ip route ;
顯示路由信息router#show cdp nei ;
顯示鄰居信息router#reload ;重新起動
路由器口令設置:
router>enable ;
進入特權模式router#config terminal ;
進入全局配置模式router(config)#hostname ;
設置交換機的主機名router(config)#enable secret xxx ;
設置特權加密口令router(config)#enable password xxb ;
設置特權非密口令router(config)#line console 0 ;
進入控制台口router(config-line)#line vty 0 4 ;
進入虛擬終端router(config-line)#login ;
要求口令驗證router(config-line)#password xx ;
設置登錄口令xxrouter(config)#(Ctrl+z) ;
返回特權模式router#exit ;返回命令
路由器配置:
router(config)#int s0/0 ;
進入Serail介面router(config-if)#no shutdown ;
激活當前介面router(config-if)#clock rate 64000 ;
設置同步時鍾router(config-if)#ip address ;
設置IP地址router(config-if)#ip address second ;
設置第二個IProuter(config-if)#int f0/0.1 ;
進入子介面router(config-subif.1)#ip address ;
設置子介面IProuter(config-subif.1)#encapsulation dot1q ;
綁定vlan中繼協議router(config)#config-register 0x2142 ;
跳過配置文件router(config)#config-register 0x2102 ;
正常使用配置文件router#reload ;重新引導
路由器文件操作:
router# running-config startup-config ;
保存配置router# running-config tftp ;
保存配置到tftprouter# startup-config tftp ;
開機配置存到tftprouter# tftp flash: ;
下傳文件到flashrouter# tftp startup-config;
下載配置文件ROM狀態:Ctrl+Break ;
進入ROM監控狀態rommon>confreg 0x2142 ;
跳過配置文件rommon>confreg 0x2102 ;
恢復配置文件rommon>reset ;
重新引導rommon> xmodem: flash: ;
從console傳輸文件rommon>IP_ADDRESS=10.65.1.2 ;
設置路由器IPrommon>IP_SUBNET_MASK=255.255.0.0 ;
設置路由器掩碼rommon>TFTP_SERVER=10.65.1.1 ;
指定TFTP伺服器iprommon>TFTP_FILE=c2600.bin ;
指定下載的文件rommon>tftpdnld ;
從tftp下載rommon>dir flash: ;
查看快閃記憶體內容rommon>boot ;引導IOS
靜態路由:
ip route ;
命令格式router(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2 ;
靜態路由舉例router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 ;默認路由舉例
動態路由:
router(config)#ip routing ;
啟動路由轉發router(config)#router rip ;
啟動RIP路由協議。router(config-router)#network ;
設置發布路由router(config-router)#negihbor ;點對點幀中繼用。
幀中繼命令:
router(config)#frame-relay switching ;
使能幀中繼交換router(config-s0)#encapsulation frame-relay ;
使能幀中繼router(config-s0)#fram-relay lmi-type cisco ;
設置管理類型router(config-s0)#frame-relay intf-type DCE ;
設置為DCErouter(config-s0)#frame-relay dlci 16 ;router(config-s0)#frame-relay local-dlci 20 ;
設置虛電路號router(config-s0)#frame-relay interface-dlci 16 ;
router(config)#log-adjacency-changes ;
記錄鄰接變化router(config)#int s0/0.1 point-to-point ;
設置子介面點對點router#show frame pvc ;
顯示永久虛電路router#show frame map ;顯示映射
基本訪問控制列表:
router(config)#access-list permit|deny router(config)#interface ;
default:deny anyrouter(config-if)#ip access-group in|out ;
default: Out
例1:router(config)#access-list 4 permit 10.8.1.1router(config)#access-list 4 deny 10.8.1.0 0.0.0.255
router(config)#access-list 4 permit 10.8.0.0 0.0.255.255
router(config)#access-list 4 deny 10.0.0.0 0.255.255.255
router(config)#access-list 4 permit any
router(config)#int f0/0router(config-if)#ip access-group 4 in
擴展訪問控制列表:
access-list permit|deny icmp <DESTINATIONIPwild>[type]access-list permit|deny tcp <DESTINATIONIPwild>[port]
例3:router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echorouter(config)#access-list 101 permit ip any any
router(config)#int s0/0
router(config-if)#ip access-group 101 in
例3:router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80
router(config)#access-list 102 permit ip any any
router(config)#interface s0/1
router(config-if)#ip access-group 102 out
刪除訪問控制例表:
router(config)#no access-list 102
router(config-if)#no ip access-group 101 in
路由器的nat配置
Router(config-if)#ip nat inside ;
當前介面指定為內部介面Router(config-if)#ip nat outside ;
當前介面指定為外部介面Router(config)#ip nat inside source static [p] <私有IP><公網IP> [port]
Router(config)#ip nat inside source static 10.65.1.2 60.1.1.1
Router(config)#ip nat inside source static tcp 10.65.1.3 80 60.1.1.1 80
Router(config)#ip nat pool p1 60.1.1.1 60.1.1.20 255.255.255.0
Router(config)#ip nat inside source list 1 pool p1
Router(config)#ip nat inside destination list 2 pool p2
Router(config)#ip nat inside source list 2 interface s0/0 overload
Router(config)#ip nat pool p2 10.65.1.2 10.65.1.4 255.255.255.0 type rotary
Router#show ip nat translationrotary 參數是輪流的意思,地址池中的IP輪流與NAT分配的地址匹配。overload參數用於PAT 將內部IP映射到一個公網IP不同的埠上。
外部網關協議配置:
routerA(config)#router bgp 100
routerA(config-router)#network 19.0.0.0
routerA(config-router)#neighbor 8.1.1.2 remote-as 200
配置PPP驗證:
RouterA(config)#username password
RouterA(config)#int s0
RouterA(config-if)#ppp authentication {chap|pap}
3.PIX防火牆命令
Pix525(config)#nameif ethernet0 outside security0 ;
命名介面和級別Pix525(config)#interface ethernet0 auto ;
設置介面方式Pix525(config)#interface ethernet1 100full ;
設置介面方式Pix525(config)#interface ethernet1 100full shutdown
Pix525(config)#ip address inside 192.168.0.1 255.255.255.0
Pix525(config)#ip address outside 133.0.0.1 255.255.255.252
Pix525(config)#global (if_name) natid ip-ip ;定義公網IP區間
Pix525(config)#global (outside) 1 7.0.0.1-7.0.0.15 ;
例句Pix525(config)#global (outside) 1 133.0.0.1 ;
例句Pix525(config)#no global (outside) 1 133.0.0.1 ;
去掉設置Pix525(config)#nat (if_name) nat_id local_ip [netmark]
Pix525(config)#nat (inside) 1 0 0內網所有主機(0代表0.0.0.0)可以訪問global 1指定的外網。
Pix525(config)#nat (inside) 1 172.16.5.0 255.255.0.0內網172.16.5.0/16網段的主機可以訪問global 1指定的外網。
Pix525(config)#route if_name 0 0 gateway_ip [metric] ;
命令格式Pix525(config)#route outside 0 0 133.0.0.1 1 ;
例句Pix525(config)#route inside 10.1.0.0 255.255.0.0 10.8.0.1 1 ;
例句Pix525(config)#static (inside, outside) 133.0.0.1 192.168.0.8表示內部ip地址192.168.0.8,訪問外部時被翻譯成133.0.0.1全局地址。
Pix525(config)#static (dmz, outside) 133.0.0.1 172.16.0.8中間區域ip地址172.16.0.8,訪問外部時被翻譯成133.0.0.1全局地址。
2. 如何用PC機用Telnet,ftp,tftp登錄H3C-S3600交換機啊!有配置命令就更好了!謝了啊!
兩種方法:
1、將電腦與交換機的控制口連接。
2、按照普通的接線方式將電腦與交換機連接,然後通過瀏覽器登錄到交換機上,沒有設置的交換機一般默認的ip是192.168.0.1 默認賬號口令各廠商不同,參看說明書。
一般設置方法在說明書上都寫得很清楚,如果說明書丟了的話,直接找經銷商來弄就好了,交換機的售後服務應該都還不錯應該。
3. H3C命令行怎樣實現TFTP
希望對您有用。
目前,H3C設備只能作為TFTP客戶端,不支持作為TFTP伺服器。
TFTP傳輸請求是由客戶端發起的:
當TFTP客戶端需要從伺服器下載文件時,由客戶端向TFTP伺服器發送讀請求包,然後從伺服器接收數據,並向伺服器發送確認;
當TFTP客戶端需要向伺服器上傳文件時,由客戶端向TFTP伺服器發送寫請求包,然後向伺服器發送數據,並接收伺服器的確認。
tftp [-i] computer [get | put] source [destination]
computer指定本地或遠程計算機。
put將本地計算機上的文件destination傳送到遠程計算機上的文件source。
get將遠程計算機上的文件destination傳送到本地計算機上的文件source。
如:「tftp -i 171.171.150.111 put install.log install.log」
4. H3C三層交換機做DHCP,跨網段部署WDS服務,客戶端獲取不到TFTP
請檢查DHCP Server上的
option 066(指定WDS伺服器ip)
option 067(指定WDS上的TFTP路徑)
5. H3C-路由器、交換機配置(根據拓撲圖給例詳細命令步驟)
交換機支持的命令:
交換機基本狀態: switch: ;ROM狀態,
路由器是rommon>hostname> ;用戶模式hostname# ;特權模式hostname(config)# ;全局配置模式hostname(config-if)# ;介面狀態
交換機口令設置: switch>enable ;進入特權模式
switch#config terminal ;進入全局配置模式
switch(config)#hostname ;設置交換機的主機名
switch(config)#enable secret xxx ;設置特權加密口令
switch(config)#enable password xxa ;設置特權非密口令
switch(config)#line console 0 ;進入控制台口
switch(config-line)#line vty 0 4 ;進入虛擬終端
switch(config-line)#login ;允許登錄
switch(config-line)#password xx ;設置登錄口令
xxswitch#exit ;返回命令
交換機VLAN設置:
switch#vlan database ;進入VLAN設置
switch(vlan)#vlan 2 ;建VLAN 2
switch(vlan)#no vlan 2 ;刪vlan 2
switch(config)#int f0/1 ;進入埠1
switch(config-if)#switchport access vlan 2 ;當前埠加入
vlan 2switch(config-if)#switchport mode trunk ;設置為干線
switch(config-if)#switchport trunk allowed vlan 1,2 ;設置允許的vlan
switch(config-if)#switchport trunk encap dot1q ;設置vlan 中繼
switch(config)#vtp domain ;設置發vtp域名
switch(config)#vtp password ;設置發vtp密碼
switch(config)#vtp mode server ;設置發vtp模式
switch(config)#vtp mode client ;設置發vtp模式
交換機設置IP地址:
switch(config)#interface vlan 1 ;進入vlan 1
switch(config-if)#ip address ;設置IP地址
switch(config)#ip default-gateway ;設置默認網關
switch#dir flash: ;查看快閃記憶體
交換機顯示命令:
switch#write ;保存配置信息
switch#show vtp ;查看vtp配置信息
switch#show run ;查看當前配置信息
switch#show vlan ;查看vlan配置信息
switch#show interface ;查看埠信息
switch#show int f0/0 ;查看指定埠信息
2. 路由器支持的命令:
路由器顯示命令:
router#show run ;顯示配置信息
router#show interface ;顯示介面信息
router#show ip route ;顯示路由信息
router#show cdp nei ;顯示鄰居信息
router#reload ;重新起動
路由器口令設置:
router>enable ;進入特權模式
router#config terminal ;進入全局配置模式
router(config)#hostname ;設置交換機的主機名
router(config)#enable secret xxx ;設置特權加密口令
router(config)#enable password xxb ;設置特權非密口令
router(config)#line console 0 ;進入控制台口
router(config-line)#line vty 0 4 ;進入虛擬終端
router(config-line)#login ;要求口令驗證
router(config-line)#password xx ;設置登錄口令xx
router(config)#(Ctrl+z) ; 返回特權模式
router#exit ;返回命令
路由器配置:
router(config)#int s0/0 ;進入Serail介面
router(config-if)#no shutdown ;激活當前介面
router(config-if)#clock rate 64000 ;設置同步時鍾
router(config-if)#ip address ;設置IP地址
router(config-if)#ip address second ;設置第二個IP
router(config-if)#int f0/0.1 ;進入子介面
router(config-subif.1)#ip address ;設置子介面IP
router(config-subif.1)#encapsulation dot1q ;綁定vlan中繼協議
router(config)#config-register 0x2142 ;跳過配置文件
router(config)#config-register 0x2102 ;正常使用配置文件
router#reload ;重新引導
路由器文件操作:
router# running-config startup-config ;保存配置
router# running-config tftp ;保存配置到tftp
router# startup-config tftp ;開機配置存到tftp
router# tftp flash: ;下傳文件到flash
router# tftp startup-config;下載配置文件ROM狀態:
Ctrl+Break ;進入ROM監控狀態
rommon>confreg 0x2142 ;跳過配置文件
rommon>confreg 0x2102 ;恢復配置文件
rommon>reset ;重新引導
rommon> xmodem: flash: ;從console傳輸文件
rommon>IP_ADDRESS=10.65.1.2 ;設置路由器IP
rommon>IP_SUBNET_MASK=255.255.0.0 ;設置路由器掩碼
rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP伺服器IP
rommon>TFTP_FILE=c2600.bin ;指定下載的文件
rommon>tftpdnld ;從tftp下載
rommon>dir flash: ;查看快閃記憶體內容
rommon>boot ;引導IOS
靜態路由:
ip route ;命令格式router(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2 ;
靜態路由舉例router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 ;默認路由舉例
動態路由:
router(config)#ip routing ;啟動路由轉發
router(config)#router rip ;啟動RIP路由協議。
router(config-router)#network ;設置發布路由
router(config-router)#negihbor ;點對點幀中繼用。
6. 手裡有一個h3c wa2620i-agn的AP,是瘦模式,現在想改為胖AP,需要你的幫助
命令行升級需在PC上搭建TFTPServer(推薦用戶使用3CDaemon搭建TFTP伺服器,網路可下)將軟體版本下載到設備FLASH內,然後通過命令行首先載入BOOTROM,第二步再載入主機軟體版本,載入時敲得文件名一定要一致,建議復制黏貼不要手打,然後升級過程中避免斷電重啟操作。
下載到PC後需修改文件名,AP本地後對應的啟動文件名均為wa2600a_fat.bin,需要注意文件名稱修改正確。
以文件名wa2600a_fat.bin上傳WA2600的fat版本,這里採用tftp方式,tftp server IP地址自定(假設為192.168.0.1):
<H3C> tftp 192.168.0.1 get wa2600a_fat.bin
File will be transferred in binary mode.
Downloading file from remote tftp server, please wait........................................................................................................................
TFTP: 4602950 bytes received in 115 second(s).
File downloaded successfully.
PS:如果提示FLASH空間不足已放下新版本請將老版本刪除,刪除後請勿重啟,否則設備已無系統,只能通過bootrom升級。
<H3C>delete /unreserved wa2600a_fat.bin //刪除軟體版本
<H3C>tftp 10.153.42.66 get wa2600a_fat.bin
第一步:載入BOOTROM
<H3C> bootrom update file wa2600a_fat.btm(此步忽略)
please wait ...
Bootrom is updated!
第二步:載入主機軟體
<H3C> boot-loader file wa2600a_fat.bin main
<H3C> reboot
7. h3c交換機如何通過tftp上傳文件
1、打開SecureCRT軟體,通過console口配置交換機的vlan1的ip地址為192.168.1.254或者其它網路地址(172.16.110.1),子網掩碼為255.255.255.0。
8. H3c如何用TFTP
1 在你的電腦安裝TFTP軟體。
2 電腦設置IP (跟vlan interface同一個subnet)
3 連接到交換機,用以下指令:
4 tftp x.x.x.x get xxx.cfg
TFTP 軟體:
http://support.3com.com/software/3cdv2r10.zip