华为ospf动态路由实验
路由器ar1配置如下:
[Huawei]dis cu
[V200R003C00]
#
interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.1.254 255.255.255.0
#
ospf 1
area 0.0.0.0
network 10.0.0.0 0.0.0.255
network 192.168.1.0 0.0.0.255
路由器ar2配置如下:
[Huawei]dis cu
[V200R003C00]
#
interface GigabitEthernet0/0/0
ip address 10.0.0.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.2.254 255.255.255.0
#
ospf 1
area 0.0.0.0
network 10.0.0.0 0.0.0.255
network 192.168.2.0 0.0.0.255
经过观察我们发现ar1缺的192.168.2.0 /24 网段的路由
经过ospf的配置,我们发现ar2通过ospf学习到了192.168.1.0 /24的路由。