要求:R1 ping 通 123.1.2.3
R1配置:
[Huawei]sysname R1
[R1]
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ospf enable 10 area 0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]q
[R1]
[R1]ospf 10
[R1-ospf-10]dis th
[V200R003C00]
#
ospf 10
#
return
[R1-ospf-10]
[R1-ospf-10]a 0
[R1-ospf-10-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R1-ospf-10-area-0.0.0.0]dis th
[V200R003C00]
#
area 0.0.0.0
network 192.168.1.0 0.0.0.255
#
return
[R1-ospf-10-area-0.0.0.0]q
[R1-ospf-10]
[R1-ospf-10]q
[R1]
[R1]dis ospf interface g0/0/0
OSPF Process 10 with Router ID 192.168.1.1
Interfaces
Interface: 192.168.1.1 (GigabitEthernet0/0/0)
Cost: 1 State: Waiting Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 0.0.0.0
Backup Designated Router: 0.0.0.0
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
[R1]