您的位置:首页 > 理论基础 > 计算机网络

OSPF 简单配置实例

2010-11-16 22:00 344 查看
网络拓扑图:CCNP
认证



 

所有子网掩码:255.255.255.0
HostA: 10.1.1.1      GW: 10.1.1.2
BT4教程

HostB: 10.2.1.1      GW: 10.2.1.2

HostC: 10.3.1.1      GW: 10.3.1.2

HostD: 10.4.1.1      GW: 10.4.1.2

 
[RouterA]int e0
[RouterA-Ethernet0/0]ip

addr 10.1.1.1 255.255.255.0
[RouterA-Ethernet0/0]undo shut
[RouterA-Ethernet0/0]int e1
[RouterA-Ethernet0/1]ip addr 10.2.1.1 255.255.255.0
[RouterA-Ethernet0/1]undo shut
[RouterA-Ethernet0/1]int s0
[RouterA-Serial0/0]ip addr 10.6.1.1 255.255.255.0
[RouterA-Serial0/0]undo shut
[RouterA]ospf
ccie认证

[RouterA-ospf-1]area 0
[RouterA-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0]network 10.2.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0]network 10.6.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0]quit
 
 
[RouterB]int e0
[RouterB-Ethernet0/0]ip addr 10.3.1.1 255.255.255.0
[RouterB-Ethernet0/0]undo shut
[RouterB-Ethernet0/0]int e1
[RouterB-Ethernet0/1]ip addr 10.4.1.1 255.255.255.0
[RouterB-Ethernet0/1]undo shut
[RouterB-Ethernet0/1]int s0
[RouterB-Serial0/0]ip addr 10.6.1.0 255.255.255.0
[RouterB-Serial0/0]undo shut
[RouterB-Serial0/0]quit
[RouterB]ospf

cisco ios下载

[RouterB-ospf-1]area 0
[RouterB-ospf-1-area-0.0.0.0]network 10.3.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0]network 10.4.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0]network 10.6.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0]quit
[RouterB]

文章转载至思科网络技术论坛

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  network 网络 bt 思科 ios