HCIP-OSPF vlanif实验
实验拓扑:
实验要求:sw1为一个汇聚交换机,周围四个为接入交换机,配置vlanif以分发DHCP地址,使用ospf连通全网
------------------------------------AR1--------------------------------------
sys
sys AR1
ospf 10 rou 1.1.1.1
ar 1
ar 1
int g0/0/0
ip add 10.0.0.1 24
ospf en 10 a 1
------------------------------------SW1--------------------------------------
sys
sys SW1
ospf 10
ar 1
vlan batch 2 to 5
int g0/0/1
#每个接口分配一个vlanif
port hybrid untagged vlan 1
int g0/0/2
port hybrid untagged vlan 2
int g0/0/3
port hybrid untagged vlan 3
int g0/0/4
port hybrid untagged vlan 4
int g0/0/5
port hybrid untagged vlan 5
int vlan 1
ip add 10.0.1.1 24
ospf en 10 a 1
int vlan 2
ip add 10.0.2.1 24
ospf en 10 a 1
int vlan 3
ip add 10.0.3.1 24
ospf en 10 a 1
int vlan 4
ip add 10.0.4.1 24
ospf en 10 a 1
int vlan 5
ip add 10.0.5.1 24
ospf en 10 a 1
此时AR1和AR2应该已经建立了OSPF邻居关系才对,因为建立邻居的条件已经满足了(hello、dead time相同,MTU相同,area ID相同,认证通过,能抓到互相发送的hello包)
但是邻居并没有建立成功