DES-7200 Configuration Guide Chapter 4 OSPF
Configuration
4-37
A(config)#interface gigabitEthernet 0/1
A(config-if-GigabitEthernet 0/1)#ip address 192.168.1.1 255.255.255.0
A(config-if-GigabitEthernet 0/1)#exit
A(config)#interface gigabitEthernet 0/2
A(config-if-GigabitEthernet 0/2)#ip address 192.168.2.1 255.255.255.0
A(config-if-GigabitEthernet 0/2)#exit
Step 2: Configure OSPF basic features
A(config)#router ospf 1
A(config-router)#network 192.168.1.0 0.0.0.255 area 0
A(config-router)#network 192.168.2.0 0.0.0.255 area 1
¾ Configure B
Step 1: Configure IP address of the interface
B(config)#interface gigabitEthernet 0/1
B(config-if-GigabitEthernet 0/1)#ip address 192.168.1.2 255.255.255.0
B(config-if-GigabitEthernet 0/1)#exit
B(config)#interface gigabitEthernet 0/2
B(config-if-GigabitEthernet 0/2)#ip address 192.168.3.1 255.255.255.0
B(config-if-GigabitEthernet 0/2)#exit
Step 2: Configure OSPF basic features
B(config)#router ospf 1
B(config-router)#network 192.168.1.0 0.0.0.255 area 0
B(config-router)#network 192.168.3.0 0.0.0.255 area 2
¾ Configure C
Step 1: Configure IP address of the interface
C(config)#interface gigabitEthernet 0/3
C(config-if-GigabitEthernet 0/3)#ip address 192.168.2.2 255.255.255.0
C(config-if-GigabitEthernet 0/3)#exit
C(config)#interface gigabitEthernet 0/4
C(config-if-GigabitEthernet 0/4)#ip address 192.168.5.1 255.255.255.0
C(config-if-GigabitEthernet 0/4)#exit
Step 2: Configure OSPF basic features
C(config)#router ospf 1
C(config-router)#network 192.168.2.0 0.0.0.255 area 1
C(config-router)#network 192.168.5.0 0.0.0.255 area 1