DES-7200 Configuration Guide Chapter 4 OSPF
Configuration
4-38
¾ Configure D
Step 1: Configure IP address of the interface
D(config)#interface gigabitEthernet 0/3
D(config-if-GigabitEthernet 0/3)#ip address 192.168.3.2 255.255.255.0
D(config-if-GigabitEthernet 0/3)#exit
D(config)#interface gigabitEthernet 0/4
D(config-if-GigabitEthernet 0/4)#ip address 192.168.6.1 255.255.255.0
D(config-if-GigabitEthernet 0/4)#exit
Step 2: Configure OSPF basic features
D(config)#router ospf 1
D(config-router)#network 192.168.3.0 0.0.0.255 area 2
D(config-router)#network 192.168.6.0 0.0.0.255 area 2
Verify configurations
Step 1: Display information about neighbors (taking A/B as the example)
A#show ip ospf neighbor
OSPF process 1, 2 Neighbors, 2 is Full:
Neighbor ID Pri State Dead Time Address Interface
192.168.1.2 1 Full/DR 00:00:40 192.168.1.2 GigabitEthernet 0/1
192.168.2.2 1 Full/BDR 00:00:34 192.168.2.2 GigabitEthernet 0/2
B#show ip ospf neighbor
OSPF process 1, 2 Neighbors, 2 is Full:
Neighbor ID Pri State Dead Time Address Interface
192.168.1.1 1 Full/BDR 00:00:32 192.168.1.1 GigabitEthernet 0/1
192.168.3.2 1 Full/BDR 00:00:30 192.168.3.2 GigabitEthernet 0/2
Step 2: Display OSPF routing information of A
SwitchA#show ip route
Codes: C - connected, S - static, R - RIP, B - BGP
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
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default
Gateway of last resort is no set
C 192.168.1.0/24 is directly connected, GigabitEthernet 0/1