-
华为静态路由实验练习
汤建军(
tony
)
R1
配置情况:
[Huawei]sy
[Huawei]sysname R1
Mar 5
2017 18:30:19-08:00 Huawei
%%01IFPDT/4/IF_STATE(l)[0]:Interface
GigabitEt
hernet0/0/1 has
turned into UP state.
[Huawei]sysname
R1
[R1]
[R1]
[R1]
Enter system view, return user view
with Ctrl+Z.
[R1]
[R1]su
[R1]super p
[R1]super password c
[R1]super password cipher 123456
[R1]
[R1]us
华为静态路由实验练习
汤建军(
p>
tony
)
[R1]user-i
[R1]user-interface v
[R1]user-interface vty 0 4
[R1-ui-vty0-4]
[R1-ui-
vty0-4]au
[R1-ui-
vty0-4]authentication-mode p
[R1-ui-
vty0-4]authentication-mode password
[R1-ui-vty0-4]
[R1-ui-
vty0-4]se
[R1-ui-vty0-4]set
au
[R1-ui-vty0-4]set authentication p
[R1-ui-vty0-4]set authentication
password c
[R1-ui-
vty0-4]set authentication password cipher 123456
[R1-ui-vty0-4]
[R1-ui-
vty0-4]q
[R1]
[R1]
[R1]int
[R1]interface g
[R1]interfaceGigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]ip add
[R1-GigabitEthernet0/0/0]ip
address 192.168.1.254 24
[R1-GigabitEthernet0/0/0]
Mar 5 2017 18:51:37-08:00 R1
%%01IFNET/4/LINK_STATE(l)[0]:The line
protocol IP
on the
interface GigabitEthernet0/0/0 has entered the UP
state.
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]un
[R1-GigabitEthernet0/0/0]undosh
[R1-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is
not shutdown.
[R1-GigabitEthernet0/0/0]q
[R1]
[R1]int
[R1]interface g
[R1]interfaceGigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip ad
[R1-GigabitEthernet0/0/1]ip
address 192.168.12.1 24
[R1-GigabitEthernet0/0/1]
Mar 5 2017 18:53:23-08:00 R1
%%01IFNET/4/LINK_STATE(l)[1]:The line
protocol IP
on the
interface GigabitEthernet0/0/1 has entered the UP
state.
Please configure the login
password (maximum length 16):123456
华为静态路由实验练习
汤建军(
p>
tony
)
[R1-GigabitEthernet0/0/1]un
[R1-GigabitEthernet0/0/1]undosh
[R1-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is
not shutdown.
[R1-GigabitEthernet0/0/1]
[R1-GigabitEthernet0/0/1]q
[R1]
[R1]dis
[R1]displayipint
[R1]displayip interface b
[R1]displayip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of
interface that is UP in Physical is 3
The number of interface that is DOWN in
Physical is 1
The number of interface
that is UP in Protocol is 3
The number
of interface that is DOWN in Protocol is 1
Interface
IP Address/Mask Physical Protocol
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
unassigned up up(s)
[R1]
[R1]
[R1]
Please
check
whether
system
data
has
been
changed,
and
save
data
in
time
Configuration console
time out, please press any key to log on
Enter
system view, return user view with Ctrl+Z.
[R1]
[R1]
[R1]ipro
[R1]ip
route-
[R1]ip route-static
192.168.23.0 255.255.255.0 192.168.12.2
[R1]
华为静态路由实验练习
<
/p>
汤建军(
tony
)
[R1]ipro
[R1]ip route-
[R1]ip route-
static 192.168.2.0 255.255.255.0 192.168.23.2
[R1]
[R1]
[R1]dis
[R1]displayipro
[R1]displayip routing-table
Route Flags: R - relay, D - download to
fib
-----------------------------------
----------------------------------
-----
----
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto
Pre Cost Flags NextHop
Interface
127.0.0.0/8 Direct 0 0 D
127.0.0.1
InLoopBack0
127.0.0.1/32 Direct 0 0 D
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0 0
D 127.0.0.1
InLoopBack0
192.168.1.0/24 Direct 0 0
D 192.168.1.254
GigabitEthernet
0/0/0
192.168.1.254/32
Direct 0 0 D 127.0.0.1
GigabitEthernet
0/0/0
192.168.1.255/32 Direct 0 0
D 127.0.0.1
GigabitEthernet
0/0/0
192.168.2.0/24
Static 60 0 RD 192.168.23.2
GigabitEthernet
0/0/1
192.168.12.0/24 Direct 0 0
D 192.168.12.1
GigabitEthernet
0/0/1
192.168.12.1/32
Direct 0 0 D 127.0.0.1
GigabitEthernet
0/0/1
192.168.12.255/32 Direct 0 0
D 127.0.0.1
GigabitEthernet
0/0/1
华为静态路由实验练习
汤建军(
tony
)
< br>
192.168.23.0/24 Static 60 0
RD 192.168.12.2
GigabitEthernet
0/0/1
255.255.255.255/32
Direct 0 0 D 127.0.0.1
InLoopBack0
[R1]
Please
check
whether
system
data
has
been
changed,
and
save
data
in
time
Configuration console
time out, please press any key to log on
PING 192.168.2.254: 56 data bytes,
press CTRL_C to break
Reply from
192.168.2.254: bytes=56 Sequence=1 ttl=254 time=50
ms
Reply from 192.168.2.254:
bytes=56 Sequence=2 ttl=254 time=30 ms
Reply from 192.168.2.254: bytes=56 Sequence=3
ttl=254 time=50 ms
Reply from
192.168.2.254: bytes=56 Sequence=4 ttl=254 time=30
ms
Reply from 192.168.2.254:
bytes=56 Sequence=5 ttl=254 time=20 ms
--- 192.168.2.254 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet
loss
round-trip min/avg/max = 20/36/50
ms
PING 192.168.2.1: 56 data bytes,
press CTRL_C to break
Request time
out
Reply from 192.168.2.1:
bytes=56 Sequence=2 ttl=126 time=40 ms
Reply from 192.168.2.1: bytes=56 Sequence=3
ttl=126 time=30 ms
Reply from
192.168.2.1: bytes=56 Sequence=4 ttl=126 time=50
ms
Reply from 192.168.2.1: bytes=56
Sequence=5 ttl=126 time=40 ms
--- 192.168.2.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet
loss
round-trip min/avg/max = 30/40/50
ms
The current configuration will be written to the
device.
Are you sure to continue?
(y/n)[n]:y
It will take several
minutes to save configuration file, please
华为静态路由实验练习
汤建军(
p>
tony
)
wait.........
Configuration file had been saved successfully
Note: The configuration file will
take effect after being activated
Please
check
whether
system
data
has
been
changed,
and
save
data
in
time
Configuration console
time out, please press any key to log on
R2
配置如下
Enter
system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy
[Huawei]sysname R2
[R2]
[R2]su
[R2]super p
[R2]super password c
[R2]super password cipher 123456
[R2]
[R2]us
[R2]user-i
[R2]user-interface v
[R2]user-interface vty 0 4
[R2-ui-vty0-4]
[R2-ui-
vty0-4]au
[R2-ui-
vty0-4]authentication-mode p
[R2-ui-vty0-4]authentication-mode
password
Please configure the login
password (maximum length 16):123456
[R2-ui-vty0-4]
[R2-ui-
vty0-4]se
[R2-ui-
vty0-4]setau
[R2-ui-vty0-4]set
authentication P
华为静态路由实验练习
汤建军(
tony
)
< br>
[R2-ui-vty0-4]set authentication
password C
[R2-ui-
vty0-4]set authentication password cipher 123456
[R2-ui-vty0-4]
[R2-ui-
vty0-4]q
[R2]
[R2]int
[R2]interface G
[R2]interfaceGigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]ip ad
[R2-GigabitEthernet0/0/0]ip
address 192.168.12.2 24
[R2-GigabitEthernet0/0/0]un
[R2-GigabitEthernet0/0/0]undosh
[R2-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is
not shutdown.
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]q
[R2]
[R2]int
[R2]interface G
[R2]interfaceGigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]
[R2-GigabitEthernet0/0/1]ip add
[R2-GigabitEthernet0/0/1]ip address
192.168.23.1 24
[R2-GigabitEthernet0/0/1]
Mar 5 2017 19:02:40-08:00 R2
%%01IFNET/4/LINK_STATE(l)[1]:The line
protocol IP
on the
interface GigabitEthernet0/0/1 has entered the UP
state.
[R2-GigabitEthernet0/0/1]un
[R2-GigabitEthernet0/0/1]undosh
[R2-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is
not shutdown.
[R2-GigabitEthernet0/0/1]
[R2-GigabitEthernet0/0/1]quit
[R2]
[R2]
[R2]dis
[R2]displayipint
[R2]displayip interface B
[R2]displayip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
-
-
-
-
-
-
-
-
-
上一篇:不锈钢立式止回阀-H42W不锈钢立式止回阀
下一篇:服务器日志分析