hcia第一天

1.所有设备必须有预配,都得改名r1,r2

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]user-interface console 0
[r1-ui-console0]idle-timeout 0 

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.

[Huawei]sysname 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

3.r2使用用户名为jincheng 管理权限15 密码为xueyuan

   r2使用用户名为xuesheng 管理权限0 密码 123

[r2]aaa
[r2-aaa]local-user jincheng privilege level 15 password cipher xueyuan
Info: Add a new user.
[r2-aaa]local-user jincheng service-type terminal
[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

[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
Oct 30 2022 10:15:51-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]ip address 192.168.1.1 255.255.255.0
Error: The address already exists.
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 24
Oct 30 2022 10:19:20-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 255.255.255.0
Error: The address already exists.

<r1>ping 192.168.1.2
  PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=170 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 192.168.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/54/170 ms
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值