當前位置:才華齋>IT認證>H3C認證>

H3C路由器常用配置命令

H3C認證 閱讀(2.07W)

H3C路由器怎麼配置?配置基本命令有哪些?下面跟yjbys小編一起來學習一下吧!

H3C路由器常用配置命令

1、system-view 進入系統檢視模式

2、sysname R1 為裝置命名為R1

3、display ip routing-table 顯示當前路由表

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

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

6、 ip address 配置IP地址和子網掩碼

7、 undo shutdown 開啟乙太網埠

8、 shutdown 關閉乙太網埠

9、 quit 退出當前檢視模式

10、 ip route-static description To.R2 配置靜態路由

11、 ip route-static description To.R2 配置預設的路由

H3C S3100 Switch

H3C S3600 Switch

H3C MSR 20-20 Router

##########################################################################################

1、調整超級終端的顯示字號;

2、捕獲超級終端操作命令列,以備日後查對;

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

4、複製命令到超級終端命令列,貼上到主機;

5、交換機清除配置 :reset save ;reboot ;

6、路由器、交換機配置時不能掉電,連通測試前一定要

檢查網路的連通性,不要犯最低階的錯誤。

7、 等同 ;在配置交換機和路由器時, 可以寫成:

24

8、裝置命名規則:地名-裝置名-系列號例:PingGu-R-S3600

H3C交換機的一些簡單配置

2009-11-25 18:49

這裡使用的H3C交換機是H126A,僅僅只做了最基本的'配置以滿足使用。

配置中可以通過display current-configura命令來顯示當前使用的配置內容。

# 配置VLAN 1

system-view

System View: return to User View with Ctrl+Z.

[Sysname]vlan 1

[Sysname-vlan1] quit

[Sysname]management-vlan 1

[Sysname]interface Vlan-interface 1

[Sysname-Vlan-interface1] ip address

# 顯示VLAN 介面1 的相關資訊。

display ip interface Vlan-interface 1

# 建立VLAN(H3C不支援cisco的VTP,所以只能新增靜態VLAN)

system-view

System View: return to User View with Ctrl+Z.

[H3C_TEST]vlan 99

[H3C_TEST-vlan99]name seicoffice

[H3C_TEST-vlan99]quit

# 把交換機的端埠劃分到相應的Vlan中

[H3C_TEST]interface ethernet1/0/2       //進入埠模式

[H3C_TEST-Ethernet1/0/2]port link-type access //設定埠的型別為access

[H3C_TEST-Ethernet1/0/2]port access vlan 99  //把當前埠劃到vlan 99

[H3C_TEST]vlan 99

[H3C_TEST-vlan99]port ethernet1/0/1 to ethernet1/0/24  //把以及網埠1/0/1到1/0/24劃到vlan99

[H3C_TEST-vlan99]quit

[H3C_TEST-GigabitEthernet1/2/1]port trunk permit vlan 1 99 // {ID|All} 設定trunk埠允許通過的VLAN

-------------------------------------------------------------------------------------------------------

# 配置本地使用者

system-view

System View: return to User View with Ctrl+Z.

[Sysname]local-user h3c

New local user added.

[Sysname-luser-h3c]service-type telnet level 3

[Sysname-luser-h3c]password simple h3c

# 配置歡迎資訊

[H3C_TEST]header login %Welcome to login h3c!%

# 配置使用者認證方式telnet(vty 0-4)

[H3C_TEST]user-interface vty 0 4

[H3C_TEST-ui-vty0-4]authentication-mode scheme

[H3C_TEST-ui-vty0-4]protocol inbound telnet

[H3C_TEST-ui-vty0-4]super authentication-mode super-password

[H3C_TEST-ui-vty0-4]quit

[H3C_TEST]super password level 3 simple h3c //使用者登陸後提升許可權的密碼

# 配置Radius策略

[H3C_TEST]radius scheme radius1

New Radius scheme

[H3C_TEST-radius-radius1]primary authentication 1645

[H3C_TEST-radius-radius1]primary accounting 1646

[H3C_TEST-radius-radius1]secondary authentication 1645

[H3C_TEST-radius-radius1]secondary accounting 1646

[H3C_TEST-radius-radius1]timer 5

[H3C_TEST-radius-radius1]key authentication h3c

[H3C_TEST-radius-radius1]key accounting h3c

[H3C_TEST-radius-radius1]server-type extended

[H3C_TEST-radius-radius1]user-name-format without-domain

# 配置域

[H3C_TEST]domain h3c

[H3C_TEST-isp-h3c]authentication radius-scheme radius1 local

[H3C_TEST-isp-h3c]scheme radius-scheme radius1 local

[H3C_TEST]domain default enable h3c

# 配置在遠端認證失敗時,本地認證的key

[H3C_TEST]local-server nas-ip key h3c