《华为技术认证HCNA网络技术实验的指南》参考配置.docx
《《华为技术认证HCNA网络技术实验的指南》参考配置.docx》由会员分享,可在线阅读,更多相关《《华为技术认证HCNA网络技术实验的指南》参考配置.docx(128页珍藏版)》请在冰豆网上搜索。
《华为技术认证HCNA网络技术实验的指南》参考配置
最终配置参考
第一章eNSP及VRP基础操作
1.2熟悉VRP基本操作
最终配置
displaycurrent-configuration
[V200R003C00]
#
sysnameR1
headershellinformation"WelcometoHuaweicertificationlab"
headerlogininformation"hello"
#
clocktimezoneBJadd08:
00:
00
clockdaylight-saving-timeDayLightSavingTimerepeating12:
329-112:
3211-2300:
0020052005
#
interfaceGigabitEthernet0/0/0
ipaddress10.1.1.1255.255.255.0
#
Return
1.3熟悉常用的IP相关命令
最终配置
displaycurrent-configuration
[V200R003C00]
#
sysnameR1
#
interfaceGigabitEthernet0/0/0
ipaddress10.0.1.254255.255.255.0
#
interfaceGigabitEthernet0/0/1
ipaddress10.0.2.254255.255.255.0
#
return
1.4配置通过Telnet登录系统
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceGigabitEthernet0/0/0
ipaddress10.1.1.254255.255.255.0
#
Return
displaycurrent-configuration
#
sysnameR2
#
interfaceEthernet0/0/0
ipaddress10.1.1.1255.255.255.0
#
return
displaycurrent-configuration
#
sysnameR3
#
interfaceEthernet0/0/0
ipaddress10.1.1.2255.255.255.0
#
return
1.5配置通过STelnet登录系统
最终配置
displaycurrent-configuration
sysnameR1
#
setcpu-usagethreshold80restore75
#
rsapeer-public-key10.1.1.254
public-key-codebegin
3047
0240
B910F7D8EF50B04ECCF8692A4F1B3FB3202C3E66B6D2C7EBFDBF0909ED160F5E
76B5D916CBB29432F9044E048434B0ABE8FAB9681672958BF732F7880DA94F85
0203
010001
public-key-codeend
peer-public-keyend
#
interfaceGigabitEthernet0/0/0
ipaddress10.1.1.1255.255.255.0
#
sshclient10.1.1.254assignrsa-key10.1.1.254
sshclientfirst-timeenable
displaycurrent-configuration
sysnameR2
#
aaa
authentication-schemedefault
authorization-schemedefault
accounting-schemedefault
domaindefault
domaindefault_admin
local-useradminpasswordcipher%$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-useradminservice-typehttp
local-userhuawei1passwordcipher%$%$cRb~BL,]5D(!
v-QiMgd$:
RxE%$%$
local-userhuawei1privilegelevel3
local-userhuawei1service-typessh
#
interfaceGigabitEthernet0/0/0
ipaddress10.1.1.254255.255.255.0
#
stelnetserverenable
#
user-interfacevty04
auth
protocolinboundssh
1.6配置通过FTP进行文件操作
最终配置
displaycurrent-configuration
[V200R003C00]
#
sysnameR1
ftpserverenable
#
aaa
local-userftppasswordcipher%$%$%/xlTEcUeFU_="WB+iPI_n:
M%$%$
local-userftpftp-directoryflash:
local-userftpservice-typeftp
#
interfaceGigabitEthernet0/0/0
ipaddress10.0.1.254255.255.255.0
#
interfaceGigabitEthernet0/0/1
ipaddress10.0.2.254255.255.255.0
#
Return
第二章静态路由
2.1静态路由及默认路由基本配置
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceEthernet0/0/0
ipaddress192.168.10.1255.255.255.0
#
interfaceSerial0/0/0
link-protocolppp
ipaddress10.0.12.1255.255.255.0
#
iproute-static0.0.0.00.0.0.010.0.12.2
#
Return
displaycurrent-configuration
#
sysnameR2
#
interfaceSerial0/0/0
link-protocolppp
ipaddress10.0.23.2255.255.255.0
#
interfaceSerial0/0/1
link-protocolppp
ipaddress10.0.12.2255.255.255.0
#
iproute-static192.168.10.0255.255.255.0Serial0/0/1
iproute-static192.168.20.0255.255.255.010.0.23.3
#
Return
displaycurrent-configuration
#
sysnameR3
#
interfaceEthernet0/0/0
ipaddress192.168.20.3255.255.255.0
#
interfaceSerial0/0/1
link-protocolppp
ipaddress10.0.23.3255.255.255.0
#
iproute-static0.0.0.00.0.0.0Serial0/0/1
#
Return
2.2浮动静态路由及负载均衡
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceGigabitEthernet0/0/0
ipaddress192.168.10.1255.255.255.0
#
interfaceSerial1/0/0
link-protocolppp
ipaddress10.1.12.1255.255.255.0
#
interfaceSerial1/0/1
link-protocolppp
ipaddress10.1.13.1255.255.255.0
#
iproute-static192.168.20.0255.255.255.010.1.13.3
iproute-static192.168.20.0255.255.255.010.1.12.2
#
Return
displaycurrent-configuration
#
sysnameR2
#
interfaceSerial1/0/0
link-protocolppp
ipaddress10.1.12.2255.255.255.0
#
interfaceSerial1/0/1
link-protocolppp
ipaddress10.1.23.2255.255.255.0
#
iproute-static192.168.10.0255.255.255.010.1.12.1
iproute-static192.168.20.0255.255.255.010.1.23.3
#
Return
displaycurrent-configuration
#
sysnameR3
#
interfaceGigabitEthernet0/0/0
ipaddress192.168.20.1255.255.255.0
#
interfaceSerial1/0/0
link-protocolppp
ipaddress10.1.23.3255.255.255.0
#
interfaceSerial1/0/1
link-protocolppp
ipaddress10.1.13.3255.255.255.0
#
iproute-static192.168.10.0255.255.255.010.1.13.1
iproute-static192.168.10.0255.255.255.010.1.23.2
#
Return
第三章RIP
3.1RIP路由协议基本配置
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceEthernet0/0/0
ipaddress10.0.12.1255.255.255.0
#
interfaceLoopBack0
ipaddress10.0.1.1255.255.255.0
#
rip1
version2
network10.0.0.0
#
return
displaycurrent-configuration
#
sysnameR2
#
interfaceEthernet0/0/0
ipaddress10.0.12.2255.255.255.0
#
interfaceLoopBack0
ipaddress10.0.2.2255.255.255.0
#
rip1
version2
network10.0.0.0
#
return
3.2配置RIPv2的认证
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceGigabitEthernet0/0/0
ipaddress192.168.10.1255.255.255.0
#
interfaceGigabitEthernet0/0/1
link-protocolppp
ipaddress10.0.12.1255.255.255.0
ripauthentication-modemd5nonstandard$GOOD_=eh*)f8\~B3e~&Z5%#1
#
rip1
version2
network192.168.10.0
network10.0.0.0
#
return
displaycurrent-configuration
#
sysnameR2
#
interfaceGigabitEthernet0/0/0
ipaddress192.168.20.1255.255.255.0
#
interfaceGigabitEthernet0/0/1
link-protocolppp
ipaddress10.0.12.2255.255.255.0
ripauthentication-modemd5nonstandard&-nhYkNR4BC,%TLlYj-OAF#
#
rip1
version2
network192.168.20.0
network10.0.0.0
#
return
displaycurrent-configuration
#
sysnameR3
#
Interfaceloopback0
ipaddress192.168.10.10255.255.255.0
#
Interfaceloopback1
ipaddress192.168.20.20255.255.255.0
#
interfaceGigabitEthernet0/0/1
link-protocolppp
ipaddress10.0.12.1255.255.255.0
ripauthentication-modemd5nonstandard$GOOD_=eh*)f8\~B3e~&Z5%#1
#
rip1
version2
network192.168.10.0
network192.168.20.0
network10.0.0.0
#
Return
3.3RIP路由协议的汇总
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceSerial0/0/0
link-protocolppp
ipaddress192.168.12.1255.255.255.0
#
rip1
version2
network192.168.12.0
#
return
displaycurrent-configuration
#
sysnameR2
#
interfaceSerial0/0/0
link-protocolppp
ipaddress192.168.23.2255.255.255.0
#
interfaceSerial0/0/1
link-protocolppp
ipaddress192.168.12.2255.255.255.0
#
rip1
version2
network192.168.12.0
network192.168.23.0
#
return
displaycurrent-configuration
#
sysnameR3
#
interfaceSerial0/0/1
link-protocolppp
ipaddress192.168.23.3255.255.255.0
ripsummary-address3.3.0.0255.255.252.0
#
interfaceLoopBack0
ipaddress3.3.0.3255.255.255.0
#
interfaceLoopBack1
ipaddress3.3.1.3255.255.255.0
#
interfaceLoopBack2
ipaddress3.3.2.3255.255.255.0
#
interfaceLoopBack3
ipaddress3.3.3.3255.255.255.0
#
rip1
undosummary
version2
network192.168.23.0
network3.0.0.0
#
return
3.4配置RIP的版本兼容、定时器及协议优先级
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceGigabitEthernet0/0/0
ipaddress10.0.12.1255.255.255.0
#
interfaceGigabitEthernet0/0/1
ipaddress192.168.10.1255.255.255.0
#
rip1
version2
network10.0.0.0
network192.168.10.0
preference90
timersrip2012060
#
return
displaycurrent-configuration
#
sysnameR2
#
interfaceGigabitEthernet0/0/0
ipaddress10.0.12.2255.255.255.0
#
interfaceGigabitEthernet0/0/1
ipaddress192.168.20.1255.255.255.0
#
rip1
version2
network10.0.0.0
network192.168.20.0
#
return
3.5配置RIP抑制接口及单播更新
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceGigabitEthernet0/0/1
ipaddress172.16.1.254255.255.255.0
#
rip1
peer172.16.1.100
peer172.16.1.200
network172.16.0.0
silent-interfaceGigabitEthernet0/0/1
#
Return
displaycurrent-configuration
#
sysnameR2
#
interfaceEthernet1/0/1
ipaddress172.16.1.100255.255.255.0
#
interfaceEthernet1/0/0
ipaddress172.16.2.254255.255.255.0
#
rip1
peer172.16.1.254
peer172.16.1.200
network172.16.0.0
silent-interfaceEthernet1/0/0
silent-interfaceEthernet1/0/1
#
Return
displaycurrent-configuration
#
sysnameR3
#
interfaceEthernet1/0/1
ipaddress172.16.1.200255.255.255.0
undoripoutput
#
interfaceEthernet1/0/0
ipaddress192.168.1.254255.255.255.0
#
rip1
peer172.16.1.254
network172.16.0.0
network192.168.1.0
#
return
3.6RIP与不连续子网
最终配置
displaycurrent-configuration
#
interfaceEthernet0/0/0
ipaddress10.0.12.1255.255.255.0
#
rip1
undosummary
version2
network10.0.0.0
#
displaycurrent-configuration
#
sysnameR2
#
interfaceEthernet0/0/0
ipaddress10.0.12.2255.255.255.0
#
interfaceSerial0/0/0
link-protocolppp
ipaddress192.168.23.2255.255.255.0
#
rip1
undosummary
version2
network10.0.0.0
network192.168.23.0
#
displaycurrent-configuration
#
sysnameR3
#
interfaceSerial0/0/0
link-protocolppp
ipaddress192.168.23.3255.255.255.0
#
interfaceSerial0/0/1
link-protocolppp
ipaddress192.168.34.3255.255.255.0
#
rip1
undosummary
version2
network192.168.23.0
network192.168.34.0
#
displaycurrent-configuration
#
sysnameR4
interfaceEthernet0/0/0
ipaddress10.0.45.4255.255.255.0
interfaceSerial0/0/1
link-protocolppp
ipaddress192.168.34.4255.255.255.0
#
rip1
undosummary
version2
network192.168.34.0
network10.0.0.0