亚洲精品中文字幕无乱码_久久亚洲精品无码AV大片_最新国产免费Av网址_国产精品3级片

H3C認(rèn)證

H3C路由器配置命令

時(shí)間:2024-09-25 15:08:26 H3C認(rèn)證 我要投稿

H3C路由器配置命令

  H3C CAS云計(jì)算管理平臺(tái)基于業(yè)界領(lǐng)先的虛擬化基礎(chǔ)架構(gòu),實(shí)現(xiàn)了數(shù)據(jù)中心IaaS云計(jì)算環(huán)境的中央管理控制,以簡(jiǎn)潔的管理界面,統(tǒng)一管理數(shù)據(jù)中心內(nèi)所有的物理資源和虛擬資源。下面是小編整理的關(guān)于H3C路由器配置命令,希望大家認(rèn)真閱讀!

  一、路由器基本配置命令

  1、system-view 進(jìn)入系統(tǒng)視圖模式

  2、sysname R1 為設(shè)備命名為R

  3、display ip routing-table 顯示當(dāng)前路由表

  4、language-mode Chinese|English 中英文切換

  5、interface Ethernet 0/0 進(jìn)入以太網(wǎng)端口視圖

  6、ip address 192.168.1.1 255.255.255.0 配置IP地址和子網(wǎng)掩碼

  7、undo shutdown 打開(kāi)以太網(wǎng)端口

  8、shutdown 關(guān)閉以太網(wǎng)端口

  9、quit 退出當(dāng)前視圖模式

  10、ip route-static 192.168.2.0 255.255.255.0 192.168.12.2 description To.R2 配置靜態(tài)路由

  11、ip route-static 0.0.0.0 0.0.0.0 192.168.12.2 description To.R2 配置默認(rèn)的路由

  基本配置案例

  [Quidway]display version 顯示版本信息

  [Quidway]display current-configuration 顯示當(dāng)前配置

  [Quidway]display interfaces 顯示接口信息

  [Quidway]display ip route 顯示路由信息

  [Quidway]sysname aabbcc 更改主機(jī)名

  [Quidway]super passwrod 123456 設(shè)置口令

  [Quidway]interface serial0 進(jìn)入接口

  [Quidway-serial0]ip address

  [Quidway-serial0]undo shutdown 激活端口

  [Quidway]link-protocol hdlc 綁定hdlc協(xié)議

  [Quidway]user-interface vty 0 4

  [Quidway-ui-vty0-4]authentication-mode password

  [Quidway-ui-vty0-4]set authentication-mode password simple 2

  [Quidway-ui-vty0-4]user privilege level 3

  [Quidway-ui-vty0-4]quit

  [Quidway]debugging hdlc all serial0 顯示所有信息

  [Quidway]debugging hdlc event serial0 調(diào)試事件信息

  [Quidway]debugging hdlc packet serial0 顯示包的信息

  靜態(tài)路由配置案例:

  [Quidway]ip route-static {interface

  number|nexthop}[value][reject|blackhole]

  例如:

  [Quidway]ip route-static 129.1.0.0 16 10.0.0.

  [Quidway]ip route-static 129.1.0.0 255.255.0.0 10.0.0.

  [Quidway]ip route-static 129.1.0.0 16 Serial

  [Quidway]ip route-static 0.0.0.0 0.0.0.0 10.0.0.

  動(dòng)態(tài)路由配置案例(RIP):

  [Quidway]rip

  [Quidway]rip work

  [Quidway]rip input

  [Quidway]rip output

  [Quidway-rip]network 1.0.0.0 ;可以all

  [Quidway-rip]network 2.0.0.0

  [Quidway-rip]peer ip-address

  [Quidway-rip]summary

  [Quidway]rip version

  [Quidway]rip version 2 multicast

  [Quidway-Ethernet0]rip split-horizon ;水平分隔

  動(dòng)態(tài)路由配置案例(OSPF):

  [Quidway]router id A.B.C.D 配置路由器的ID

  [Quidway]ospf enable 啟動(dòng)OSPF協(xié)議

  [Quidway-ospf]import-route direct 引入直聯(lián)路由

  [Quidway-Serial0]ospf enable area 配置OSPF區(qū)域

  標(biāo)準(zhǔn)訪問(wèn)列表命令格式如下:

  acl [match-order config|auto] 默認(rèn)前者順序匹配。

  rule [normal|special]{permit|deny} [source source-addr source-wildcard|any] 例:

  [Quidway]acl 10

  [Quidway-acl-10]rule normal permit source 10.0.0.0 0.0.0.25

  [Quidway-acl-10]rule normal deny source any

  二、ACL配置

  擴(kuò)展訪問(wèn)控制列表配置命令

  1.配置TCP/UDP協(xié)議的擴(kuò)展訪問(wèn)列表:

  rule {normal|special}{permit|deny}{tcp|udp}source {

  wild>|any}destination |any}

  [operate]

  2.配置ICMP協(xié)議的擴(kuò)展訪問(wèn)列表:

  rule {normal|special}{permit|deny}icmp source {|any]destination {|any]

  [icmp-code] [logging]

  擴(kuò)展訪問(wèn)控制列表操作符的含義

  equal portnumber 等于

  greater-than portnumber 大于

  less-than portnumber 小于

  not-equal portnumber 不等

  range portnumber1 portnumber 區(qū)間

  3.擴(kuò)展訪問(wèn)控制列表案例

  [Quidway]acl 10

  [Quidway-acl-101]rule deny souce any destination any

  [Quidway-acl-101]rule permit icmp source any destination any icmp-type echo

  [Quidway-acl-101]rule permit icmp source any destination any icmp-type echo-reply

  [Quidway]acl 10

  [Quidway-acl-102]rule permit ip source 10.0.0.1 0.0.0.0 destination 202.0.0.1 0.0.0.0

  [Quidway-acl-102]rule deny ip source any destination any

  [Quidway]acl 103

  [Quidway-acl-103]rule permit tcp source any destination 10.0.0.1 0.0.0.0 destination-port equal ftp

  [Quidway-acl-103]rule permit tcp source any destination 10.0.0.2 0.0.0.0 destination-port equal www

  [Quidway]firewall enable

  [Quidway]firewall default permit|deny

  [Quidway]int e0

  [Quidway-Ethernet0]firewall packet-filter 101 inbound|outbound

  4. NAT的配置

  地址轉(zhuǎn)換配置案例

  [Quidway]firewall enable

  [Quidway]firewall default permit

  [Quidway]acl 10

  [Quidway-acl-101]rule deny ip source any destination any

  [Quidway-acl-101]rule permit ip source 129.38.1.4 0 destination any

  [Quidway-acl-101]rule permit ip source 129.38.1.1 0 destination any

  [Quidway-acl-101]rule permit ip source 129.38.1.2 0 destination any

  [Quidway-acl-101]rule permit ip source 129.38.1.3 0 destination any

  [Quidway]acl 10

  [Quidway-acl-102]rule permit tcp source 202.39.2.3 0 destination

  202.38.160.1 0

  [Quidway-acl-102]rule permit tcp source any destination 202.38.160.1 0 destination-port great-than

  1024

  [Quidway-Ethernet0]firewall packet-filter 101 inbound

  [Quidway-Serial0]firewall packet-filter 102 inbound

  [Quidway]nat address-group 202.38.160.101 202.38.160.103 pool

  [Quidway]acl

  [Quidway-acl-1]rule permit source 10.110.10.0 0.0.0.25

  [Quidway-acl-1]rule deny source any

  [Quidway-acl-1]int serial 0

  [Quidway-Serial0]nat outbound 1 address-group pool

  [Quidway-Serial0]nat server global 202.38.160.101 inside 10.110.10.1 ftp tcp

  [Quidway-Serial0]nat server global 202.38.160.102 inside 10.110.10.2 www tcp

  [Quidway-Serial0]nat server global 202.38.160.102 8080 inside 10.110.10.3 www tcp

  [Quidway-Serial0]nat server global 202.38.160.103 inside 10.110.10.4 smtp udp

  5. PPP驗(yàn)證配置:

  主驗(yàn)方:pap|chap

  [Quidway]local-user u2 password {simple|cipher} aaa

  [Quidway]interface serial 0

  [Quidway-serial0]ppp authentication-mode {pap|chap}

  [Quidway-serial0]ppp chap user u1 //pap時(shí),不用此句

  pap被驗(yàn)方:

  [Quidway]interface serial 0

  [Quidway-serial0]ppp pap local-user u2 password {simple|cipher} aaa

  chap被驗(yàn)方:

  [Quidway]interface serial 0

  [Quidway-serial0]ppp chap user u1

  [Quidway-serial0]local-user u2 password {simple|cipher} aaa

  ip http enable 開(kāi)啟一下

【H3C路由器配置命令】相關(guān)文章:

H3C路由器的配置命令07-12

H3C路由器基本配置命令10-22

Cisco路由器配置命令08-22

華為路由器配置命令大全10-03

h3c路由器配置08-31

路由器的基本配置及公用命令08-15

H3C交換機(jī)配置命令10-14

H3C用戶認(rèn)證的配置命令大全10-16

H3C常用查詢配置命令大全10-18

h3c交換機(jī)配置命令09-20