快捷搜索:  汽车  科技

华为路由器ospf多区域配置实例(华为路由器配置开放式最短路径优先OSPF实验)

华为路由器ospf多区域配置实例(华为路由器配置开放式最短路径优先OSPF实验)AR2的ospf路由信息The device is running! <Huawei>system-view #进入系统视图 Enter system view return user view with Ctrl Z. [Huawei]sysname AR3 #修改设备名称 [AR3]interface GigabitEthernet 0/0/0 #进入端口0/0/0 [AR3-GigabitEthernet0/0/0]ip address 10.10.23.2 30 #配置IP地址及子网掩码 [AR3-GigabitEthernet0/0/0]ping 10.10.23.1 #检测连通性 PING 10.10.23.1: 56 data bytes press CTRL_C to break Reply from 10.10.23.1:

华为路由器ospf多区域配置实例(华为路由器配置开放式最短路径优先OSPF实验)(1)

拓扑图

基本信息:

PC1:192.168.10.2/24

PC2:192.168.20.2/24

路由器配置

AR 1 配置信息

The device is running! <Huawei>system-view #进入系统视图 Enter system view return user view with Ctrl Z. [Huawei]sysname AR1 #修改设备名称 [AR1]interface GigabitEthernet 0/0/0 #进入端口0/0/0 [AR1-GigabitEthernet0/0/0]ip address 192.168.10.1 24 #配置IP地址及子网掩码 [AR1-GigabitEthernet0/0/0]ping 192.168.10.2 #检测连通性 PING 192.168.10.2: 56 data bytes press CTRL_C to break Reply from 192.168.10.2: bytes=56 Sequence=1 ttl=128 time=90 ms Reply from 192.168.10.2: bytes=56 Sequence=2 ttl=128 time=20 ms Reply from 192.168.10.2: bytes=56 Sequence=3 ttl=128 time=30 ms Reply from 192.168.10.2: bytes=56 Sequence=4 ttl=128 time=20 ms Reply from 192.168.10.2: bytes=56 Sequence=5 ttl=128 time=20 ms --- 192.168.10.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 20/36/90 ms [AR1-GigabitEthernet0/0/0]quit #退出端口 [AR1]interface GigabitEthernet 0/0/1 #进入端口0/0/1 [AR1-GigabitEthernet0/0/1]ip address 10.10.12.1 30 #配置IP地址及子网掩码 [AR1-GigabitEthernet0/0/1]quit #退出端口 [AR1]ospf 1 #创建ospf进程 1 [AR1-ospf-1]area 0 #创建area区域0,area 0 为骨干区域 [AR1-ospf-1-area-0.0.0.0]network 10.10.12.0 255.255.255.0 #宣告网络及长度 [AR1-ospf-1-area-0.0.0.0]quit #退出区域0 [AR1-ospf-1]area 1 #创建area区域1 [AR1-ospf-1-area-0.0.0.1]network 192.168.10.0 255.255.255.0 #宣告网络及长度 [AR1-ospf-1-area-0.0.0.1]quit #退出区域1 [AR1-ospf-1]quit #退出ospf

AR 2 配置信息

The device is running! <Huawei>system-view #进入系统视图 Enter system view return user view with Ctrl Z. [Huawei]sysname AR2 #修改设备名称 [AR2]interface GigabitEthernet 0/0/0 #进入端口0/0/0 [AR2-GigabitEthernet0/0/0]ip address 10.10.12.2 30 #配置IP地址及子网掩码 [AR2-GigabitEthernet0/0/0]ping 10.10.12.1 #检测连通性 PING 10.10.12.1: 56 data bytes press CTRL_C to break Reply from 10.10.12.1: bytes=56 Sequence=1 ttl=255 time=110 ms Reply from 10.10.12.1: bytes=56 Sequence=2 ttl=255 time=20 ms Reply from 10.10.12.1: bytes=56 Sequence=3 ttl=255 time=20 ms Reply from 10.10.12.1: bytes=56 Sequence=4 ttl=255 time=20 ms Reply from 10.10.12.1: bytes=56 Sequence=5 ttl=255 time=20 ms --- 10.10.12.1 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 20/38/110 ms [AR2-GigabitEthernet0/0/0]quit #退出端口 [AR2]interface GigabitEthernet 0/0/1 #进入端口0/0/1 [AR2-GigabitEthernet0/0/1]ip address 10.10.23.1 30 #配置IP地址及子网掩码 [AR2-GigabitEthernet0/0/1]quit #退出端口 [AR2]ospf 1 #创建ospf进程 1 [AR2-ospf-1]area 0 #创建area区域 0 [AR2-ospf-1-area-0.0.0.0]network 10.10.12.0 255.255.255.0 #宣告网络及长度 [AR2-ospf-1-area-0.0.0.0]network 10.10.23.0 255.255.255.0 #宣告网络及长度 [AR2-ospf-1-area-0.0.0.0]quit #退出区域0 [AR2-ospf-1]quit #退出ospf

AR 3 配置信息

The device is running! <Huawei>system-view #进入系统视图 Enter system view return user view with Ctrl Z. [Huawei]sysname AR3 #修改设备名称 [AR3]interface GigabitEthernet 0/0/0 #进入端口0/0/0 [AR3-GigabitEthernet0/0/0]ip address 10.10.23.2 30 #配置IP地址及子网掩码 [AR3-GigabitEthernet0/0/0]ping 10.10.23.1 #检测连通性 PING 10.10.23.1: 56 data bytes press CTRL_C to break Reply from 10.10.23.1: bytes=56 Sequence=1 ttl=255 time=100 ms Reply from 10.10.23.1: bytes=56 Sequence=2 ttl=255 time=40 ms Reply from 10.10.23.1: bytes=56 Sequence=3 ttl=255 time=10 ms Reply from 10.10.23.1: bytes=56 Sequence=4 ttl=255 time=20 ms Reply from 10.10.23.1: bytes=56 Sequence=5 ttl=255 time=20 ms --- 10.10.23.1 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 10/38/100 ms [AR3-GigabitEthernet0/0/0]quit #退出端口 [AR3]interface GigabitEthernet 0/0/1 #进入端口0/0/1 [AR3-GigabitEthernet0/0/1]ip address 192.168.20.1 24 #配置IP地址及子网掩码 [AR3-GigabitEthernet0/0/1]ping 192.168.20.2 #检测连通性 PING 192.168.20.2: 56 data bytes press CTRL_C to break Reply from 192.168.20.2: bytes=56 Sequence=1 ttl=128 time=50 ms Reply from 192.168.20.2: bytes=56 Sequence=2 ttl=128 time=20 ms Reply from 192.168.20.2: bytes=56 Sequence=3 ttl=128 time=20 ms Reply from 192.168.20.2: bytes=56 Sequence=4 ttl=128 time=10 ms Reply from 192.168.20.2: bytes=56 Sequence=5 ttl=128 time=10 ms --- 192.168.20.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 10/22/50 ms [AR3-GigabitEthernet0/0/1]quit #退出端口 [AR3]ospf 1 #创建ospf进程 1 [AR3-ospf-1]area 0 #创建area区域 0 [AR3-ospf-1-area-0.0.0.0]network 10.10.23.0 255.255.255.0 #宣告网络及长度 [AR3-ospf-1-area-0.0.0.0]quit #退出区域0 [AR3-ospf-1]area 2 #创建area区域 2 [AR3-ospf-1-area-0.0.0.2]network 192.168.20.0 255.255.255.0 #宣告网络及长度 [AR3-ospf-1-area-0.0.0.2]quit #退出区域2 [AR3-ospf-1]quit #退出ospf检测信息

PC1可以访问到PC2,以及路由信息

华为路由器ospf多区域配置实例(华为路由器配置开放式最短路径优先OSPF实验)(2)

AR2的ospf路由信息

华为路由器ospf多区域配置实例(华为路由器配置开放式最短路径优先OSPF实验)(3)

区域号(Area 0)是0的称为骨干区域;骨干区域负责区域之间的路由,非骨干区域之间的路由信息必须通过骨干区域来转发

最后#谢谢##华为##交换机##路由器#

#在头条看世界#

猜您喜欢: