实验拓扑:
实验环境:
实验环境主要是H3C模拟器,模拟器物理连接拓扑如下,所有PC机都是通过路由器,或者loopback接口模拟实现。
实验步骤:
1. 首先按照拓扑配置各个设备接口地址,然后在两台路由器接口上运行OSPF协议两台PC之间可以相互访问。
R1的配置命令:
System View: return to User View with Ctrl+Z.
[H3C]sys R1
[R1]int s0/2/0
[R1-Serial0/2/0]ip add 10.1.1.1 24
[R1-Serial0/2/0]un sh
Interface Serial0/2/0 is not shut down
[R1-Serial0/2/0]qu
[R1]int lo 0
[R1-LoopBack0]ip add 1.1.1.1 32
[R1-LoopBack0]qu
[R1]vlan 13
[R1]int vlan 13
[R1-Vlan-interface13]ip add 10.1.2.1 24
[R1-Vlan-interface13]un sh
Interface Vlan-interface13 is not shut down
[R1-Vlan-interface13]qu
[R1]int e0/4/0
[R1-Ethernet0/4/0]p a v 13
%Nov 28 23:12:01:669 2011 R1 IFNET/4/LINK UPDOWN:
Vlan-interface13: link status is UP
%Nov 28 23:12:01:669 2011 R1 IFNET/4/UPDOWN:
Line protocol on the interface Vlan-interface13 is UP
[R1-Ethernet0/4/0]qu
[R1]int e0/4/5
[R1-Ethernet0/4/5]
[R1-Ethernet0/4/5]
[R1-Ethernet0/4/5]p a v 13
[R1-Ethernet0/4/5]qu
[R1]ospf 1
[R1-ospf-1]ar
%Nov 28 23:09:38:101 2011 R1 IFNET/4/LINK UPDOWN:
Ethernet0/4/0: link status is DOWN e
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]net 10.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]net 10.1.2.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]net 1.1.1.1 0.0.00.0
[R1-ospf-1-area-0.0.0.0]qu
%Nov 28 23:10:09:254 2011 R1 IFNET/4/LINK UPDOWN:
Ethernet0/4/0: link status is DOWN
[R1-ospf-1]
%Nov 28 23:10:12:62 2011 R1 IFNET/4/LINK UPDOWN:
Ethernet0/4/0: link status is UP
R2配置同R1类似
//R2 ping R1直连测试
//查看OSPF邻居状态
//查看OSPF的全局汇总信息,有好多有用信息注意观察
//查看OSPF链路状态数据库
//通过OSPF学习到2.2.2.2/32 10.1.3.0 /24 两个子网的路由
//R1可以ping 通 2.2.2.2
1. 配置交换机
System View: return to User View with Ctrl+Z.
[H3C]sys SW1
[SW1]vlan 13
[SW1-vlan13]qu
[SW1]vlan 23
[SW1-vlan23]qu
[SW1]int e0/4/0
[SW1-Ethernet0/4/0]p a v 13
[SW1-Ethernet0/4/0]qu
[SW1]int e0/4/5
[SW1-Ethernet0/4/5]p a v 13
[SW1-Ethernet0/4/5]qu
[SW1]int e0/4/1
[SW1-Ethernet0/4/1]p a v 23
[SW1-Ethernet0/4/1]qu
[SW1]int e0/4/2
[SW1-Ethernet0/4/2]p a v 23
[SW1-Ethernet0/4/2]qu
//将pc1 划入 vlan13 pc2 划入vlan23,pc1和pc2都是通过三层交换机来模拟
//pc1 ping 网关通
//pc2 ping 网关通
//pc2 与全网ping测试,通过OSPF学习路由信息全网互通,实验完成。
|
|
||
|
|
||
|
|
7月26 |
H3CNE认证 |
热报中 |
8月16 |
H3C-IMC认证 |
热报中 |
7月26 |
H3CNE认证 |
热报中 |
7月26 |
H3CIE+认证 |
热报中 |
8月16 |
H3C-IMC认证 |
热报中 |
7月26 |
H3CNE培训 |
热报中 |
7月26 |
H3CSE认证 |
热报中 |
8月16 |
H3C无线 |
热报中 |
7月26 |
H3CSE培训 |
热报中 |
8月16 |
H3CIMC培训 |
热报中 |
8月16 |
H3C无线培训 |
热报中 |
8月31 |
H3CEAD培训 |
热报中 |
8月16 |
H3CPME认证 |
热报中 |
8月16 |
H3C安全认证 |
热报中 |
8月16 |
H3CIMC培训 |
热报中 |
8月16 |
H3C无线培训 |
热报中 |
8月09 |
H3CEAD培训 |
热报中 |
8月16 |
H3CPME认证 |
热报中 |
8月16 |
H3C安全认证 |
热报中 |
8月16 |
H3CIMC培训 |
热报中 |
8月09 |
H3C无线培训 |
热报中 |
8月09 |
H3CEAD培训 |
热报中 |
8月09 |
H3CPME认证 |
热报中 |
8月09 |
H3C安全认证 |
热报中 |