码迷,mamicode.com
首页 > 其他好文 > 详细

OSPF与静态路由

时间:2020-05-31 17:48:22      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:http   ethernet   size   style   ddr   ber   inf   inter   pre   

技术图片

AR3配置

interface GigabitEthernet0/0/0
 ip address 23.1.1.3 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.1.254 255.255.255.0 

ospf 1 router-id 3.3.3.3 
 area 0.0.0.0 
  network 23.1.1.0 0.0.0.255 
  network 192.168.1.0 0.0.0.255 
#
ip route-static 0.0.0.0 0.0.0.0 23.1.1.2

AR2配置

interface GigabitEthernet0/0/0
 ip address 23.1.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 12.1.1.2 255.255.255.0 

ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 12.1.1.0 0.0.0.255 
  network 23.1.1.0 0.0.0.255 
#
ip route-static 0.0.0.0 0.0.0.0 12.1.1.1

AR1配置

acl number 2000  
 rule 5 permit source 192.168.1.0 0.0.0.255 

interface GigabitEthernet0/0/0
 ip address 14.1.1.1 255.255.255.0 
 nat outbound 2000  #NAT转换
#
interface GigabitEthernet0/0/1
 ip address 12.1.1.1 255.255.255.0 

ospf 1 router-id 1.1.1.1 
 area 0.0.0.0 
  network 12.1.1.0 0.0.0.255 
#
ip route-static 0.0.0.0 0.0.0.0 14.1.1.4

ISP配置

interface GigabitEthernet0/0/0
 ip address 14.1.1.4 255.255.255.0 

interface LoopBack0
 ip address 4.4.4.4 255.255.255.255 

测试

技术图片

 

OSPF与静态路由

标签:http   ethernet   size   style   ddr   ber   inf   inter   pre   

原文地址:https://www.cnblogs.com/liujunjun/p/13019847.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!