设为首页收藏本站language 语言切换
查看: 1891|回复: 2
收起左侧

[分享] OSPF配置

[复制链接]
发表于 2013-8-9 23:05:33 | 显示全部楼层 |阅读模式
1.1  配置参考
路由器A的配置:
[RTA]interface Ethernet 0/0
[RTA-Ethernet0/0]ip address 10.1.1.1 30
[RTA-Ethernet0/0]quit
[RTA]interface LoopBack 0                           
[RTA-LoopBack0]ip address 1.1.1.1 32
[RTA-LoopBack0]quit
[RTA]router-id 1.1.1.1                               必须先设定router id
[RTA]ospf 1
[RTA-ospf-1]area 0
[RTA-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.3
[RTA-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
路由器B的配置:
[RTB]interface Ethernet 0/
[RTB-Ethernet0/0]ip address 10.1.1.2 30
[RTB-Ethernet0/0]quit
[RTB]interface LoopBack 0
[RTB-LoopBack0]ip address 2.2.2.2 32
[RTB-LoopBack0]quit
[RTB]interface Serial1/0
[RTB-Serial1/0]ip address 192.2.2.1 30
[RTB-Serial1/0]quit
[RTBA]router-id 2.2.2.2                              
[RTBA]ospf 1
[RTBA-ospf-1]area 0
[RTBA-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.3
[RTBA-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[RTBA-ospf-1-area-0.0.0.0]quit
[RTBA-ospf-1]area 1
[RTBA-ospf-1-area-0.0.0.1]network 192.2.2.0 0.0.0.3
路由器C的配置:
[RTC]interface Serial1/0
[RTC-Serial1/0]ip address 192.2.2.2 30
  [RTC-Serial1/0]quit
[RTC]interface LoopBack 0
[RTC-LoopBack0]ip address 3.3.3.3 32
[RTC-LoopBack0]quit
[RTCA]router-id 3.3.3.3                              
[RTCA]ospf 1
[RTCA-ospf-1]area 1
[RTCA-ospf-1-area-0.0.0.1]network 192.2.2.0 0.0.0.3
[RTCA-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0

发表于 2013-10-8 16:33:48 | 显示全部楼层
沙发 2013-10-8 16:33:48 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-10-15 17:14:08 | 显示全部楼层
板凳 2013-10-15 17:14:08 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-2 23:53 , Processed in 0.083735 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表