EIGRP综合小实验(负载均衡,默认路由重分布,手工路由汇总,含端口映射,DHCP等)--CCNP学习笔记

简介:

逻辑拓扑图

 

EIGRP综合小实验(负载均衡,默认路由重分布,手工路由汇总,含端口映射,DHCP等)--CCNP学习笔记

 

 

实验要求:

1.R1R3右边接口地址通过R4DHCP server学到地址

2.全网EIGRP,每台设备上起lo,地址为设备编号(比如R11.1.1.1/24

3.R3上起一个lo口,地址为100.100.100.100/24,不允许通告进EIGRP,但全网可达,而且必须用EIGRP实现

4.R5telneR4lo时跑到R2上去

5.R2下面的接口bandwidth512,实现负载均衡

6.R5上起lo10-20,手工精确汇总

 

 

 

 

 

 

R1配置:

R1#sh run

Building configuration...

 

Current configuration : 1153 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R1

!

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

!

ip cef

no ip domain lookup

!

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

!

interface Ethernet0/0

 ip address dhcp

 full-duplex

!

interface Serial1/0

 ip address 12.1.1.1 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 1.1.1.0 0.0.0.255

 network 12.1.1.0 0.0.0.255

 network 134.1.1.0 0.0.0.255

 no auto-summary

!

no ip http server

no ip http secure-server

!        

control-plane

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

!

end

----------------------------------华丽分割线------------------------------

R1路由表:

R1#sh ip ro

 

Gateway of last resort is 134.1.1.2 to network 3.0.0.0

 

     1.0.0.0/24 is subnetted, 1 subnets

C       1.1.1.0 is directly connected, Loopback0

     2.0.0.0/24 is subnetted, 1 subnets

D       2.2.2.0 [90/2297856] via 12.1.1.2, 01:06:14, Serial1/0

D*   3.0.0.0/8 [90/409600] via 134.1.1.2, 01:06:20, Ethernet0/0

     4.0.0.0/24 is subnetted, 1 subnets

D       4.4.4.0 [90/409600] via 134.1.1.4, 01:28:10, Ethernet0/0

     5.0.0.0/24 is subnetted, 1 subnets

D       5.5.5.0 [90/2323456] via 134.1.1.4, 01:28:23, Ethernet0/0

     23.0.0.0/24 is subnetted, 1 subnets

D       23.1.1.0 [90/2195456] via 134.1.1.2, 01:06:17, Ethernet0/0

     12.0.0.0/24 is subnetted, 1 subnets

C       12.1.1.0 is directly connected, Serial1/0

     134.1.0.0/24 is subnetted, 1 subnets

C       134.1.1.0 is directly connected, Ethernet0/0

     45.0.0.0/24 is subnetted, 1 subnets

D       45.1.1.0 [90/2195456] via 134.1.1.4, 01:28:10, Ethernet0/0

D    192.168.0.0/20 [90/2323456] via 134.1.1.4, 00:42:19, Ethernet0/0

 

----------------------------------华丽分割线------------------------------

R2配置:

R2#sh run

Building configuration...

 

Current configuration : 1323 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R2

!

boot-start-marker

boot-end-marker

!

enable password cisco

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

no ip domain lookup

!

username lust privilege 15 password 0 cisco

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Serial1/0

 bandwidth 512

 ip address 23.1.1.2 255.255.255.0

 serial restart-delay 0

 clock rate 64000

!

interface Serial1/1

 ip address 12.1.1.2 255.255.255.0

 serial restart-delay 0

 clock rate 64000

!

router eigrp 100

 variance 3

 network 2.2.2.0 0.0.0.255

 network 12.1.1.0 0.0.0.255

 network 23.1.1.0 0.0.0.255

 no auto-summary

!

no ip http server

no ip http secure-server

!

control-plane

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

 password cisco

 login

!

end

----------------------------------华丽分割线------------------------------

R2路由表

R2#sh ip ro

Gateway of last resort is 23.1.1.3 to network 3.0.0.0

 

     1.0.0.0/24 is subnetted, 1 subnets

D       1.1.1.0 [90/5665536] via 23.1.1.3, 01:08:00, Serial1/0

                [90/2297856] via 12.1.1.1, 01:08:00, Serial1/1

     2.0.0.0/24 is subnetted, 1 subnets

C       2.2.2.0 is directly connected, Loopback0

D*   3.0.0.0/8 [90/5639936] via 23.1.1.3, 01:08:00, Serial1/0

               [90/2323456] via 12.1.1.1, 01:08:00, Serial1/1

     4.0.0.0/24 is subnetted, 1 subnets

D       4.4.4.0 [90/5665536] via 23.1.1.3, 01:08:00, Serial1/0

                [90/2323456] via 12.1.1.1, 01:08:00, Serial1/1

     5.0.0.0/24 is subnetted, 1 subnets

D       5.5.5.0 [90/6177536] via 23.1.1.3, 01:08:00, Serial1/0

                [90/2835456] via 12.1.1.1, 01:08:00, Serial1/1

     23.0.0.0/24 is subnetted, 1 subnets

C       23.1.1.0 is directly connected, Serial1/0

     12.0.0.0/24 is subnetted, 1 subnets

C       12.1.1.0 is directly connected, Serial1/1

     134.1.0.0/24 is subnetted, 1 subnets

D       134.1.1.0 [90/5537536] via 23.1.1.3, 01:08:00, Serial1/0

                  [90/2195456] via 12.1.1.1, 01:08:00, Serial1/1

     45.0.0.0/24 is subnetted, 1 subnets

D       45.1.1.0 [90/6049536] via 23.1.1.3, 01:08:00, Serial1/0

                 [90/2707456] via 12.1.1.1, 01:08:00, Serial1/1

D    192.168.0.0/20 [90/6177536] via 23.1.1.3, 00:44:36, Serial1/0

                    [90/2835456] via 12.1.1.1, 00:44:36, Serial1/1

 ----------------------------------华丽分割线------------------------------

R3配置:

R3#sh run 

Building configuration...

 

Current configuration : 1232 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R3

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

no ip domain lookup

!

interface Loopback0

 ip address 3.3.3.3 255.0.0.0

!

interface Loopback100

 ip address 100.100.100.100 255.255.255.0

!

interface Ethernet0/0

 ip address dhcp

 full-duplex

!

interface Serial1/1

 ip address 23.1.1.3 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 3.0.0.0

 network 23.1.1.0 0.0.0.255

 network 134.1.1.0 0.0.0.255

 no auto-summary

!        

no ip http server

no ip http secure-server

!

ip default-network 3.0.0.0

!

control-plane

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

!

end

 

----------------------------------华丽分割线------------------------------

R3路由表

R3#sh ip ro

Gateway of last resort is not set

 

     1.0.0.0/24 is subnetted, 1 subnets

D       1.1.1.0 [90/409600] via 134.1.1.1, 01:10:38, Ethernet0/0

     2.0.0.0/24 is subnetted, 1 subnets

D       2.2.2.0 [90/2297856] via 23.1.1.2, 01:10:38, Serial1/1

     100.0.0.0/24 is subnetted, 1 subnets

C       100.100.100.0 is directly connected, Loopback100

C*   3.0.0.0/8 is directly connected, Loopback0

     4.0.0.0/24 is subnetted, 1 subnets

D       4.4.4.0 [90/409600] via 134.1.1.4, 01:10:38, Ethernet0/0

     5.0.0.0/24 is subnetted, 1 subnets

D       5.5.5.0 [90/2323456] via 134.1.1.4, 01:10:38, Ethernet0/0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.1.1.0 is directly connected, Serial1/1

     12.0.0.0/24 is subnetted, 1 subnets

D       12.1.1.0 [90/2195456] via 134.1.1.1, 01:10:38, Ethernet0/0

     134.1.0.0/24 is subnetted, 1 subnets

C       134.1.1.0 is directly connected, Ethernet0/0

     45.0.0.0/24 is subnetted, 1 subnets

D       45.1.1.0 [90/2195456] via 134.1.1.4, 01:10:38, Ethernet0/0

D    192.168.0.0/20 [90/2323456] via 134.1.1.4, 00:46:42, Ethernet0/0

 

 ----------------------------------华丽分割线------------------------------

R4配置:

R4#sh run

Building configuration...

 

Current configuration : 1421 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R4

!

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

!

ip cef

no ip domain lookup

no ip dhcp use vrf connected

!

ip dhcp pool dhcp

   network 134.1.1.0 255.255.255.0

!

  

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

!

interface Ethernet0/0

 ip address 134.1.1.4 255.255.255.0

 ip nat inside

 ip virtual-reassembly

 full-duplex

!

interface Serial1/1

 ip address 45.1.1.4 255.255.255.0

 ip nat outside

 ip virtual-reassembly

 serial restart-delay 0

!

 

router eigrp 100

 network 4.4.4.0 0.0.0.255

 network 45.1.1.0 0.0.0.255

 network 134.1.1.0 0.0.0.255

 no auto-summary

!

no ip http server

no ip http secure-server

!

ip nat inside source static tcp 2.2.2.2 23 4.4.4.4 23 extendable

!

control-plane

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

 password cisco

 login

!

end

 ----------------------------------华丽分割线------------------------------

R4路由表

R4#sh ip ro

 

Gateway of last resort is 134.1.1.2 to network 3.0.0.0

 

     1.0.0.0/24 is subnetted, 1 subnets

D       1.1.1.0 [90/409600] via 134.1.1.1, 01:34:11, Ethernet0/0

     2.0.0.0/24 is subnetted, 1 subnets

D       2.2.2.0 [90/2323456] via 134.1.1.2, 01:12:30, Ethernet0/0

                [90/2323456] via 134.1.1.1, 01:12:30, Ethernet0/0

D*   3.0.0.0/8 [90/409600] via 134.1.1.2, 01:24:01, Ethernet0/0

     4.0.0.0/24 is subnetted, 1 subnets

C       4.4.4.0 is directly connected, Loopback0

     5.0.0.0/24 is subnetted, 1 subnets

D       5.5.5.0 [90/2297856] via 45.1.1.5, 01:34:39, Serial1/1

     23.0.0.0/24 is subnetted, 1 subnets

D       23.1.1.0 [90/2195456] via 134.1.1.2, 01:13:38, Ethernet0/0

     12.0.0.0/24 is subnetted, 1 subnets

D       12.1.1.0 [90/2195456] via 134.1.1.1, 01:15:06, Ethernet0/0

     134.1.0.0/24 is subnetted, 1 subnets

C       134.1.1.0 is directly connected, Ethernet0/0

     45.0.0.0/24 is subnetted, 1 subnets

C       45.1.1.0 is directly connected, Serial1/1

D    192.168.0.0/20 [90/2297856] via 45.1.1.5, 00:48:34, Serial1/1

 ----------------------------------华丽分割线------------------------------

R5配置:

R2#sh run

Building configuration...

 

Current configuration : 1323 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R2

!

boot-start-marker

boot-end-marker

!

enable password cisco

!

no aaa new-model

memory-size iomem 5

!

!

ip cef

no ip domain lookup

!

username lust privilege 15 password 0 cisco

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Serial1/0

 bandwidth 512

 ip address 23.1.1.2 255.255.255.0

 serial restart-delay 0

 clock rate 64000

!

interface Serial1/1

 ip address 12.1.1.2 255.255.255.0

 serial restart-delay 0

 clock rate 64000

!

router eigrp 100

 variance 3

 network 2.2.2.0 0.0.0.255

 network 12.1.1.0 0.0.0.255

 network 23.1.1.0 0.0.0.255

 no auto-summary

!

no ip http server

no ip http secure-server

!

control-plane

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

 password cisco

 login

!

!

end

 

----------------------------------华丽分割线------------------------------

R5路由表

R2#sh ip ro

Gateway of last resort is 23.1.1.3 to network 3.0.0.0

 

     1.0.0.0/24 is subnetted, 1 subnets

D       1.1.1.0 [90/5665536] via 23.1.1.3, 01:12:46, Serial1/0

                [90/2297856] via 12.1.1.1, 01:12:46, Serial1/1

     2.0.0.0/24 is subnetted, 1 subnets

C       2.2.2.0 is directly connected, Loopback0

D*   3.0.0.0/8 [90/5639936] via 23.1.1.3, 01:12:46, Serial1/0

               [90/2323456] via 12.1.1.1, 01:12:46, Serial1/1

     4.0.0.0/24 is subnetted, 1 subnets

D       4.4.4.0 [90/5665536] via 23.1.1.3, 01:12:46, Serial1/0

                [90/2323456] via 12.1.1.1, 01:12:46, Serial1/1

     5.0.0.0/24 is subnetted, 1 subnets

D       5.5.5.0 [90/6177536] via 23.1.1.3, 01:12:47, Serial1/0

                [90/2835456] via 12.1.1.1, 01:12:47, Serial1/1

     23.0.0.0/24 is subnetted, 1 subnets

C       23.1.1.0 is directly connected, Serial1/0

     12.0.0.0/24 is subnetted, 1 subnets

C       12.1.1.0 is directly connected, Serial1/1

     134.1.0.0/24 is subnetted, 1 subnets

D       134.1.1.0 [90/5537536] via 23.1.1.3, 01:12:48, Serial1/0

                  [90/2195456] via 12.1.1.1, 01:12:48, Serial1/1

     45.0.0.0/24 is subnetted, 1 subnets

D       45.1.1.0 [90/6049536] via 23.1.1.3, 01:12:48, Serial1/0

                 [90/2707456] via 12.1.1.1, 01:12:48, Serial1/1

D    192.168.0.0/20 [90/6177536] via 23.1.1.3, 00:49:23, Serial1/0

                    [90/2835456] via 12.1.1.1, 00:49:23, Serial1/1

 


本文转自lustlost 51CTO博客,原文链接:http://blog.51cto.com/lustlost/849391,如需转载请自行联系原作者

相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
相关文章
|
负载均衡 网络协议 算法
slb监听协议与端口
SLB是云服务商提供的负载均衡服务,用于分发客户端请求到多台后端服务器,提升服务可用性和响应速度。关键概念包括监听协议(TCP、UDP、HTTP、HTTPS、TCPSSL)和监听端口。监听协议决定了SLB处理请求的方式,而监听端口则是SLB接收请求的入口。配置时需根据应用选择合适协议和端口,并可设置负载均衡算法(如轮询、最少连接等)。客户端应通过SLB统一入口访问后端服务,避免绕过SLB导致的问题。
1797 2
|
负载均衡 网络协议 安全
slb选择监听协议和端口
阿里云SLB中,监听协议(TCP、HTTP、HTTPS)与端口(80、443等)决定客户端请求的处理方式。TCP适用于纯TCP或自处理HTTP的场景,HTTP用于智能调度Web服务,HTTPS提供安全的HTTP传输。监听端口通常匹配应用标准,如80 for HTTP,443 for HTTPS。配置时,可考虑HTTPS重定向和传递`X-Forwarded-Proto`头以识别请求来源。选择应基于业务需求和安全考虑。
866 3
|
存储 负载均衡 网络协议
企业实战(13)LVS负载均衡DR(直接路由)模式实战详解(二)
企业实战(13)LVS负载均衡DR(直接路由)模式实战详解(二)
431 0
|
网络协议 网络虚拟化 网络架构
【网络实验】/主机/路由器/交换机/网关/路由协议/RIP+OSPF/DHCP(上)
【网络实验】/主机/路由器/交换机/网关/路由协议/RIP+OSPF/DHCP(上)
499 150
|
Kubernetes 负载均衡 应用服务中间件
深入理解 Kubernetes Ingress:路由流量、负载均衡和安全性配置
深入理解 Kubernetes Ingress:路由流量、负载均衡和安全性配置
2558 1
|
网络协议 网络安全 数据安全/隐私保护
计算机网络概念:网关,DHCP,IP寻址,ARP欺骗,路由,DDOS等
计算机网络概念:网关,DHCP,IP寻址,ARP欺骗,路由,DDOS等
313 4
|
网络协议 网络安全 数据安全/隐私保护
计算机网络概念:网关,DHCP,IP寻址,ARP欺骗,路由,DDOS等
【10月更文挑战第27天】计算机主机网关的作用类似于小区传达室的李大爷,负责将内部网络的请求转发到外部网络。当小区内的小不点想与外面的小明通话时,必须通过李大爷(网关)进行联系。网关不仅帮助内部设备与外部通信,还负责路由选择,确保数据包高效传输。此外,网关还参与路由表的维护和更新,确保网络路径的准确性。
321 2
|
网络虚拟化
网络实验 VlAN 中 Trunk Access端口的说明及实验
本文介绍了VLAN技术及其在网络实验中的应用,包括Access端口和Trunk端口的工作原理,以及如何通过实验划分不同VLAN实现内部通信和跨交换机实现VLAN间通信的详细步骤和配置。
网络实验 VlAN 中 Trunk Access端口的说明及实验
|
负载均衡 Java Spring
Spring cloud gateway 如何在路由时进行负载均衡
Spring cloud gateway 如何在路由时进行负载均衡
2440 15
|
网络协议 数据安全/隐私保护 网络虚拟化
【网络实验】/主机/路由器/交换机/网关/路由协议/RIP+OSPF/DHCP(下)
【网络实验】/主机/路由器/交换机/网关/路由协议/RIP+OSPF/DHCP(下)
308 0