华为静态路由实验练习.docx
《华为静态路由实验练习.docx》由会员分享,可在线阅读,更多相关《华为静态路由实验练习.docx(28页珍藏版)》请在冰点文库上搜索。
华为静态路由实验练习
ARI
AR2
AR3
1&2.l&S.12,0/24
23-S/24
GE0W1
GLOW}
GE0W1
GEQ/Om
GEOflVO
GE(MM
ernetOAVI
ethefnet(yo/1
PC1
192.1^6.1.1/24
网关192.16S.1.2S4
PC2
19^.ies.5.1/24
网关
R1配置情况:
Huawei>
Huawei>
Huawei>clo
Huawei>clockd
Huawei>clockdatetime18:
30:
002017-03-05[Huawei]sy[Huawei]sysnameR1
Mar5201718:
30:
19-08:
00Huawei%%01IFPDT/4/IF_STATE(l)[0]:
lnterface
GigabitEthernet0/0/1hasturnedintoUPstate.
[Huawei]sysnameR1[R1][R1][R1]sysystem-view
Entersystemview,returnuserviewwithCtrl+Z.
[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]au
[R1-ui-vty0-4]authentication-modep
[R1-ui-vty0-4]authentication-modepassword
PIeaseconfiguretheloginpassword(maximumlength16):
123456
[R1-ui-vty0-4]
[R1-ui-vty0-4]se
[R1-ui-vty0-4]setau
[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]
[R1]int
[R1]interfaceg
[R1]interfaceGigabitEthernet0/0/0
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]ipadd
[R1-GigabitEthernet0/0/0]ipaddress192.168.1.25424
[R1-GigabitEthernet0/0/0]
Mar5201718:
51:
37-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]int
[R1]interfaceg
[R1]interfaceGigabitEthernet0/0/1
[R1-GigabitEthernet0/0/1]ipad
[R1-GigabitEthernet0/0/1]ipaddress192.168.12.124
[R1-GigabitEthernet0/0/1]
Mar5201718:
53:
23-08:
00R1%%01IFNET/4/LINK_STATE(l)[1]:
Theline
protocolIP
ontheinterfaceGigabitEthernet0/0/1hasenteredtheUPstate.
[R1-GigabitEthernet0/0/1]un
[R1-GigabitEthernet0/0/1]undosh
[R1-GigabitEthernet0/0/1]undoshutdown
Info:
InterfaceGigabitEthernetO/0/1isnotshutdown.
[R1-GigabitEthernet0/0/1]
[R1-GigabitEthernet0/0/1]q
[R1]
[R1]dis
[R1]displayipint
[R1]displayipinterfaceb
[R1]displayipinterfacebrief
*down:
administrativelydown
Sown:
standby
(l):
loopback
(s):
spoofing
ThenumberofinterfacethatisUPinPhysicalis3
ThenumberofinterfacethatisDOWNinPhysicalis1
ThenumberofinterfacethatisUPinProtocolis3
ThenumberofinterfacethatisDOWNinProtocolis1
Interface
IPAddress/MaskPhysicalProtocol
GigabitEthernet0/0/0
192.168.1.254/24
up
up
GigabitEthernet0/0/1
192.168.12.1/24
up
up
GigabitEthernet0/0/2
unassigned
down
down
NULL0
unassignedup
up(s)
[R1]
[R1]
[R1]
Pleasecheck
whethersystem
datahasbeenchanged,andsavedataintime
Configurationconsoletimeout,pleasepressanykeytologon
sy
Entersystemview,returnuserviewwithCtrl+Z.
[R1]
[R1]
[R1]ipro
[R1]iproute-
[R1]iproute-static192.168.23.0255.255.255.0192.168.12.2
[R1]
[R1]ipro[R1]iproute-[R1]iproute-static192.168.2.0255.255.255.0192.168.23.2[R1][R1][R1]dis[R1]displayipro[R1]displayiprouting-table
RouteFlags:
R-relay,D-downloadtofib
RoutingTables:
Public
Destinations:
12
Routes:
12
Destination/MaskProto
Pre
Cost
FlagsNextHop
Interface
127.0.0.0/8Direct0
127.0.0.1
InLoopBack0
127.0.0.1/32Direct0
127.0.0.1
InLoopBack0
127.255.255.255/32Direct
D127.0.0.1
InLoopBack0
192.168.1.0/24Direct0
192.168.1.254
GigabitEthernet
0/0/0
192.168.1.254/32Direct0
127.0.0.1
GigabitEthernet
0/0/0
192.168.1.255/32Direct0
127.0.0.1
GigabitEthernet
0/0/0
192.168.2.0/24Static60
RD
192.168.23.2
GigabitEthernet
0/0/1
192.168.12.0/24Direct0
192.168.12.1
GigabitEthernet0/0/1
192.168.12.1/32Direct0
127.0.0.1
GigabitEthernet0/0/1
127.0.0.1
192.168.12.255/32Direct0
GigabitEthernet0/0/1
192.168.23.0/24Static60
RD
192.168.12.2
GigabitEthernet
0/0/1
127.0.0.1
255.255.255.255/32Direct0
InLoopBack0
[R1]
Pleasecheckwhether
system
datahasbeenchanged,andsavedataintime
Configurationconsoletimeout,pleasepressanykeytologonping192.168.2.254
PING192.168.2.254:
56databytes,pressCTRL_Ctobreak
Replyfrom192.168.2.254:
bytes=56Sequence=1ttl=254time=50ms
Replyfrom192.168.2.254:
bytes=56Sequence=2ttl=254time=30ms
Replyfrom192.168.2.254:
bytes=56Sequence=3ttl=254time=50ms
Replyfrom192.168.2.254:
bytes=56Sequence=4ttl=254time=30ms
Replyfrom192.168.2.254:
bytes=56Sequence=5ttl=254time=20ms
---192.168.2.254pingstatistics--
5packet(s)transmitted
5packet(s)received
0.00%packetloss
round-tripmin/avg/max=20/36/50ms
ping192.168.2.1
PING192.168.2.1:
56databytes,pressCTRL_Ctobreak
Requesttimeout
Replyfrom192.168.2.1:
bytes=56Sequence=2ttl=126time=40
Replyfrom192.168.2.1:
bytes=56Sequence=3ttl=126time=30
Replyfrom192.168.2.1:
bytes=56Sequence=4ttl=126time=50
Replyfrom192.168.2.1:
bytes=56Sequence=5ttl=126time=40
ms
ms
ms
ms
---192.168.2.1pingstatistics--
5packet(s)transmitted
4packet(s)received
20.00%packetloss
round-tripmin/avg/max=30/40/50ms
save
Thecurrentconfigurationwillbewrittentothedevice.
Areyousuretocontinue?
(y/n)[n]:
y
Itwilltakeseveralminutestosaveconfigurationfile,please
dUOQrooQueLIlne一①寸6>1>丄
ne一①s〔寸
①s亍0M>—
^sf
99寸ee「(9L£6u①-EnE一xroE)EOMSSrodu-60-①£①」nqjuoo①sro①-dn&H
p」OMSSed①POE—uo4eoQue£ne〔〒0M>—
d①POLLbuoQrooQue£ne〔寸6刁>丄
ne〔寸
亍0刁>丄
寸0M>①oetou
>①0eJJ9u
n&Mn&M
n&Misn邕isn邕
isn邕sn邕邕
99寸旨」①gd一。
p」OMSSed」ednsa」
0p」OMSSed」ednsa」
d」edns邕ns邕邕
①Menu」
①Menu」
①Menu」•z土」10£-MMQ>」esnEnle」-MQ>E9SAS」9U山
mq>—e9sasa
Asa
s①LueusAsp
①MenHV
①MenHV
①MenHV
9909、LOe0009cL①&一Sep>IOO_OA
①MenHV
p>IOO_OA
①MenHV
O_OA
①MenHV
uo60-0!
A①上Auess①」d①se①-d」no①EQ①-OSU8UOQro」n6_JUO。
①EQu一2epe>espue-p①6ueLI0u①①qsroLI2epE9SAS@1①l|m>10①Lio①se①-d
Asv
P9e>4oe6u一①q」9Je102」①①>12三m①匸UOQe」n6_JU8①LIJ.@ON
A--nJSS①00nspe>esu①①qproLI①匸UOQro」n6_JUO。
七TOM
[R2-ui-vty0-4]setauthenticationpasswordC
[R2-ui-vty0-4]setauthenticationpasswordcipher123456
[R2-ui-vty0-4]
[R2-ui-vty0-4]q
[R2]
[R2]int
[R2]intefaceG
[R2]intefaceGigabitEthernet0/0/0
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]ipad
[R2-GigabitEthernet0/0/0]ipaddress192.168.12.224
[R2-GigabitEthernet0/0/0]un
[R2-GigabitEthernet0/0/0]undosh
[R2-GigabitEthernet0/0/0]undoshutdown
Info:
InterfaceGigabitEthernet0/0/0isnotshutdown.
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]q
[R2]
[R2]int
[R2]intefaceG
[R2]intefaceGigabitEthernet0/0/1
[R2-GigabitEthernet0/0/1]
[R2-GigabitEthernet0/0/1]ipadd
[R2-GigabitEthernet0/0/1]ipaddress192.168.23.124
[R2-GigabitEthernet0/0/1]
Mar5201719:
02:
40-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]
[R2-GigabitEthernet0/0/1]quit
[R2]
[R2]
[R2]dis
[R2]displayipint
[R2]displayipinterfaceB
[R2]displayipinterfacebrief
*down:
administrativelydown
Sown:
standby
(l):
loopback
(s):
spoofing
ThenumberofinterfacethatisUPinPhysicalis3
ThenumberofinterfacethatisDOWNinPhysicalis1
ThenumberofinterfacethatisUPinProtocolis3
ThenumberofinterfacethatisDOWNinProtocolis1
GigabitEthernet0/0/0
192.168.12.2/24
up
up
GigabitEthernet0/0/1
192.168.23.1/24
up
up
GigabitEthernet0/0/2
unassigned
down
down
NULL0
unassignedup
up(s)
Interface
Protocol
IPAddress/MaskPhysical
[R2]
vR2>sy
system-view
Entersystemview,returnuserviewwithCtrl+Z.
[R2]
[R2]iprou[R2]iproute-
[R2]iproute-static192.168.1.0255.255.255.0192.168.12.1
[R2][R2]ipro
[R2]iproute-[R2]iproute-static192.168.2.0255.255.255.0192.168.23.2
[R2]
[R2]dis
[R2]displayipro
[R2]displayiprouting-table
RouteFlags:
R-relay,D-downloadtofib
RoutingTables:
Public
Routes:
12
Destinations:
12
Destination/MaskProto
Pre
Cost
FlagsNextHop
Interface
127.0.0.0/8Direct0
127.0.0.1
InLoopBack0
127.0.0.1/32Direct0
127.0.0.1
InLoopBack0
127.255.255.255/32Direct0
D127.0.0.1
InLoopBack0
192.168.1.0/24Static600
RD192.168.12.1
GigabitEthernet
0/0/0
192.16820/24Static60
RD
192.168.23.2
GigabitEthernet
0/0/1
192.168.12.0/24Direct0
192.168.12.2
GigabitEthernet
0/0/0
192.168.12.2/32Direct0
127.0.0.1
GigabitEthernet
0/0/0
192.168.12.255/32Direct0
127.0.0.1
GigabitEthernet
0/0/0
192.168.23.0/24Direct0
192.168.23.1
GigabitEthernet
0/0/1
192.168.23.1/32Direct0
127.0.0.1
GigabitEthernet
0/0/1
192.168.23.255/32
Direct0
127.0.0.1
GigabitEthernet
0/0/1
255.255.255.255/32
Direct0
127.0.0.1
InLoopBack0
[R2]
Pleasecheck
whether
system
datahasbeenchanged.
andsavedataintime
Configurationconsoletimeout,pleasepressanykeytologon
vR2>save
Thecurrentconfigurationwillbewrittentothedevice.
Areyousuretocontinue?
(y/n)[n]:
y
Itwilltakeseveralminutestosaveconfigurationfile,pleasewait
Configurationfilehadbeensavedsuccessfully
Note:
Theconfigurationfilewilltakeeffecta