當前位置:首頁 » 存儲配置 » 如何查看華三rip配置效果

如何查看華三rip配置效果

發布時間: 2022-07-08 00:30:03

『壹』 使用哪些命令可以驗證RIP路由配置情況

樓上回答的很對,show ip protocol :
Router#sh ip protocols
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
//更新間隔,和下次更新時間
Sending updates every 30 seconds, next e in 22 seconds
//相關定時器
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
//RIP的發送和接受的版本:都是ver2
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
Loopback0 2 2
//自動匯總被關閉
Automatic network summarization is not in effect
Maximum path: 4
//network了哪些網段
Routing for Networks:
1.0.0.0
12.0.0.0
Routing Information Sources:
Gateway Distance Last Update
12.1.1.2 120 00:00:09
Distance: (default is 120)

=====================
show ip route rip:這個是用來看通過rip學來的路由:
R2#sh ip route rip
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/1] via 12.1.1.1, 00:00:05, FastEthernet0/0

=========
如果樓主研究的深的話,還可以看rip的資料庫,命令如下:
R2#sh ip rip database
1.0.0.0/8 auto-summary
1.1.1.1/32
[1] via 12.1.1.1, 00:00:05, FastEthernet0/0
2.0.0.0/8 auto-summary
2.2.2.2/32 directly connected, Loopback0
12.0.0.0/8 auto-summary
12.1.1.0/24 directly connected, FastEthernet0/0
R2#

不知道樓主滿意否?

『貳』 H3C交換機,路由器常用的一些命令!懂的來,不懂的別亂整,謝謝!!!

>system-view
]display history-command
]display version
]display current-configuration
]display saved-configuration
]display interface
]display ip interface
]interface ethernet e0/0
S-E0/0]plex full
]vrbd 顯示詳細系統軟體版本信息
]sysname Ra
]user-interface aut
S-ui-aux0]set authentication password cipher/simple wnt 配置password認證口令
]user-interface console 0
S-ui-console0]set authentication password cipher wnt 配置console口令
]user-interface vty 0 4
S-ui-vty0-4]set authyentication password cipher wnt 配置vty口令
]save file-name/safely 保存配置
]reboot
]telnet IP
]ip host hostname ip-address
]display ip host
Ctrl+]
Ctrl+k 斷開telnet連接
]display users all 查看telnet會話
]display tcp status 顯示tcp連接
]bootfile dir 查看flash中的系統啟動文件
]reset saved-configuration 刪除啟動配置文件
>tftp IP put flash:/config.cfg h3c2831.cfg
備份配置文件到Tftp
>tftp IP get h3c2831.cfg flash:/config.cfg
更新配置文件
>dir
]bootfile dir 查看系統啟動文件
]display mac-address dynamic 查看網橋表
]mac-address static mac-address interface-id vlan vlan-id
配置靜態網橋表條目
配置管理vlan
]vlan 5
]management-vlan 5
]interface vlan-interface 5
-vlan-interface5]ip address

配置GVRP中繼協議
[H3C]gvrp 開啟gvrp
[H3C]interface e0/1
[H3C-ethernet e0/1]port link-type access/trunk
[H3C-ethernet e0/1]prot trunk permit all/vlan-id
[H3C-ethernet e0/1]gvrp
[H3C]display gvrp statistics 查看gvrp的狀態

配置靜態路由
[H3C]ip route-static IP netmask nexthop-IP
配置默認路由
[H3C]ip route-static 0.0.0.0 0.0.0.0 nexthop-IP
查看路由表信息
[H3C]display ip routing-table
配置RIP協議
[H3C]rip
[H3C-rip]network a.b.c.d
路由更新花銷最小
[H3C]interface s0/1
[H3C-serial0/1]rip triggered
不連續子網配置輔助IP
[H3C]interface e0/1
[H3C-ethernet0/1]ip address IP netmask sub
配置RIP V2協議
[H3C]rip
[H3C-rip]network a.b.c.d
[H3C-rip]undo summary
[H3C]interface s0/1
[H3C-serial0/1]rip version 2
配置OSPF協議
[H3C]router id 1.1.1.1
[H3C]ospf 1
[H3C-ospf-1]area 0
[H3C-ospf-1]network 10.0.0.0 0.255.255.255
[H3C]display ospf interface 顯示運行OSPF介面的信息
[H3C]display ospf cumulative 顯示OSPF的統計信息
[H3C]display ospf brief 顯示OSPF路由過程的信息
配置Vlan間路由
[H3C]interface e0/0.2
[H3C-ethernet e0/0.2]vlan-type dot1q vid 2
[H3C-ethernet e0/0.2]ip address IP netmask
配置HDLC封裝
[H3C]interface s0/0
[H3C-serial0/0]link-protocol hdlc
[H3C-serial0/0]timer hold seconds
配置PPP封裝
[H3C]interface s0/1
[H3C-serial0/1]link-procotol ppp
[H3C-serial0/1]timer hold seconds
配置PAP認證
[H3C]interface s0/1
[H3C-serial0/1]link-procotol ppp
[H3C-serial0/1]timer hold seconds
[H3C-serial0/1]ppp authentication-mode pap
[H3C]local-user username
[H3C-ui-user]password simple/cipher password
配置CHAP認證
A端
[H3C]interface s0/0
[H3C-serial0/0]ppp authentication-mode chap chap
[H3C-serial0/0]ppp chap user left
[H3C-serial0/0]ppp chap password cipher wnt
[H3C]local-user right
[H3C]password cipher wnt
B端
[H3C]interface s0/0
[H3C-serial0/0]ppp authentication-mode chap chap
[H3C-serial0/0]ppp chap user right
[H3C-serial0/0]ppp chap password cipher wnt
[H3C]local-user left
[H3C]password cipher wnt
[H3C]display interface s0/0

ACL
[H3C-acl-adv]rule 1 permit 192.46.27.7 0.0.0.0

[H3C-acl-adv]rule 1 deny ip source 1.1.1.1 0
[H3C-acl-adv]rule 1 deny ip destination 2.2.2.2 0
[H3C-acl-adv]rule 1 deny ip source 1.1.1.1 0 destination 2.2.2.2 0

[H3C-acl-avd]rule 101 permit tcp source any destination-port eq www
[H3C-acl-avd]rule 101 permit icmp source any destination 192.78.46.8 0 icmp-type echo-reply

[H3C-acl-adv]rule 101 permit ip source any destination 192.78.46.8 0
[H3C-acl-adv]rule 101 deny tcp source any destination 192.78.46.8 0

[H3C]acl number 3002
[H3C-acl-adv-3002]rule 1 permit icmp destination 192.78.46.8 0
icmp-type echo-reply
[H3C-acl-adv-3002]rule 2 permit tcp destination 192.78.46.8 0
destination-port eq www
[H3C-acl-adv-3002]rule 3 deny ip
[H3C]interface s1/0
[H3C-serial1/0]firewall packet-filter 3002 inbound

VTY-acl
[H3C]user-interface vty 0 4
[H3C-ui-vty0-4]acl 2001 inbond/outbond

[H3C]display firewall-statistics interface serial1/0
[H3C]display acl all

『叄』 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全局地址。

『肆』 H3C路由器RIP跟OSPF怎麼做

不建議你使用兩種動態路由協議。
如果路由器不會產生環狀拓撲且台數不超過16台。可以使用RIP

OSPF總體效果來說要比RIP好。拓撲結構可以是環狀。我建議使用OSPF協議。

RIP是距離矢量演算法
OSPF是鏈路狀態演算法的

『伍』 請問rip路由協議配置的具體步驟是什麼謝謝

1、確定所要配置的網路組網及相關ip規劃,然後進行具體的配置。

『陸』 在路由器上配置了 rip 路由協議後,怎樣才能查看 rip 路由更新的過程

運行rip的路由器會把自己的所有路由信息(路由表)發送給自己的鄰接路由(在不運行防止cit的機制下)。

『柒』 RIP與OSPF與靜態路由的全網通 ,這是華三的設備,不要用思科的,請大神幫我做下,急用!!!!!

rip:
r1配置:
rip
net 192.168.4.0
net 192.168.5.0
r2配置:
rip
net 192.168.4.0
net 192.168.3.0
r3配置
rip
net 192.168.6.0
net 192.168.5.0
S1配置:
rip
net 192.168.1.0
net 192.168.2.0
net 192.168.3.0
net 192.168.6.0

ospf配置:
r1配置:
ospf 1
a 0
net 192.168.4.0 0.0.0.3 (介面IP用/30掩碼)
net 192.168.5.0 0.0.0.3
r2配置:
ospf 1
a 0
net 192.168.4.0 0.0.0.3
net 192.168.3.0 0.0.0.3
r3配置:
ospf 1
a 0
net 192.168.4.0 0.0.0.3
net 192.168.3.0 0.0.0.3
s1配置:
ospf 1
a 0
net 192.168.1.0 0.0.0.255 (vlan2,vlan3的掩碼自己根據要求寫)
net 192.168.2.0 0.0.0.255
net 192.168.3.0 0.0.0.3
net 192.168.6.0 0.0.0.3

靜態路由:
r1配置:
ip route-static 192.168.1.0 255.255.255.0 192.168.4.1
ip route-static 192.168.1.0 255.255.255.0 192.168.5.2
ip route-static 192.168.2.0 255.255.255.0 192.168.4.1
ip route-static 192.168.2.0 255.255.255.0 192.168.5.2
ip route-static 192.168.3.0 255.255.255.252 192.168.4.1
ip route-static 192.168.3.0 255.255.255.252 192.168.5.2
ip route-static 192.168.6.0 255.255.255.252 192.168.4.1
ip route-static 192.168.6.0 255.255.255.252 192.168.5.2
r2配置:
ip route-static 192.168.1.0 255.255.255.0 192.168.3.2
ip route-static 192.168.1.0 255.255.255.0 192.168.4.2
ip route-static 192.168.2.0 255.255.255.0 192.168.3.2
ip route-static 192.168.2.0 255.255.255.0 192.168.4.2
ip route-static 192.168.5.0 255.255.255.252 192.168.3.2
ip route-static 192.168.5.0 255.255.255.252 192.168.4.2
ip route-static 192.168.6.0 255.255.255.252 192.168.3.2
ip route-static 192.168.6.0 255.255.255.252 192.168.4.2
r3配置:
ip route-static 192.168.1.0 255.255.255.0 192.168.5.1
ip route-static 192.168.1.0 255.255.255.0 192.168.6.2
ip route-static 192.168.2.0 255.255.255.0 192.168.5.1
ip route-static 192.168.2.0 255.255.255.0 192.168.6.2
ip route-static 192.168.4.0 255.255.255.252 192.168.5.1
ip route-static 192.168.4.0 255.255.255.252 192.168.6.2
ip route-static 192.168.3.0 255.255.255.252 192.168.5.1
ip route-static 192.168.3.0 255.255.255.252 192.168.6.2

s1配置:
ip route-static 192.168.4.0 255.255.255.252 192.168.3.1
ip route-static 192.168.4.0 255.255.255.252 192.168.6.1
ip route-static 192.168.5.0 255.255.255.252 192.168.3.1
ip route-static 192.168.5.0 255.255.255.252 192.168.6.1

『捌』 路由器配置,常用命令有哪些請舉例,謝謝(H3C)

網上有太多的了。不列舉了。找專業的書籍看一下就可以了。

H3C路由器常用基本配置命令

[Quidway]sysname router_name 命名路由器(或交換機)
[Quidway]delete 刪除Flash ROM中的配置
[Quidway]save 將配置寫入Flash ROM
[Quidway]interface serial 0 進入介面配置模式
[Quidway]quit 退出介面模式到系統視圖
[Quidway]shutdown/undo shutdown 關閉/重啟介面
[Quidway]ip address ip_address subnet_mask 為介面配置IP地址和子網掩碼
[Quidway]display version 顯示VRP版本號
[Quidway]display current-configuration 顯示系統運行配置信息
[Quidway]display interfaces 顯示介面配置信息
[Quidway]display ip routing 顯示路由表
[Quidway]ping ip_address 測試網路連通性
[Quidway]tracert ip_address 測試數據包從主機到目的地所經過的網關
[Quidway]debug all 打開所有調試信息
[Quidway]undo debug all 關閉所有調試信息
[Quidway]info-center enable 開啟調試信息輸出功能
[Quidway]info-center console bugging 將調試信息輸出到PC
[Quidway]info-center monitor bugging 將調試信息輸出到Telnet終端或啞終端
換機配置命令舉例(大括弧{}中的選項為單選項,斜體字部分為參數值
[Quidway]super password password 修改特權模式口令
[Quidway]sysname switch_name 命名交換機(或路
[Quidway]interface ethernet 0/1 進入介面視圖
[Quidway]quit 退出系統視圖
[Quidway-Ethernet0/1]plex {half|full|auto} 配置介面雙工工
[Quidway-Ethernet0/1]speed {10|100|auto} 配置介面速率
[Quidway-Ethernet0/1]flow-control 開啟流控制
[Quidway-Ethernet0/1]mdi {across|normal|auto} 配置MDI/MDIX
[Quidway-Ethernet0/1]shutdown/undo shutdown 關閉/重啟埠
VLAN基本配置命令(以Quidway S3026為例) [Quidway]vlan 3 創建並進入VLAN配置模式,預設時系將
所有埠加入VLAN 1,這個埠既不能被創建也不能被刪除。
[Quidway]undo vlan 3 刪除一個VLAN
[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 給VLAN增加/刪除乙太網介面
[Quidway-Ethernet0/2]port access vlan 3 將本介面加入到指定VLAN id [Quidway-Ethernet0/2]port link-type {access|trunk|hybrid} 設置埠工作方式,access(預設)不支持802.1q幀的傳送,而trunk 支持(用於Switch間互連),hybrid和trunk的區別在於 trunk
只允許預設VLAN的報文發送時不打標簽,而hybrid允許多個VLAN報文發送時不打標簽。
埠聚合配置命令
[Quidway]link-aggregation ethernet 0/7 to ethernet 0/10 {ingress|both} 配置埠聚合
Port_num1為埠聚合組的起始埠號,Port_num2為終止埠號
ingress為介面入負荷分擔方式,both為介面出負荷分擔方式。
STP基本配置命令
[Quidway]stp {enable|disable} 開啟/關閉 STP 功能,默認關閉,開啟後所有埠都參與STP 計算
[Quidway-Ethernet0/3]stp disable 關閉指定介面上的STP功能,如某些網路不存在環路可以關閉STP。
PPP配置命令
[Quidway-Serial0]link-protocol ppp 封裝PPP協議
[Quidway-Serial0]ppp authentication-mode {pap|chap} 設置驗證類型
[Quidway]local-user username password {simple|cipher} password 配置用戶列表
- PAP驗證配置:
主驗證方
[Quidway]local-user username password {simple|cipher} password 配置用戶列表
[Quidway-Serial0]ppp authentication-mode pap
被驗證方
[Quidway-Serial0]ppp pap local-user username password {simple|cipher} password
- CHAP驗證配置:
主驗證方
[Quidway]local-user username password {simple|cipher} password 配置被驗證方用戶列表
[Quidway-Serial0]ppp chap host hostname 配置本地名稱
[Quidway-Serial0]ppp authentication-mode chap
被驗證方
[Quidway]local-user username password {simple|cipher} password 配置主驗證方用戶列表
[Quidway-Serial0]ppp chap user username 配置本地名稱
MP配置命令
[Quidway-Serial0]ppp mp 封裝MP協議
[Quidway]ppp mp user username bind virtual-template number 建立用戶與虛擬模板的對應關系
[Quidway]interface virtual-template number 配置虛擬介面模板
[Quidway]ppp mp max-bind number 設置虛擬模板最大綁定數(1-100)
幀中繼配置命令
[Quidway-Serial0]link-protocol fr {mfr|ietf|nonstandard} 封裝幀中繼協議:IETF、Cisco兼容
[Quidway-Serial0]fr interface-type {dte|dce|nni} 配置幀中繼介面類型,NNI為幀中繼交換機之間的介面。若配為DCE或NNI,則須先使能fr switching。
[Quidway-Serial0]fr lmi type {q933a|ansi|cisco-compatible} 配置LMI協議類型
[Quidway-Serial0]fr dlci dlci_number 配置一條本地虛電路號
[Quidway-Serial0]fr map {ip|ipx} protocol-address dlci dlci_number 建立本地DLCI到對端協議地址的映射
[Quidway-Serial0]fr inarp [ip|ipx] [dlci_number] 配置Inverse ARP動態映射
[Quidway]interface type number.subinterface_number 創建並進入子介面配置模式
RIP協議配置命令
[Quidway]display rip 顯示RIP配置信息
[Quidway]rip 啟動並進入RIP配置模式
[Quidway-rip]network {network_number|all} 在指定網路上使能RIP
[Quidway-rip]peer ip_address 配置報文的定點傳送
[Quidway-Ethernet0]rip version {1|2 [bcast|mcast]} 指定RIP版本及傳送方式
[Quidway-Serial0]rip work 指定介面工作狀態(同rip input,rip output)
[Quidway-rip]auto-summary 配置RIP-2路由聚合
[Quidway-Serial0]rip authentication simple password 配置RIP-2明文認證密碼
[Quidway-Serial0]rip authentication md5 key-string string 配置RIP-2 MD5密文認證密碼串
[Quidway-Serial0]rip authentication md5 type {nonstandard-compatible|usual} 指定MD5類型
[Quidway]debugging rip packet 打開RIP調試開關
[Quidway]info-center console 將調試信息輸出到PC
靜態路由配置命令
[Quidway]ip route ip_address subnet_mask {interface_name|gateway_address} [preference preference_value] [reject|black_bone]
[命令說明] reject:任何去往該目的地的報文均被丟棄,通知源主機不可達。
black_bone:任何去往該目的地的報文均被丟棄,不通知源主機。
當只有下一跳的介面是PPP或HDLC介面才能寫interface_name,如Serial0,否則只能寫gateway_address(下一跳地址)。
[命令舉例] [Quidway]ip route 129.1.0.0 16 10.0.0.2
[Quidway]ip route 129.1.0.0 255.255.0.0 10.0.0.2
[Quidway]ip route 129.1.0.0 16 Serial2
[Quidway]ip route 0.0.0.0 0.0.0.0 10.0.0.2 配置預設路由。
OSPF配置命令
[Quidway]router id ip_address 配置Router ID
[Quidway]ospf enable 啟用OSPF協議
[Quidway-Serial0]ospf enable area area_id 配置當前介面所屬的OSPF區

『玖』 華三交換機查看配置命令是什麼

display current-configuration 也可以簡化為 dis cu即可。

其他命令:
1、system-view 進入系統視圖模式

2、sysname 為設備命名
3、quit 退出當前視圖模式
4、 language-mode Chinese|English 中英文切換

5、interface Ethernet 1/0/1 進入乙太網埠視圖

6、 port link-type Access|Trunk|Hybrid 設置埠訪問模式

7、 undo shutdown 打開乙太網埠

8、 shutdown 關閉乙太網埠

9、 vlan 10 創建VLAN 10並進入VLAN 10的視圖模式

10、 port access vlan 10 在埠模式下將當前埠加入到vlan 10中

11、port E1/0/2 to E1/0/5 在VLAN模式下將指定埠加入到當前vlan中

12、port trunk permit vlan all 允許所有的vlan通過

『拾』 華為交換機配置好以後,用什麼命令查看以配置的信息。

華為交換、路由器常見命令

路由器基本配置命令舉例
[Quidway]sysname router_name 命名路由器(或交換機)
[Quidway]delete 刪除Flash ROM中的配置
[Quidway]save 將配置寫入Flash ROM
[Quidway]interface serial 0 進入介面配置模式
[Quidway]quit 退出介面模式到系統視圖
[Quidway]shutdown/undo shutdown 關閉/重啟介面
[Quidway]ip address ip_address subnet_mask 為介面配置IP地址和子網掩碼
[Quidway]display version 顯示VRP版本號
[Quidway]display current-configuration 顯示系統運行配置信息
[Quidway]display interfaces 顯示介面配置信息
[Quidway]display ip routing 顯示路由表
[Quidway]ping ip_address 測試網路連通性
[Quidway]tracert ip_address 測試數據包從主機到目的地所經過的網關
[Quidway]debug all 打開所有調試信息
[Quidway]undo debug all 關閉所有調試信息
[Quidway]info-center enable 開啟調試信息輸出功能
[Quidway]info-center console bugging 將調試信息輸出到PC
[Quidway]info-center monitor bugging 將調試信息輸出到Telnet終端或啞終端

換機配置命令舉例(大括弧{}中的選項為單選項,斜體字部分為參數值

[Quidway]super password password 修改特權模式口令
[Quidway]sysname switch_name 命名交換機(或路
[Quidway]interface ethernet 0/1 進入介面視圖
[Quidway]quit 退出系統視圖
[Quidway-Ethernet0/1]plex {half|full|auto} 配置介面雙工工
[Quidway-Ethernet0/1]speed {10|100|auto} 配置介面速率
[Quidway-Ethernet0/1]flow-control 開啟流控制
[Quidway-Ethernet0/1]mdi {across|normal|auto} 配置MDI/MDIX
[Quidway-Ethernet0/1]shutdown/undo shutdown 關閉/重啟埠

VLAN基本配置命令(以Quidway S3026為例) [Quidway]vlan 3 創建並進入VLAN配置模式,預設時系統將
所有埠加入VLAN 1,這個埠既不能被創建也不能被刪除。
[Quidway]undo vlan 3 刪除一個VLAN
[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 給VLAN增加/刪除乙太網介面
[Quidway-Ethernet0/2]port access vlan 3 將本介面加入到指定VLAN id [Quidway-Ethernet0/2]port link-type {access|trunk|hybrid} 設置埠工作方式,access(預設)不支持802.1q幀的傳送,而trunk支持(用於Switch間互連),hybrid和trunk的區別在於 trunk
只允許預設VLAN的報文發送時不打標簽,而hybrid允許多個VLAN報文發送時不打標簽。

埠聚合配置命令
[Quidway]link-aggregation ethernet 0/7 to ethernet 0/10 {ingress|both} 配置埠聚合
Port_num1為埠聚合組的起始埠號,Port_num2為終止埠號
ingress為介面入負荷分擔方式,both為介面出負荷分擔方式。

STP基本配置命令
[Quidway]stp {enable|disable} 開啟/關閉 STP 功能,默認關閉,開啟後所有埠都參與STP 計算。
[Quidway-Ethernet0/3]stp disable 關閉指定介面上的STP功能,如某些網路不存在環路可以關閉STP。

PPP配置命令
[Quidway-Serial0]link-protocol ppp 封裝PPP協議
[Quidway-Serial0]ppp authentication-mode {pap|chap} 設置驗證類型
[Quidway]local-user username password {simple|cipher} password 配置用戶列表
- PAP驗證配置:
主驗證方
[Quidway]local-user username password {simple|cipher} password 配置用戶列表
[Quidway-Serial0]ppp authentication-mode pap
被驗證方
[Quidway-Serial0]ppp pap local-user username password {simple|cipher} password
- CHAP驗證配置:
主驗證方
[Quidway]local-user username password {simple|cipher} password 配置被驗證方用戶列表
[Quidway-Serial0]ppp chap host hostname 配置本地名稱
[Quidway-Serial0]ppp authentication-mode chap
被驗證方
[Quidway]local-user username password {simple|cipher} password 配置主驗證方用戶列表
[Quidway-Serial0]ppp chap user username 配置本地名稱

MP配置命令
[Quidway-Serial0]ppp mp 封裝MP協議
[Quidway]ppp mp user username bind virtual-template number 建立用戶與虛擬模板的對應關系
[Quidway]interface virtual-template number 配置虛擬介面模板
[Quidway]ppp mp max-bind number 設置虛擬模板最大綁定數(1-100)

幀中繼配置命令
[Quidway-Serial0]link-protocol fr {mfr|ietf|nonstandard} 封裝幀中繼協議:IETF、Cisco兼容
[Quidway-Serial0]fr interface-type {dte|dce|nni} 配置幀中繼介面類型,NNI為幀中繼交換機之間的介面。若配為DCE或NNI,則須先使能fr switching。
[Quidway-Serial0]fr lmi type {q933a|ansi|cisco-compatible} 配置LMI協議類型
[Quidway-Serial0]fr dlci dlci_number 配置一條本地虛電路號
[Quidway-Serial0]fr map {ip|ipx} protocol-address dlci dlci_number 建立本地DLCI到對端協議地址的映射
[Quidway-Serial0]fr inarp [ip|ipx] [dlci_number] 配置Inverse ARP動態映射
[Quidway]interface type number.subinterface_number 創建並進入子介面配置模式

RIP協議配置命令
[Quidway]display rip 顯示RIP配置信息
[Quidway]rip 啟動並進入RIP配置模式
[Quidway-rip]network {network_number|all} 在指定網路上使能RIP
[Quidway-rip]peer ip_address 配置報文的定點傳送
[Quidway-Ethernet0]rip version {1|2 [bcast|mcast]} 指定RIP版本及傳送方式
[Quidway-Serial0]rip work 指定介面工作狀態(同rip input,rip output)
[Quidway-rip]auto-summary 配置RIP-2路由聚合
[Quidway-Serial0]rip authentication simple password 配置RIP-2明文認證密碼
[Quidway-Serial0]rip authentication md5 key-string string 配置RIP-2 MD5密文認證密碼串
[Quidway-Serial0]rip authentication md5 type {nonstandard-compatible|usual} 指定MD5類型
[Quidway]debugging rip packet 打開RIP調試開關
[Quidway]info-center console 將調試信息輸出到PC

靜態路由配置命令
[Quidway]ip route ip_address subnet_mask {interface_name|gateway_address} [preference preference_value] [reject|black_bone]
[命令說明] reject:任何去往該目的地的報文均被丟棄,通知源主機不可達。
black_bone:任何去往該目的地的報文均被丟棄,不通知源主機。
當只有下一跳的介面是PPP或HDLC介面才能寫interface_name,如Serial0,否則只能寫gateway_address(下一跳地址)。
[命令舉例] [Quidway]ip route 129.1.0.0 16 10.0.0.2
[Quidway]ip route 129.1.0.0 255.255.0.0 10.0.0.2
[Quidway]ip route 129.1.0.0 16 Serial2
[Quidway]ip route 0.0.0.0 0.0.0.0 10.0.0.2 配置預設路由。

OSPF配置命令
[Quidway]router id ip_address 配置Router ID
[Quidway]ospf enable 啟用OSPF協議
[Quidway-Serial0]ospf enable area area_id 配置當前介面所屬的OSPF區域

熱點內容
阿里雲怎麼領伺服器 發布:2024-10-09 05:17:53 瀏覽:816
c語言可逆素數 發布:2024-10-09 05:13:44 瀏覽:920
班級采訪問題 發布:2024-10-09 04:45:44 瀏覽:497
單人地圖腳本 發布:2024-10-09 04:45:32 瀏覽:754
易語言cf自瞄源碼 發布:2024-10-09 04:36:14 瀏覽:121
安卓和蘋果哪個更難修理 發布:2024-10-09 04:36:12 瀏覽:26
黎明覺醒安卓什麼配置 發布:2024-10-09 04:32:05 瀏覽:127
助手autojs腳本 發布:2024-10-09 04:31:40 瀏覽:186
sql判斷今天 發布:2024-10-09 04:19:35 瀏覽:943
拆分視頻需要哪些配置 發布:2024-10-09 04:06:39 瀏覽:912