1.配置接口ip r1配置接口ip

[r1] interface GigabitEthernet0/0/0 [r1-GigabitEthernet0/0/0] ip address 192.168.1.1 255.255.255.0

r2配置接口ip [r2]interface GigabitEthernet 0/0/0 [r2-GigabitEthernet0/0/0]ip address 192.168.1.2 24

查看配置的接口ip命令 display ip interface brief

2.R2上配置远程登录 [R2]user-interface vty 0 4 [R2-ui-vty0-4]authentication-mode aaa [R2-ui-vty0-4]quit [R2]aaa [R2-aaa]local-user admin1 password cipher huawei [R2-aaa]local-user admin1 privilege level 2 [R2-aaa]local-user admin1 service-type telnet 定义用户的服务类别 [R2-aaa]quit

3.在R1上telnet登录R2 <r1>telnet 192.168.1.2