1.PC1和PC2通过DHCP分配地址 2.给Pc1和R1之间加一台交换机,再加一台路由器连在交换机,让我们的R6通过te1net远程登录R1 全网可达

一、全网可通

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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值