要求:配置以上设备接口IP,并配置Rip,关闭路由汇总,使PC1与PC2实现互通
配置如下:
Enter system view, return user view with Ctrl+Z. [Huawei] [Huawei]sy
[Huawei]sysname R1 [R1] [R1]su [R1]super p
[R1]super password c
[R1]super password cipher 123456 [R1] [R1]us [R1]user-i
[R1]user-interface v [R1]user-interface vty 0 4 [R1-ui-vty0-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] [R1-ui-vty0-4]se
[R1-ui-vty0-4]set auth
[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]us [R1]user-i
[R1]user-interface c
[R1]user-interface console 0 [R1-ui-console0]
[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]
[R1-ui-console0]se [R1-ui-console0]set auth
[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 pa
[R1-aaa]local-user admin password c
[R1-aaa]local-user admin password cipher admin123 [R1-aaa] [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] [R1-aaa]q [R1]
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24 [R1-GigabitEthernet0/0/0]
Mar 8 2017 10:45:41-08:00 R1 %IFNET/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]undo sh
[R1-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown. [R1-GigabitEthernet0/0/0]q [R1]
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.12.1 24 [R1-GigabitEthernet0/0/1]
Mar 8 2017 10:46:24-08:00 R1 %IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. [R1-GigabitEthernet0/0/1] [R1-GigabitEthernet0/0/1]un [R1-GigabitEthernet0/0/1]undo sh
[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 ip int br
*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]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..........