.
最终配置参考
第一章 eNSP及VRP基础操作
1.2 熟悉VRP基本操作
最终配置
sysname R1
header shell information \ header login information \#
clock timezone BJ add 08:00:00
clock daylight-saving-time Day Light Saving Time repeating 12:32 9-1 12:32 11-23 00:00 2005 2005 #
interface GigabitEthernet0/0/0 ip address 10.1.1.1 255.255.255.0 # Return
1.3 熟悉常用的IP相关命令
最终配置
sysname R1 #
interface GigabitEthernet0/0/0
ip address 10.0.1.254 255.255.255.0 #
interface GigabitEthernet0/0/1
ip address 10.0.2.254 255.255.255.0 .
.
# return
1.4 配置通过Telnet登录系统
最终配置
sysname R1 #
interface GigabitEthernet0/0/0 ip address 10.1.1.254 255.255.255.0 # Return
sysname R2 #
interface Ethernet0/0/0
ip address 10.1.1.1 255.255.255.0 # return
sysname R3 #
interface Ethernet0/0/0
ip address 10.1.1.2 255.255.255.0 # return
1.5 配置通过STelnet登录系统
最终配置
.
#
set cpu-usage threshold 80 restore 75 #
rsa peer-public-key 10.1.1.254 public-key-code begin 3047 0240
B910F7D8 EF50B04E CCF8692A 4F1B3FB3 202C3E66 B6D2C7EB FDBF0909 ED160F5E 76B5D916 CBB29432 F9044E04 8434B0AB E8FAB968 1672958B F732F788 0DA94F85 0203 010001
public-key-code end peer-public-key end #
interface GigabitEthernet0/0/0 ip address 10.1.1.1 255.255.255.0 #
ssh client 10.1.1.254 assign rsa-key 10.1.1.254 ssh client first-time enable
authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$ local-user admin service-type http
local-user huawei1 password cipher %$%$cRb~BL,]5D(!v-QiMgd$:RxE%$%$ local-user huawei1 privilege level 3 local-user huawei1 service-type ssh #
interface GigabitEthernet0/0/0
ip address 10.1.1.254 255.255.255.0 #
stelnet server enable #
user-interface vty 0 4 auth
protocol inbound ssh
.
.
1.6 配置通过FTP进行文件操作
最终配置
sysname R1 enable # aaa
local-user cipher %$%$%/xlTEcUeFU_=\local-user flash: local-user ftp #
interface GigabitEthernet0/0/0 ip address 10.0.1.254 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 10.0.2.254 255.255.255.0 # Return
第二章 静态路由
2.1 静态路由及默认路由基本配置
最终配置
sysname R1 #
interface Ethernet0/0/0
ip address 192.168.10.1 255.255.255.0 #
interface Serial0/0/0 link-protocol ppp
ip address 10.0.12.1 255.255.255.0 #
ip route-static 0.0.0.0 0.0.0.0 10.0.12.2 .
.
# Return
sysname R2 #
interface Serial0/0/0 link-protocol ppp
ip address 10.0.23.2 255.255.255.0 #
interface Serial0/0/1 link-protocol ppp
ip address 10.0.12.2 255.255.255.0 #
ip route-static 192.168.10.0 255.255.255.0 Serial0/0/1 ip route-static 192.168.20.0 255.255.255.0 10.0.23.3 # Return
sysname R3 #
interface Ethernet0/0/0
ip address 192.168.20.3 255.255.255.0 #
interface Serial0/0/1 link-protocol ppp
ip address 10.0.23.3 255.255.255.0 #
ip route-static 0.0.0.0 0.0.0.0 Serial0/0/1 # Return
2.2 浮动静态路由及负载均衡
最终配置
sysname R1 .