Configure the IP address of the Layer 3 interface on Huawei MA5680T /Huawei MA5683T
huawei(config)#vlan 2 smart
huawei(config)#port vlan 2 0/19 0
huawei(config)#interface vlanif 2
huawei(config-if-vlanif2)#ip address 10.0.0.1 24
huawei(config-if-vlanif2)#quit
Enable OSPF on MA5600T/MA5603T_A and specify the area ID to which the interface belongs.
huawei(config)#ospf
huawei(config-ospf-1)#area 0
huawei(config-ospf-1-area-0.0.0.0)#network 10.0.0.0 0.0.0.255
huawei(config-ospf-1-area-0.0.0.0)#quit
huawei(config-ospf-1)#quit
Configure the OSPF router ID on MA5600T/MA5603T_A.
huawei(config)#router id 1.1.1.1
Configure three static routes.
huawei(config)#ip route-static 10.0.0.1 32 vlanif 2 20.0.0.1
huawei(config)#ip route-static 10.0.0.1 32 vlanif 2 30.0.0.1
huawei(config)#ip route-static 10.0.0.1 32 vlanif 2 40.0.0.1
Import static routes into the OSPF routing table to improve its capability of obtaining routes.
huawei(config)#ospf
hawei(config-ospf-1)#import-route static
hawei(config-ospf-1)#quit
Save the data.
huawei(config)#save