Skip to content

Instantly share code, notes, and snippets.

@xu1718191411
Last active February 12, 2018 12:23
Show Gist options
  • Save xu1718191411/d824f7250d0fd2900985704652c2cdfb to your computer and use it in GitHub Desktop.
Save xu1718191411/d824f7250d0fd2900985704652c2cdfb to your computer and use it in GitHub Desktop.
纪念我的第五个CCNA实验 OSPF路由协议 ref: https://qiita.com/xu1718191411/items/bfcad92eee0c8e6935b1
Router(config)#router ospf 100
Router(config-router)#network 10.1.0.0 0.0.255.255 area 0
Router(config-router)#exit
Router(config)#router ospf 100
Router(config-router)#network 10.1.0.0 0.0.255.255 area 0
Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip ospf nei
Router#show ip ospf neighbor
Router#
00:19:06: %OSPF-5-ADJCHG: Process 100, Nbr 10.1.5.254 on FastEthernet0/0 from LOADING to FULL, Loading Done
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.1.5.254 1 FULL/DR 00:00:31 10.1.5.254 FastEthernet0/0
Router#
Router(config)#router ospf 100
Router(config-router)#network 10.1.0.0 0.0.255.255 area 0
Router(config-router)#
00:22:10: %OSPF-5-ADJCHG: Process 100, Nbr 10.1.5.254 on FastEthernet0/0 from LOADING to FULL, Loading Done
00:22:10: %OSPF-5-ADJCHG: Process 100, Nbr 10.1.4.254 on FastEthernet0/0 from LOADING to FULL, Loading Done
Router(config-router)#exit
Router(config)#
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip ospf nei
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.1.5.254 1 FULL/DR 00:00:31 10.1.5.254 FastEthernet0/0
10.1.4.254 1 FULL/BDR 00:00:33 10.1.4.254 FastEthernet0/0
Router#
Router(config)#router ospf 100
Router(config-router)#network 10.1.0.0 0.0.255.255 area 0
Router(config-router)#
00:24:25: %OSPF-5-ADJCHG: Process 100, Nbr 10.1.5.254 on FastEthernet0/0 from LOADING to FULL, Loading Done
00:24:25: %OSPF-5-ADJCHG: Process 100, Nbr 10.1.4.254 on FastEthernet0/0 from LOADING to FULL, Loading Done
Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip ospf nei
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.1.5.254 1 FULL/DR 00:00:36 10.1.5.254 FastEthernet0/0
10.1.4.254 1 FULL/BDR 00:00:37 10.1.4.254 FastEthernet0/0
10.1.3.254 1 2WAY/DROTHER 00:00:38 10.1.3.254 FastEthernet0/0
Router(config)#router ospf 100
Router(config-router)#network 10.1.0.0 0.0.255.255 area 0
Router(config-router)#
00:28:22: %OSPF-5-ADJCHG: Process 100, Nbr 10.1.4.254 on FastEthernet0/0 from LOADING to FULL, Loading Done
00:28:22: %OSPF-5-ADJCHG: Process 100, Nbr 10.1.5.254 on FastEthernet0/0 from LOADING to FULL, Loading Done
Router(config-router)#exit
Router(config)#
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip ospf nei
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.1.1.254 1 2WAY/DROTHER 00:00:39 10.1.1.254 FastEthernet0/0
10.1.5.254 1 FULL/DR 00:00:31 10.1.5.254 FastEthernet0/0
10.1.4.254 1 FULL/BDR 00:00:32 10.1.4.254 FastEthernet0/0
10.1.3.254 1 2WAY/DROTHER 00:00:34 10.1.3.254 FastEthernet0/0
Router#
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.1.5.254 1 FULL/DR 00:00:30 10.1.5.254 FastEthernet0/0
10.1.4.254 1 FULL/BDR 00:00:31 10.1.4.254 FastEthernet0/0
10.1.3.254 1 2WAY/DROTHER 00:00:33 10.1.3.254 FastEthernet0/0
10.1.2.254 1 2WAY/DROTHER 00:00:33 10.1.2.254 FastEthernet0/0
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/16 is subnetted, 1 subnets
C 10.1.0.0 is directly connected, FastEthernet0/0
172.16.0.0/24 is subnetted, 3 subnets
O 172.16.10.0 [110/67] via 10.1.2.254, 00:16:37, FastEthernet0/0
O 172.16.20.0 [110/66] via 10.1.2.254, 00:31:43, FastEthernet0/0
O 172.16.30.0 [110/130] via 10.1.2.254, 00:28:36, FastEthernet0/0
O 192.168.20.0/24 [110/65] via 10.1.2.254, 00:59:25, FastEthernet0/0
O 192.168.30.0/24 [110/65] via 10.1.2.254, 01:00:46, FastEthernet0/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment