路由实验10参考指令

DMS
en
conf t
ip routing
int f0/24
no sw
ip add 192.168.0.1 255.255.255.252
no shu
int f0/1
no sw
ip add 192.168.10.251 255.255.255.0
no shu
int f0/2
no sw
ip add 192.168.11.251 255.255.255.0
no shu
end
conf t
route ospf 1
network 192.168.0.0 255.255.255.252 area 0
net 192.168.10.0 255.255.255.0 area 0
net 192.168.11.0 255.255.255.0 area 0


MS1
en
conf t
ip routing
int f0/24
no sw
ip add 192.168.0.5 255.255.255.252
no shu
int f0/23
no sw
ip add 192.168.0.13 255.255.255.252
no shu
int f0/1
no sw
ip add 192.168.20.251 255.255.255.0
no shu
end
conf t
route ospf 1
net 192.168.0.12 255.255.255.252 area 0
net 192.168.0.16 255.255.255.252 area 0
net 192.168.20.0 255.255.255.0 area 0

MS2
en
conf t
ip routing
int f0/24
no sw
ip add 192.168.0.9 255.255.255.252
no shu
int f0/23
no sw
ip add 192.168.0.14 255.255.255.252
no shu
int f0/1
no sw
ip add 192.168.30.251 255.255.255.0
no shu
end
conf t
route ospf 1
net 192.168.0.8 255.255.255.252 area 0
net 192.168.0.12 255.255.255.252 area 0
net 192.168.30.0 255.255.255.0 area 0
end
conf t
int f0/1
ip helper-add 192.168.11.1

CoreSW
en
conf t
ip routing
int f0/1
no sw
ip add 192.168.0.2 255.255.255.252
no shu
int f0/3
no sw
ip add 192.168.0.6 255.255.255.252
no shu
int f0/4
no sw
ip add 192.168.0.10 255.255.255.252
no shu
int g0/1
no sw
ip add 192.168.0.18 255.255.255.252
no shu
end
conf t
route ospf 1
net 192.168.0.0 255.255.255.252 area 0
net 192.168.0.4 255.255.255.252 area 0
net 192.168.0.8 255.255.255.252 area 0
net 192.168.0.16 255.255.255.252 area 0


FR
en
conf t
int g0/0
ip add 192.168.0.17 255.255.255.252
no shu
end
conf t
route ospf 1
net 192.168.0.16 255.255.255.252 area 0


WR
en
conf t

//********************************
FR
en
conf t
ip nat pool NATPOOL 202.194.64.0 202.194.64.200 netmask 255.255.255.0
access-list 1 permit 192.168.0.0 0.0.255.255
access-list 1 deny 192.168.30.0 0.0.0.255
access-list 1 deny 192.168.10.0 0.0.0.255
ip nat inside source list 1 pool NATPOOL 
ip nat inside source static 192.168.11.1 202.194.64.251
int g0/0
ip nat inside
int s0/0/0
ip nat outside
end
conf t
ip route 0.0.0.0 0.0.0.0 s0/0/0
router ospf 1
default-information originate


//
access-list 10 permit 192.168.11.0 0.0.0.255
int f0/1
ip access-g 10 out
 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值