10.29云计算作业

1.所有设备必须预配,改名r1 r2;
  
[Huawei]sysname r1

[r1]

Enter system view, return user view with Ctrl+Z    
[Huawei]sysname r2

[r2]

设置永不超时
[r2]user-interface console 0
[r2-ui-console0]idle-timeout 0 0

    
 
2.r1使用密码加密,密码为jincheng;
[r1]user-interface console 0    
[r1-ui-console0]authentication-mode password 
Please configure the login password (maximum length 16):jincheng
[r1-ui-console0]quit

3.(1)r2使用用户名为jincheng 管理权限为15 密码为xueyuan;    
[r2-aaa]local-user jincheng privilege level 15  password cipher xueyuan
Info: Add a new user.     

(2)r2使用用户名为xuesheng 管理权限为0 密码为123;
[r2]aaa
[r2-aaa]local-user xuesheng privilege level 0 password cipher 123
Info: Add a new user.

4.r1可以ping通r2 使用的地址为192.168.1.0/24;
(1)给r1 接口配置ip地址
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
查看r1接口
[r1]display ip interface brief 
*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              192.168.1.1/24       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)
(2)给r2接口配置ip地址
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.1 23
查看r2接口
[r2]display ip interface brief 
*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              192.168.1.1/23       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)  
r1 r2可以ping通


 

你可能感兴趣的:(网络)