4.17云计算作业

要求:

1.R5为ISP,其上只能配置IP地址;R5与其他所有直连设备间均使用公有IP;环回地址为100.1.1.1/3

2.R4设备为企业出口路由器

3.整个0SPF环境IP基于172.16.0.0/16划分

4.所有设备均可访问R5的环回;

5.减少LSA的更新里,加快收敛,保障更新安全

6.全网可达 

配置:

r1

int g 0/0/0
ip address  172.16.35.1 29
q
int l 0
ip address 172.16.32.1 24	
ospf network-type broadcast 
ospf 1 router-id 1.1.1.1
area 1	
network 172.16.32.1 0.0.0.0
network 172.16.35.1 0.0.0.0
 
ospf 1
area 1
stub
 
int g 0/0/0
ospf n	
ospf network-type p2mp
 
ospf timer hello 5

r2

int g0/0/0 
ip address 172.16.35.2 29
q
int l 0 
ip address 172.16.33.1 24
ospf network-type broadcast 
 
ospf 1 router-id 2.2.2.2
area 1
network 172.16.33.1 0.0.0.0 
network 172.16.35.2 0.0.0.0
 
ospf 1
area 1
stub
 
int g 0/0/0 

ospf network-type p2mp
 
ospf timer hello 5

r3

int g 0/0/0
ip address 172.16.35.3 29
q
int g 0/0/1
ip address 172.16.0.1 30
q
int l 0
ip address 172.16.34.1 24
ospf network-type broadcast 
 
ospf 1 router-id 3.3.3.3
area 1
network 172.16.35.3 0.0.0.0
network 172.16.34.1 0.0.0.0
area 0
network 172.16.0.1 0.0.0.0
 
ospf 1
area 1	
abr-summary 172.16.32.0 255.255.224.0
 
area 1
stub no-summary
 
int g 0/0/1
ospf network-type p2p
int g 0/0/0
ospf network-type p2mp
 
ospf timer hello 5
 
ospf 1
area 0
authentication-mode md5 1 cipher 123456

r4

int g 0/0/0 
ip address 172.16.0.9 30 
q
int g 0/0/1 
ip address 172.16.0.2 30 
q
int g 0/0/2 
ip address 172.16.0.5 30
q
int s 4/0/1
ip address 45.0.0.1 30
q
 
ospf 1 router-id 4.4.4.4
area 0
network 172.16.0.2 0.0.0.0
network 172.16.0.5 0.0.0.0
network 172.16.0.9 0.0.0.0
 
ospf 1
default-route-advertise 
 
int g 0/0/1
ospf network-type p2p
 
ospf 1
area 0
authentication-mode md5 1 cipher 123456
 
acl 2000
rule permit source 172.16.0.0 0.0.255.255
q
int s 4/0/1
nat outbound 2000

r6

int g 0/0/0
ip add 172.16.66.1 30
q
int g 0/0/1
ip add 172.16.0.6 30
q
int l 0
ip add 172.16.64.1 24
ospf network-type broadcast 
 
ospf 1 router-id 6.6.6.6
area 0
network 172.16.0.6 0.0.0.0
area 2
network 172.16.66.1 0.0.0.0
network 172.16.64.1 0.0.0.0
 
ospf 1
area 2
abr-summary 172.16.64.0 255.255.224.0

area 2
nssa no-summary
 
ospf 1
area 0	
authentication-mode md5 1 cipher 123456

r7

int g 0/0/0
ip add 172.16.0.10 30
q
int g 0/0/1
ip add 172.16.98.1 30
q
int l 0
ip add 172.16.96.1 24	
ospf network-type  broadcast 
 
ospf 1 router-id 7.7.7.7
area 0
network 172.16.0.10 0.0.0.0
q
area 3
network 172.16.96.1 0.0.0.0
network 172.16.98.1 0.0.0.0
 
ospf 1
area 3	
abr-summary 172.16.96.0 255.255.224.0
 
ospf 1
area 3	
nssa no-summary 
 
ospf 1
area 0
authentication-mode md5 1 cipher 123456

r8

int g 0/0/0
ip address 172.16.98.2 30
q
int g 0/0/1
ip ad 172.16.98.5 30
q
int l 0
ip ad 172.16.97.1 24
 
ospf 1 router-id 8.8.8.8
area 3
network 172.16.98.2 0.0.0.0
network 172.16.97.1 0.0.0.0
network 172.16.98.5 0.0.0.0
 
ospf 1
area 3
nssa

r9

int g 0/0/0
ip add 172.16.98.6 30
q
int g 0/0/1
ip add 172.16.130.1 30
q
int l 0
ip add 172.16.128.1 24
ospf network-type broadcast 
 	
ospf 1 router-id 9.9.9.9
area 3
network 172.16.98.6 0.0.0.0	
ospf 2 router-id 9.9.9.9
area 4
network 172.16.128.1 0.0.0.0
network 172.16.130.1 0.0.0.0
 
ospf 1
import-route  ospf 2
q
ospf 2
import-route ospf 1
 
ospf 1
asbr-summary 172.16.128.0 255.255.224.0
 
ospf 1
area 3
nssa
ospf 2
default-route-advertise

r10

int g 0/0/0
ip add 172.16.130.2 30
q
int l 0
ip add 172.16.129.1 24
ospf network-type broadcas
 
ospf 1 router-id 10.10.10.10
area 4
network 172.16.129.1 0.0.0.0
network 172.16.130.2 0.0.0.0

r11

int g 0/0/0
ip add 172.16.66.2 30
q
int g 0/0/1
ip add 172.16.66.5 30
q
int l 0
ip add 172.16.65.1 24
ospf network-type broadcast 
 
ospf 1 router-id 11.11.11.11
area 2	
network 172.16.65.1 0.0.0.0
network 172.16.66.5 0.0.0.0
network 172.16.66.2 0.0.0.0
 
ospf 1
area 2
nssa

r12

int g 0/0/0
ip add 172.16.66.6 30
q
int l 0
ip add 10.1.1.1 24
q
int l 1
ip add 10.1.2.1 24
 
ospf 1 router-id 12.12.12.12
area 2
network 172.16.66.6 0.0.0.0
rip 1
ver 2
network 10.0.0.0
 
ospf 1
import-route rip 1
 
ospf 1
asbr-summary 10.1.0.0 255.255.252.0
 
ospf 1
area 2
nssa

尝试ping 100.1.1.1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值