要求:
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