HCIA静态路由综合实验

一、拓扑图

二、需求

1.整张网络使用192.168.1.0/24网段进行划分。

2.R1、R2、R3、R4均有两个环回来模拟用户网段。

3.R5使用DHCP为PC分配IP地址。

4.R2、R3、R4、R5开启Telnet功能;账号密码:admin/admin,R1能够远程登录。

5.完成所有路由器的静态路由配置,要求使用最简化路由表的方式。

6.全网可达。

三、需求分析

1.整张网络使用192.168.1.0/24网段进行划分

整个网络有15个广播域,将192.168.1.0/24,划分成16个子网,用15个:
192.168.1.0000 0000/28---1.0
192.168.1.0001 0000/28---1.16
192.168.1.0010 0000/28---1.32
192.168.1.0011 0000/28---1.48
192.168.1.0100 0000/28---1.64
192.168.1.0101 0000/28---1.80
192.168.1.0110 0000/28---1.96
192.168.1.0111 0000/28---1.112
192.168.1.1000 0000/28---1.128
192.168.1.1001 0000/28---1.144
192.168.1.1010 0000/28---1.168
192.168.1.1011 0000/28---1.176
192.168.1.1100 0000/28---1.192
192.168.1.1101 0000/28---1.208
192.168.1.1110 0000/28---1.224
192.168.1.1111 0000/28---1.240

2.R1、R2、R3、R4均有两个环回来模拟用户网段

对R1,R2,R3,R4设置虚拟端口,配置IP地址,每个端口是一个独立的广播域。

3.R5使用DHCP为PC分配IP地址

使用dhcp协议,为R5的 0/0/1 端口设置一个IP池塘,以此来由DHCP自动为PC端分配IP地址。

4.R2、R3、R4、R5开启Telnet功能;账号密码:admin/admin,R1能够远程登录。

5.完成所有路由器的静态路由配置,使用最简化路由表的方式。

通过所划分的广播域,利用汇总路由、缺省路由合理分配静态路由配置,并注意负载均衡、路由黑洞、空接口防环路由,配置R4与R5之间为浮动静态路由。

四、配置过程

1.路由器ip地址表:

2.R5使用DHCP为PC分配ip地址:

[r5]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r5]ip pool leiyuyang
Info: It's successful to create an IP address pool.
[r5-ip-pool-leiyuyang]networ	
[r5-ip-pool-leiyuyang]network 192.168.1.224 mask 28
[r5-ip-pool-leiyuyang]get	
[r5-ip-pool-leiyuyang]getgat	
[r5-ip-pool-leiyuyang]gat	
[r5-ip-pool-leiyuyang]gateway-list 192.168.1.225
[r5-ip-pool-leiyuyang]dns	
[r5-ip-pool-leiyuyang]dns-list ?
  IP_ADDR<X.X.X.X>  IP address
[r5-ip-pool-leiyuyang]dns-list 8.8.8.8
[r5-ip-pool-leiyuyang]q
[r5]int	
[r5]interface G
                ^
Error:Incomplete command found at '^' position.
[r5]interface G	
[r5]interface GigabitEthernet 0/0/1
[r5-GigabitEthernet0/0/1]dhcp sel	
[r5-GigabitEthernet0/0/1]dhcp select glo	
[r5-GigabitEthernet0/0/1]dhcp select global 

 3.完善路由表,添加缺省路由

R1:先配置离得近的,然后再配置2个缺省分别从上下两路指到R4,进行负载均衡。

 R2:先配置左边的,右边的利用缺省路由直接转到R4。

R3:与R1位置对称,处理方法一样。先处理这边的,右边写缺省指到R4。

R4:上下两个,先写埃的近的六个,上下各三个。

然后写到R1的两条路,进行负载均衡。

最后分别写到R5的两条路,浮动静态路由,改一下第二条线路的优先值为90,达到1000M的线路断开,再使用10M的线路。

R5:直接汇总成192.168.1.0/24给R4,两条路做一个浮动静态路由

 4.给R2,R3,R4,R5配置telnet服务,使R1能够远程登录其他路由器

[r2]telnet server enable 
 Error: TELNET server has been enabled
[r2]use	
[r2]user-int	
[r2]user-interface vt	
[r2]user-interface vty ?
  INTEGER<0-4,16-20>  The first user terminal interface to be configured
[r2]user-interface vty 0 4
[r2-ui-vty0-4]au	
[r2-ui-vty0-4]authentication-mode aaa
[r2-ui-vty0-4]quit
[r2]aaa
[r2-aaa]lo	
[r2-aaa]local-user admin pa	
[r2-aaa]local-user admin password c	
[r2-aaa]local-user admin password cipher admin
[r2-aaa]lo	
[r2-aaa]local-user admin pri	
[r2-aaa]local-user admin privilege level	
[r2-aaa]local-user admin privilege level ?
  INTEGER<0-15>  Level value
[r2-aaa]local-user admin privilege level 15
[r2-aaa]lo	
[r2-aaa]local-user admin s	
[r2-aaa]local-user admin service-type t	
[r2-aaa]local-user admin service-type te	
[r2-aaa]local-user admin service-type telnet

五、结果测试

1.R5使用DHCP为PC分配ip地址

2.设置R2,R3,R4,R5的telnet的登录账号与密码为admin/admin,并使R1远程登录: 

<r1>telnet 192.168.1.2
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.2 ...
  Connected to 192.168.1.2 ...

Login authentication


Username:admin
Password:
<r2>
<r2>quit

  Configuration console exit, please retry to log on

  The connection was closed by the remote host
<r1>tel	
<r1>telnet 192.168.1.18
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.18 ...
  Connected to 192.168.1.18 ...

Login authentication


Username:admin
Password:
<r3>
<r3>quit

  Configuration console exit, please retry to log on

  The connection was closed by the remote host
<r1>tel	
<r1>telnet 192.168.1.34
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.34 ...
  Connected to 192.168.1.34 ...

Login authentication


Username:admin
Password:
<r4>
<r4>quit

  Configuration console exit, please retry to log on

  The connection was closed by the remote host
<r1>tel	
<r1>telnet 192.168.1.194
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.194 ...
  Connected to 192.168.1.194 ...

Login authentication


Username:admin
Password:
<r5>
<r5>quit

  Configuration console exit, please retry to log on

  The connection was closed by the remote host
<r1>

4.全网可达测试

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值