一、全网可通
1.首先进入系统视图system-view
2.更改AR名称sysname
3.进入接口 interface g0/0/0
4.给接口配置ip地址 ip address 192.168.1.1
5.用下一跳来进行路由间连通ip route-static
6.查看路由表是否填写完整 display ip routing-table
AR1
给接口配置ip
使用下一跳连通各网段
AR2
AR3
AR4
结果:
二、添加交换机和路由器,实现pc1和pc2通过dhcp分配地址和使AR6可以使用telnet远程登录到AR1
1.实现pc1和pc2通过dhcp分配地址
步骤:
1.在AR1和AR4中开启dhcp服务 dhcp enable
2.创建地址池 ip pool 1
3.给地址池中添加网段 network 192.168.1.0 mask 24
4.给地址池分配网关 gateway-list 192.168.1.1
5.设置dns ,dns-list 114.114.114.114
6.在接口处给接口分配地址池 dhcp select global
7.在pc上用ipconfig查看
PC1:
[1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[1]ip pool 1
Info: It's successful to create an IP address pool.
[1-ip-pool-1]network 192.168.1.0 mask 24
[1-ip-pool-1]gateway-list 192.168.1.1
[1-ip-pool-1]dns-list 114.114.114.114
[1-ip-pool-1]q
[1]interface g0/0/0
[1-GigabitEthernet0/0/0]dhcp select global
PC2:
[4]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[4]ip pool 2
Info: It's successful to create an IP address pool.
[4-ip-pool-2]network 192.168.6.0 mask 24
[4-ip-pool-2]gateway-list 192.168.6.1
[4-ip-pool-2]dns-list 114.114.114.114
[4-ip-pool-2]q
[4]interface g0/0/2
[4-GigabitEthernet0/0/2]dhcp select global
2.使AR6可以使用telnet远程登录到AR1
1.在AR1上进入账户平台
2.创建账号liang权限等级15,设置密码并使其输出为乱码local-user liang privilege level 15 password cipher 123
3.给账号liang开启telnet服务 local-user liang service-type telnet
4.设置五台虚拟的登录端口 user-interface vty 0 4
5.关联aaa平台 authentication-mode aaa
6.在AR6上远程登录AR1
AR1
[1]aaa
[1-aaa]local-user liang privilege level 15 password cipher 123
Info: Add a new user.
[1-aaa]local-user liang service-type telnet
[1-aaa]q
[1]user-interface vty 0 4
[1-ui-vty0-4]authentication-mode aaa
AR6
<Huawei>telnet 192.168.1.1
Press CTRL_] to quit telnet mode
Trying 192.168.1.1 ...
Connected to 192.168.1.1 ...
Login authentication
Username:liang
Password:
<1>