【实战演练】Packet Tracer玩转CCNA实验20-构建企业内部网络综合案例(下)

本文欢迎转载,转载请注明出处和作者。

最后一篇讲CCNA的网络技术,终于收官啦。

上两篇使用的拓扑是单出口路由器的,如下:

这篇修改为这样的网络拓扑:

唯一的区别就在出口路由器那里,1台变成了2台。

1、配置总部出口路由器

为了后续配置IPSec VPN,路由器采用2811,并且手动添加一块4端口串口卡。

R1:

en
conf t
host R1
int fa0/0
ip add 12.1.1.1 255.255.255.0
no shut
int fa0/1
ip add 23.1.1.1 255.255.255.0
no shut
int se1/0
ip add 14.23.112.1 255.255.255.0
clo rate 64000
no shut

R3:

en
conf t
host R3
int fa0/0
ip add 13.1.1.1 255.255.255.0
no shut
int fa0/1
ip add 23.1.1.2 255.255.255.0
no shut
int se1/0
ip add 183.233.112.1 255.255.255.0
clo rate 64000
no shut

2、配置ISP路由器

IPS1:

en
conf t
host ISP1
int lo 0
ip add 14.14.14.14 255.255.255.0
no shut
int se1/0
ip add 14.23.112.2 255.255.255.0
no shut
int se1/1
ip add 14.23.113.2 255.255.255.0
no shut
int se1/2
ip add 14.23.114.1 255.255.255.0
clo rate 64000
no shut

IPS2:

en
conf t
host ISP2
int lo 0
ip add 183.183.183.183 255.255.255.0
no shut
int se1/0
ip add 183.233.112.2 255.255.255.0
no shut
int se1/1
ip add 183.233.113.2 255.255.255.0
no shut
int se1/2
ip add 14.23.114.2 255.255.255.0
no shut

3、配置ISP1与ISP2的BGP路由

ISP1:

router bgp 300
nei 14.23.114.2 remote 400
network 14.14.14.0 mask 255.255.255.0
network 14.23.112.0 mask 255.255.255.0
network 14.23.113.0 mask 255.255.255.0
network 14.23.114.0 mask 255.255.255.0

ISP2:

router bgp 400
nei 14.23.114.1 remote 300
network 183.183.183.0 mask 255.255.255.0
network 183.233.112.0 mask 255.255.255.0
network 183.233.113.0 mask 255.255.255.0
network 183.233.114.0 mask 255.255.255.0

4、配置集团总部内网OSPF

Core-SW1:

en
conf t
int fa 0/24
no switchport
ip add 12.1.1.2 255.255.255.0
no shut
router ospf 1
network 10.1.2.0 0.0.0.255 area 0
network 10.1.3.0 0.0.0.255 area 0
network 10.1.4.0 0.0.0.255 area 0
network 10.1.5.0 0.0.0.255 area 0
network 10.1.6.0 0.0.0.255 area 0
network 12.1.1.2 0.0.0.255 area 0

Core-SW2:

en
conf t
int fa 0/24
no switchport
ip add 13.1.1.2 255.255.255.0
no shut
router ospf 1
network 10.1.2.0 0.0.0.255 area 0
network 10.1.3.0 0.0.0.255 area 0
network 10.1.4.0 0.0.0.255 area 0
network 10.1.5.0 0.0.0.255 area 0
network 10.1.6.0 0.0.0.255 area 0
network 13.1.1.2 0.0.0.255 area 0

R1:

en
conf t
router ospf 1
network 12.1.1.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0

R3:

en
conf t
router ospf 1
network 23.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0

检测配置

R3:

5、配置集团总部默认路由与BGP\OSPF路由重分布

R1:

ip route 0.0.0.0 0.0.0.0 14.23.112.2
//默认路由,metric值20,作为备选默认路由
router ospf 1
default-information originate //重分布默认路由

R3:

ip route 0.0.0.0 0.0.0.0 183.233.112.2
//默认路由,metric值20,作为备选默认路由
router ospf 1
default-information originate //重分布默认路由

注意这里R3的默认路由没有加metric 20

检测配置:

6、配置集团总部NAT映射

R1:

en
conf t
int se1/0
ip nat outside

int fa0/0
ip nat inside

ip nat inside source static 10.1.6.10 14.23.112.3 //WEB服务器公网映射
ip nat inside source static 10.1.6.20 14.23.112.4 //FTP服务器公网映射
ip nat inside source static 10.1.6.30 14.23.112.5 //EMAIL服务器公网映射
ip nat pool JTISP1POOL 14.23.112.6 14.23.112.7 netmask 255.255.255.0
access-list 1 permit 10.1.2.0 0.0.0.255 
access-list 1 permit 10.1.3.0 0.0.0.255 
access-list 1 permit 10.1.4.0 0.0.0.255
ip nat inside source list 1 pool JTISP1POOL overload

检查配置

从JT-IT1,ping 1.2.3.4,发现会通一个包丢一个包。

Tracert 1.2.3.4查看,看到2次tracert的路由不一样。

排查故障:

由于R1与R2分别将默认路由重分布到OSPF里面,并且由于Packet Tracer 限制,无法在default-information originate后面加入metric 200参数(越大,cost越高,次选,如果2条带宽不匹配,应该将次选的链路metric调大,则会优选带宽大的链路,如果链路断线再自动路由收敛切换链路),因此两条默认路由出口的优先级是一样的,因此访问外网的ping包会两个出口更换着使用。(负载均衡)

但是由于NAT只在R1上做了,R2是未做的,因此从R2出去的包根本无法出公网访问,因此解决方案是,在R2上面也做好NAT,再进行测试。

R3:

en
conf t
int se1/0
ip nat outside

int fa0/0
ip nat inside

ip nat inside source static 10.1.6.10 183.233.112.3   
ip nat inside source static 10.1.6.20 183.233.112.4  
ip nat inside source static 10.1.6.30 183.233.112.5  
ip nat pool JTISP2POOL 183.233.112.6 183.233.112.7 netmask 255.255.255.0
access-list 1 permit 10.1.2.0 0.0.0.255 
access-list 1 permit 10.1.3.0 0.0.0.255 
access-list 1 permit 10.1.4.0 0.0.0.255
ip nat inside source list 1 pool JTISP2POOL overload

再次进行测试,则没有问题了。

Tracert一下,看看是否两次走的不同路由,证明负载均衡生效。

其他部分基本相同,不再一一叙述。

你可能感兴趣的:(【实战演练】Packet Tracer玩转CCNA实验20-构建企业内部网络综合案例(下))