华为Rip实验练习.docx
《华为Rip实验练习.docx》由会员分享,可在线阅读,更多相关《华为Rip实验练习.docx(27页珍藏版)》请在冰豆网上搜索。
华为Rip实验练习
要求:
配置以上设备接口IP,并配置Rip,关闭路由汇总,使PC1与PC2实现互通
配置如下:
clo
clockd
clockdatetime10:
32:
002017-03-08
sy
system-view
Entersystemview,returnuserviewwithCtrl+Z.
[Huawei]
[Huawei]sy
[Huawei]sysnameR1
[R1]
[R1]su
[R1]superp
[R1]superpasswordc
[R1]superpasswordcipher123456
[R1]
[R1]us
[R1]user-i
[R1]user-interfacev
[R1]user-interfacevty04
[R1-ui-vty0-4]
[R1-ui-vty0-4]auth
[R1-ui-vty0-4]authentication-modep
[R1-ui-vty0-4]authentication-modepassword
Pleaseconfiguretheloginpassword(maximumlength16):
123456
[R1-ui-vty0-4]
[R1-ui-vty0-4]se
[R1-ui-vty0-4]setauth
[R1-ui-vty0-4]setauthenticationp
[R1-ui-vty0-4]setauthenticationpasswordc
[R1-ui-vty0-4]setauthenticationpasswordcipher123456
[R1-ui-vty0-4]
[R1-ui-vty0-4]q
[R1]
[R1]us
[R1]user-i
[R1]user-interfacec
[R1]user-interfaceconsole0
[R1-ui-console0]
[R1-ui-console0]auth
[R1-ui-console0]authentication-modep
[R1-ui-console0]authentication-modepassword
Pleaseconfiguretheloginpassword(maximumlength16):
123456
[R1-ui-console0]
[R1-ui-console0]se
[R1-ui-console0]setauth
[R1-ui-console0]setauthenticationp
[R1-ui-console0]setauthenticationpasswordc
[R1-ui-console0]setauthenticationpasswordcipher123456
[R1-ui-console0]q
[R1]
[R1]aaa
[R1-aaa]lo
[R1-aaa]local-useradminpa
[R1-aaa]local-useradminpasswordc
[R1-aaa]local-useradminpasswordcipheradmin123
[R1-aaa]
[R1-aaa]lo
[R1-aaa]local-useradminser
[R1-aaa]local-useradminservice-typet
[R1-aaa]local-useradminservice-typetelnet
[R1-aaa]
[R1-aaa]q
[R1]
[R1]intg0/0/0
[R1-GigabitEthernet0/0/0]ipadd192.168.1.25424
[R1-GigabitEthernet0/0/0]
Mar8201710:
45:
41-08:
00R1%%01IFNET/4/LINK_STATE(l)[0]:
ThelineprotocolIP
ontheinterfaceGigabitEthernet0/0/0hasenteredtheUPstate.
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]un
[R1-GigabitEthernet0/0/0]undosh
[R1-GigabitEthernet0/0/0]undoshutdown
Info:
InterfaceGigabitEthernet0/0/0isnotshutdown.
[R1-GigabitEthernet0/0/0]q
[R1]
[R1]intg0/0/1
[R1-GigabitEthernet0/0/1]ipadd192.168.12.124
[R1-GigabitEthernet0/0/1]
Mar8201710:
46:
24-08:
00R1%%01IFNET/4/LINK_STATE(l)[1]:
ThelineprotocolIP
ontheinterfaceGigabitEthernet0/0/1hasenteredtheUPstate.
[R1-GigabitEthernet0/0/1]
[R1-GigabitEthernet0/0/1]un
[R1-GigabitEthernet0/0/1]undosh
[R1-GigabitEthernet0/0/1]undoshutdown
Info:
InterfaceGigabitEthernet0/0/1isnotshutdown.
[R1-GigabitEthernet0/0/1]
[R1-GigabitEthernet0/0/1]q
[R1]
[R1]disipintbr
*down:
administrativelydown
^down:
standby
(l):
loopback
(s):
spoofing
ThenumberofinterfacethatisUPinPhysicalis3
ThenumberofinterfacethatisDOWNinPhysicalis1
ThenumberofinterfacethatisUPinProtocolis3
ThenumberofinterfacethatisDOWNinProtocolis1
InterfaceIPAddress/MaskPhysicalProtocol
GigabitEthernet0/0/0192.168.1.254/24upup
GigabitEthernet0/0/1192.168.12.1/24upup
GigabitEthernet0/0/2unassigneddowndown
NULL0unassignedupup(s)
[R1]q
save
Thecurrentconfigurationwillbewrittentothedevice.
Areyousuretocontinue?
(y/n)[n]:
y
Itwilltakeseveralminutestosaveconfigurationfile,pleasewait..........
Configurationfilehadbeensavedsuccessfully
Note:
Theconfigurationfilewilltakeeffectafterbeingactivated
Pleasecheckwhethersystemdatahasbeenchanged,andsavedataintime
Configurationconsoletimeout,pleasepressanykeytologon
Password:
sy
system-view
Entersystemview,returnuserviewwithCtrl+Z.
[R1]rip
[R1-rip-1]ver
[R1-rip-1]verify-source
[R1-rip-1]ver
[R1-rip-1]version2
[R1-rip-1]un
[R1-rip-1]undosum
[R1-rip-1]undosummary
[R1-rip-1]
[R1-rip-1]net
[R1-rip-1]network192.168.1.0
[R1-rip-1]
[R1-rip-1]net
[R1-rip-1]network192.168.12.0
[R1-rip-1]
[R1-rip-1]q
[R1]
[R1]q
save
Thecurrentconfigurationwillbewrittentothedevice.
Areyousuretocontinue?
(y/n)[n]:
y
Itwilltakeseveralminutestosaveconfigurationfile,pleasewait.........
Configurationfilehadbeensavedsuccessfully
Note:
Theconfigurationfilewilltakeeffectafterbeingactivated
dis
displayiprout
displayiprouting-table
RouteFlags:
R-relay,D-downloadtofib
------------------------------------------------------------------------------
RoutingTables:
Public
Destinations:
10Routes:
10
Destination/MaskProtoPreCostFlagsNextHopInterface
127.0.0.0/8Direct00D127.0.0.1InLoopBack0
127.0.0.1/32Direct00D127.0.0.1InLoopBack0
127.255.255.255/32Direct00D127.0.0.1InLoopBack0
192.168.1.0/24Direct00D192.168.1.254GigabitEthernet
0/0/0
192.168.1.254/32Direct00D127.0.0.1GigabitEthernet
0/0/0
192.168.1.255/32Direct00D127.0.0.1GigabitEthernet
0/0/0
192.168.12.0/24Direct00D192.168.12.1GigabitEthernet
0/0/1
192.168.12.1/32Direct00D127.0.0.1GigabitEthernet
0/0/1
192.168.12.255/32Direct00D127.0.0.1GigabitEthernet
0/0/1
255.255.255.255/32Direct00D127.0.0.1InLoopBack0
Password:
Password:
Password:
ping192.168.2.254
PING192.168.2.254:
56databytes,pressCTRL_Ctobreak
Replyfrom192.168.2.254:
bytes=56Sequence=1ttl=254time=60ms
Replyfrom192.168.2.254:
bytes=56Sequence=2ttl=254time=40ms
Replyfrom192.168.2.254:
bytes=56Sequence=3ttl=254time=40ms
Replyfrom192.168.2.254:
bytes=56Sequence=4ttl=254time=40ms
Replyfrom192.168.2.254:
bytes=56Sequence=5ttl=254time=30ms
---192.168.2.254pingstatistics---
5packet(s)transmitted
5packet(s)received
0.00%packetloss
round-tripmin/avg/max=30/42/60ms
ping192.168.2.1
PING192.168.2.1:
56databytes,pressCTRL_Ctobreak
Requesttimeout
Replyfrom192.168.2.1:
bytes=56Sequence=2ttl=126time=40ms
Replyfrom192.168.2.1:
bytes=56Sequence=3ttl=126time=50ms
Replyfrom192.168.2.1:
bytes=56Sequence=4ttl=126time=30ms
Replyfrom192.168.2.1:
bytes=56Sequence=5ttl=126time=40ms
---192.168.2.1pingstatistics---
5packet(s)transmitted
4packet(s)received
20.00%packetloss
round-tripmin/avg/max=30/40/50ms
clo
clockd
clockdatetime11:
05:
002017-03-08
sy
system-view
Entersystemview,returnuserviewwithCtrl+Z.
[Huawei]
[Huawei]sy
[Huawei]sysnameR2
[R2]su
[R2]superp
[R2]superpasswordc
[R2]superpasswordcipher123456
[R2]
[R2]us
[R2]user-i
[R2]user-interfacev
[R2]user-interfacevty04
[R2-ui-vty0-4]auth
[R2-ui-vty0-4]authentication-modep
[R2-ui-vty0-4]authentication-modepassword
Pleaseconfiguretheloginpassword(maximumlength16):
123456
[R2-ui-vty0-4]se
[R2-ui-vty0-4]setauth
[R2-ui-vty0-4]setauthenticationp
[R2-ui-vty0-4]setauthenticationpasswordc
[R2-ui-vty0-4]setauthenticationpasswordcipher123456
[R2-ui-vty0-4]q
[R2]
[R2]us
[R2]user-i
[R2]user-interfacec
[R2]user-interfaceconsole0
[R2-ui-console0]auth
[R2-ui-console0]authentication-modep
[R2-ui-console0]authentication-modepassword
Pleaseconfiguretheloginpassword(maximumlength16):
123456
[R2-ui-console0]se
[R2-ui-console0]setauth
[R2-ui-console0]setauthenticationp
[R2-ui-console0]setauthenticationpasswordc
[R2-ui-console0]setauthenticationpasswordcipher123456
[R2-ui-console0]q
[R2]
[R2]aaa
[R2-aaa]lo
[R2-aaa]local-useradminp
[R2-aaa]local-useradminpasswordc
[R2-aaa]local-useradminpasswordcipheradmin1234
[R2-aaa]
[R2-aaa]lo
[R2-aaa]local-useradminser
[R2-aaa]local-useradminservice-typetel
[R2-aaa]local-useradminservice-typetelnet
[R2-aaa]
[R2-aaa]q
[R2]
[R2]intg
[R2]intGigabitEthernet0/0/0
[R2-GigabitEthernet0/0/0]ipadd192.168.12.224
[R2-GigabitEthernet0/0/0]
Mar8201711:
14:
56-08:
00R2%%01IFNET/4/LINK_STATE(l)[0]:
ThelineprotocolIP
ontheinterfaceGigabitEthernet0/0/0hasenteredtheUPstate.
[R2-GigabitEthernet0/0/0]un
[R2-GigabitEthernet0/0/0]undosh
[R2-GigabitEthernet0/0/0]undoshutdown
Info:
InterfaceGigabitEthernet0/0/0isnotshutdown.
[R2-GigabitEthernet0/0/0]q
[R2]
[R2]intg0/0/1
[R2-GigabitEthernet0/0/1]ipadd192.168.23.124
[R2-GigabitEthernet0/0/1]
Mar8201711:
17:
05-08:
00R2%%01IFNET/4/LINK_STATE(l)[1]:
ThelineprotocolIP
ontheinterfaceGigabitEthernet0/0/1hasenteredtheUPstate.
[R2-GigabitEthernet0/0/1]un
[R2-GigabitEthernet0/0/1]undosh
[R2-GigabitEthernet0/0/1]undoshutdown
Info:
InterfaceGigabitEthernet0/0/1isnotshutdown.
[R2-GigabitEthernet0/0/1]q
[R2]
[R2]disipintbr
*down:
administrativelydown
^down:
standby
(l):
loopback
(s):
spoofing
ThenumberofinterfacethatisUPinPhysicalis3
ThenumberofinterfacethatisDOWNinPhysicalis1
ThenumberofinterfacethatisUPinProtocolis3
ThenumberofinterfacethatisDOWNinProtocolis1
InterfaceIPAddress/MaskPhysicalProtocol
GigabitEthernet0/0/0192.168.12.2/24upup
GigabitEthernet0/0/1192.168.23.1/24upup
GigabitEthernet0/0/2unassigneddowndown
NULL0unassignedupup(s)
[R2]
[R2]
[R2]
[R2]q
save
Thecurrentconfigurationwillbewrittentothedevice.
Areyousuretocontinue?
(y/n)[n]:
y
Itwilltakeseveralminutestosaveconfigurationfile,pleasewait..........
Configurationfilehadbeensavedsuccessfully
Note:
Theconfigurationfilewilltakeeffectafterbeingactivated
Pleasecheckwhethersystemdatahasbeenchanged,andsavedataintime
Configurationconsoletimeout,pleasepressanykeytologon
Password:
Password:
sy
system-view
Entersystemview,returnuserviewwithCtrl+Z.
[R2]
[R2]
[R2]rip
[R2-rip-1]ver
[R2-rip-