华为HCNA课堂默认静态路由配置练习
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
要求:配置默认静态路由使AR1和AR3实现互通,并演示删除配置重启步骤如下:
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy
[Huawei]sysname R1
[R1]su
[R1]super p
[R1]super password c
[R1]super password cipher 123456
[R1]us
[R1]user-i
[R1]user-interface v
[R1]user-interface vty 0 4
[R1-ui-vty0-4]auth
[R1-ui-vty0-4]authentication-mode p
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123456
[R1-ui-vty0-4]se
[R1-ui-vty0-4]setauth
[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]q
[R1]us
[R1]user-i
[R1]user-interface c
[R1]user-interface console 0
[R1-ui-console0]auth
[R1-ui-console0]authentication-mode p
[R1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):123456
[R1-ui-console0]se
[R1-ui-console0]setauth
[R1-ui-console0]set authentication p
[R1-ui-console0]set authentication password c
[R1-ui-console0]set authentication password cipher 123456
[R1-ui-console0]q
[R1]
[R1]aaa
[R1-aaa]lo
[R1-aaa]local-user admin p
[R1-aaa]local-user admin password c
[R1-aaa]local-user admin password cipher 123456
[R1-aaa]lo
[R1-aaa]local-user admin ser
[R1-aaa]local-user admin service-type t
[R1-aaa]local-user admin service-type telnet
[R1-aaa]q
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 1.1.1.1 255.255.255.0
[R1-GigabitEthernet0/0/0]
Mar 9 2017 21:37:11-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[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]disipintbr
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 1.1.1.1/24 up up GigabitEthernet0/0/1 unassigned down down GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) [R1]q
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 wait..........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
Info: Current terminal monitor is off.
Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on
Login authentication
Password:
Enter system view, return user view with Ctrl+Z.
[R1]iprou
[R1]ip route-
[R1]ip route-static 0.0.0.0 0.0.0.0 1.1.1.2
[R1]
[R1]q
PING 2.2.2.1: 56 data bytes, press CTRL_C to break
Reply from 2.2.2.1: bytes=56 Sequence=1 ttl=255 time=480 ms
Reply from 2.2.2.1: bytes=56 Sequence=2 ttl=255 time=90 ms
Reply from 2.2.2.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 2.2.2.1: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 2.2.2.1: bytes=56 Sequence=5 ttl=255 time=20 ms