headerlogininformationHhelloH
clocktimezoneBJadd08:
00:
00
clockdaylight-saving-timeDayLightSavingTimerepeating12:
329-112:
3211-23
00:
0020052005
#
interfaceGigabitEthernet0/0/0
ipaddress255・255.255・0
#
Return
1.3熟悉常用的IP相关命令
最终配置
displaycurrent-configuration
[V200R003COO]
sysnameR1
interfaceGigabitEthernet0/0/0
ipaddress10.0.1.254255.255.255.0interfaceGigabitEthernet0/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
ipaddress255.255・255・0
#
return
displaycurrent-configuration
#
sysnameR3
#
interfaceEtherner0/0/0
ipaddress10.1.1.2255.255.255.0
return
1.5配置通过STelnet登录系统
最终配置
displaycurrent-configurationsysnameR1
setcpu-usagethreshold80restore75
rsapeer-publie-key10・l・J.・254
public-key-codebegin
3047
0240
B910F7D8EF50B04ECCF8692A4F1B3FB3202C3E66B6D2C7EBFDBF0909ED160F5E
76B5D916CBB29432F9044E048434B0ABE8FAB9681672958BF732F7880DA94F850203
010001
public-key-codeend
peer-public-keyend
#
interfaceGigabitEthernecO/O/O
ipaddress10.1.1.1255.255.255.0
#
sshclient10・l・J.・254assignrsa-key10・l.・l・254
sshclientfirst-timeenable
displaycurrent-configuration
sysnameR2aaa
authenticarion-schemedefaultauthorization-schemedefaultaccounting-schemedefaultdomaindefault
domaindefault_admin
local-user
adminpasswordcipher・Nt84DZ}e#<0'8bmE3Uw}%S%$
local-user
adminservice-typehttp
local-user
huaweilpasswordcipher%$%$cRb-BLz]5D(!
v-QiMgd$:
RxE%$%$
local-user
huaweilprivilegelevel3
local-user
huaweilservice-typessh
interfaceGigabitEthernet0/0/0
ipaddress10.1.1.254255.255.255.0
#
stelnetserverenableuser-interfacevty04
auth
protocolinboundssh
1.6配置通过FTP进行文件操作
最终配置
displaycurrent-configuration
[V200R003COQ]
sysnameR1
ftpserver
enable
aaa
local-user
ftppasswordcipher%S%$%/xlTEcUeFU_="WB+iPI_n:
M%S%S
local-user
ftpftp-directoryflash:
local-user
ftpservice-typeftp
interfaceGigabitEthernet0/0/0ipaddress254255.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
#
interfaceSer±al0/0/0
link-protocolppp
ipaddress丄0・0・12・1255.255・255・0iproute-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/l
link-protocolppp
ipaddress10.0.12.2255.255.255.0
#
iproute-static192.168.10.0255.255.255.0Serial0/0/l
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/l
Return
2.2浮动静态路由及负载均衡
displaycurrent-configurationsysnameR1interfaceGigabitEthernecO/O/O
ipaddress192.168.10.1255.255.255.0interfaceSeriall/0/0
link-protocolppp
ipaddress丄0・:
1・].2・1255.255・255・0
interfaceSeriall/0/1
link-protocolppp
ipaddress255・255・255・0
#
iproute-static192・168・20・0255・255・255・010.1.13.3iproute-static192・168・20・0255・255・255・0•丄2・2
#
Return
displaycurrent-configuration
sysnameR2
interfaceSeriall/0/0
link-protocolppp
ipaddress10.1.12.2255.255.255.0
#
interfaceSeriall/0/1
link-protocolppp
ipaddress10.1.23.2255.255.255.0
#
iproute-static192.168.10.0255・255・255・0
iproute-static192・168・20・0255・255・255・010・l・23・3
Return
displaycurrent-configuration
#
sysnameR3
#
interfaceGigabitEthernet0/0/0
ipaddress192.168.20.1255.255.255.0
#
interfaceSeriall/0/0
link-protocolppp
ipaddress10.1.23.3255.255.255.0interfaceSeriall/0/1
link-protocolppp
ipaddress10.1.13.3255.255.255.0
iproute-static192・168・10・0255・255・255・010・1.・丄3・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
#
interfaceLoopBackO
ipaddress10・0・J.・J.255.255・255・0
rip1
version2
netx^ork10・0・0・0
#
return
displaycurrent-configuration
#
sysnameR2
#
interfaceEtherner0/0/0
ipaddress10.0.12.2255.255.255.0
interfaceLoopBackO
ipaddress10.0.2.2255.255.255.0rip1
version2
network10・0・0・0return
3.2配置RIPv2的认证
最终配置
displaycurrent-configuration
sysnameR1
#
interfaceGigabitEthernetO/O/O
ipaddress192・J.68・10・1255.255・255・0
#
interfaceGigabitEthernetO/O/1
link-protocolppp
ipaddress10.0.12.1255.255.255.0
ripauthentication-modema5nonstandardSGOOD_=eh*)f8\-B3e~&Z5%#1
#
rip1
version2
network192.168.10.0
network丄0・0・0・0
#
return
displaycurrent-configuration
#
sysnameR2
#
interfaceGigabitEthernet0/0/0
ipaddress192.168.20.1255.255.255.0
interfaceGigabitEthernetO/O/1
link-protocolppp
ipaddress10.0.12.2255.255.255.0
ripauthenticateion-modema5nonstandard&-nhYkNR4BC/%TLlYj-OAF#
#
rip1
version2
network192.168.20.0
network10・0・0・0
return
displaycurrent-configuration
sysnameR3
InterfaceloopbackO
ipaddress192.168.10.10255.255.255.0
Interfaceloopbackl
ipaddress192.168.20.20255.255.255.0interfaceGigabitEthernet0/0/1
link-protocolppp
ipaddress10.0.12.1255.255.255.0
ripauthentication-modema5nonstandardSGOOD_=eh*)f8\-B3e~&Z5%#1
#
rip1
version
2
network
192.168.10.0
network
192.168.20.0
network
10.0.0.0
Return
3.3RIP路由协议的汇总
displaycurrent-configuration
#
sysnameR1
interfaceSer±al0/0/0
link-protocolppp
ipaddress192.168.12.1255.255.255.0rip1
version2
netx^ork192・168・12・0
#
return
displaycurrent-configuration
sysnameR2interfaceSerialO/O/O
link-protocolppp
ipaddress192.168.23.2255.255.255.0
interfaceSerial0/0/l
link-protocolppp
ipaddress192.168.12.2255.255.255.0
#
rip1
version2
netx^ork192・168・12・0
netx^ork192・168・23・0
#
return
displaycurrent-configuration
sysnameR3
interfaceSerial0/0/l
link-protocolppp
ipaddress192.168.23.3255.255.255.0
ripsummary-address3・3・0・0255・255・252・0
#
interfaceLoopBackO
ipaddress3・3・0・3255・255・255・0
#
interfaceLoopBackl
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
netxreturn
3.4配置RIP的版本兼容.走时器及协议优先级
最终配置
displaycurrent-configuration
sysnameR1
interfaceGigabitEthernetO/O/O
ipaddress丄0・0・12・1.255.255・255・0
interfaceGigabitEthernetO/O/1
ipaddress192.168.10.1255.255.255.0
#
rip1
version2
netx^orklO.O.O.O
netx^ork192.168.10.0
preference90
timersrip2012060
return
displaycurrent-configuration
#
sysnameR2
#
interfaceGigabitEthernetO/O/O
ipaddress10.0.12.2255.255.255.0
#
interfaceGigabitEthernetO/O/1ipaddress192.168.20.1255.255.255.0
rip1
version2
netx^ork10・0・0・0
netx^ork192.168.20.0
#
return
3.5配置RIP抑制接口及单播更新
最终配置
displaycurrent-configuration
#
sysnameR1
#
interfaceGigabitEthernet0/0/1
ipaddress172.16.1.254255.255.255.0rip1
peer172.16.1.100
peer172.16.1.200
netx^ork172・丄6•0・0
silent-interfaceGigabitEthernet0/0/1
#
Return
displaycurrent-configuration
#
sysnameR2
interfaceEthernetl/0/1
ipaddress172.16.1.100255.255.255.0
interfaceEthernetl/0/0
ipaddress172.16.2.254255.255.255.0
#
rip1
peer172.16.1.254
peer172.16.1.200
netx^ork172・16・0・0
silent-interfaceEthernetl/0/0
silent-interfaceEthernetl/0/1
#
Return
displaycurrent-configuration
sysnameR3
#
interfaceEthernetl/0/1
ipaddress172.16.1.200255.255.255.0
undoripoutput
interfaceEthernetl/O/O
ipaddress192.168.1.254255.255.255.0
#
rip1
peer172.16.1.254
netx^ork172•丄6・0・0
netx^ork192・168・1.・0
return
3.6RIP与不连续子网
最终配置
displaycurrent-configuration
#
interfaceEthernetO/O/O
ipaddress10.0.12.1255.255.255.0
rip1
undosummary
version2
netx^ork10・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
netx^ork10・0・0・0
netx^ork192・168・23・0
sysnameR3interfaceSerialO/O/O
link-protocolppp
ipaddress192.168.23.3255.255.255.0
interfaceSerial0/0/l
link-protocolppp
ipaddress192.168.34.3255.255.255.0
#
rip1
undosummary
version2
netx^ork192・168・23・0
network192.168.34.0
#
displaycurrent-configuration
sysnameR4
interfaceEthernet0/0/0
ipaddress丄0・0・45・4255.255・255・0
interfaceSerial0/0/l
link-protocolppp
ipaddress192.168.34.4255.255.255.0
#
rip1
undosummary
version2
netx^ork192・168.34.0
netx^orklO.O.O.O
displaycurrent-configuration
sysnameR5
#
interfaceEthernet0/0/0
ipaddress10.0.45.5255.255.255.0
#
rip1
undosummary
version2
netx3.7RIP的水平分割及触发更新
最终配置
displaycurrent-configuration
sysnameR1
#
interfaceGigabitEthernet0/0/0
ipaddress172.16.1.1255.255.255.0
#
interfaceGigabitEthernecO/O/2
ipaddress172.16.2.1255.255.255.0
undoripsplit-horizon
rip1
v