静态路由配置实验

要求:
1、全网用192.168.1.0/24进行IP地址分配
2、R7作为DHCP服务器为pc分配IP地址
3、路由上均具备2个环回地址
4、R6与R7之间正常走1000M,备份走100M
5、全网尽量负载均衡
6、减少路由表数量,并避免环路产生
7、全网可达

一、拓扑结构

二、实验步骤

1.先给各个路由接口配置IP

R3

R4

r5

r6


1. int GigabitEthernet 0/0/0
2. ip address 192.168.1.10 30
3. int GigabitEthernet 0/0/1
4. ip address 192.168.1.14 30
5. int GigabitEthernet 0/0/2
6. ip address 192.168.1.17 30
7. int GigabitEthernet 3/0/0
8. ip address 192.168.1.21 30

r7

2.给各个路由配置环回接口

r3

r4

r5

r6

r7

3.使用DHCP为PC1和PC2分配IP地址

   配置完成后打开PC,选择DHCP选项点击应用;

   在命令行输入ipconfig查看所分配的IP

4.给各个路由器配置静态路由,将那些不可达的网段进行配置

r3

ip route-static 192.168.1.64 27 192.168.1.2

ip route-static 192.168.1.96 27 192.168.1.6

ip route-static 192.168.1.12 30 192.168.1.6

 ip route-static 192.168.1.128 27 192.168.1.2

ip route-static 192.168.1.128 27 192.168.1.6

ip route-static 192.168.1.16 30 192.168.1.2

r4

ip route-static 192.168.1.32 27 192.168.1.1
ip route-static 192.168.1.4 30 192.168.1.1
ip route-static 192.168.1.128 27 192.168.1.10
ip route-static 192.168.1.12 30 192.168.1.10
ip route-static 192.168.1.16 30 192.168.1.10
ip route-static 192.168.1.96 27 192.168.1.1
ip route-static 192.168.1.96 27 192.168.1.10

r5

ip route-static 192.168.1.32 27 192.168.1.5
ip route-static 192.168.1.0 30 192.168.1.5
ip route-static 192.168.1.8 30 192.168.1.14
ip route-static 192.168.1.128 27 192.168.1.14
ip route-static 192.168.1.16 30 192.168.1.14
ip route-static 192.168.1.64 27 192.168.1.5
ip route-static 192.168.1.64 27 192.168.1.14

r6

ip route-static 192.168.1.64 27 192.168.1.9
ip route-static 192.168.1.0 30 192.168.1.9
ip route-static 192.168.1.96 27 192.168.1.13
ip route-static 192.168.1.4 30 192.168.1.13ip route-static 192.168.1.32 27 192.168.1.9
ip route-static 192.168.1.32 27 192.168.1.13

r7

ip route-static 192.168.1.32 27 192.168.1.17
ip route-static 192.168.1.64 27 192.168.1.17
ip route-static 192.168.1.96 27 192.168.1.17
ip route-static 192.168.1.128 27 192.168.1.17
ip route-static 192.168.1.0 30 192.168.1.17
ip route-static 192.168.1.4 30 192.168.1.17
ip route-static 192.168.1.8 30 192.168.1.17
ip route-static 192.168.1.12 30 192.168.1.17

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值