|
发表于 2024-1-27 12:46:49
|
显示全部楼层
Example Enabling OSPFv2 on an Interface
In the following example, OSPFv2 is configured explicitly on GigabitEthernet interface 0/0/0:
Device(config)# interface GigabitEthernet 0/2/1
Device(config-if)# bandwidth 10000
Device(config-if)# ip address 172.16.1.1 255.255.255.0
Device(config-if)# ip ospf hello-interval 1
Device(config-if)# ip ospf 1 area 0
When the show ip ospf interface command is entered, the following output shows that GigabitEthernet interface 0/0/0 was configured in interface configuration mode to run OSPFv2. The secondary IP addresses on the interface will also be advertised:
Device# show ip ospf interface GigabitEthernet 0/2/1
GigabitEthernet0/0/0 is up, line protocol is up
Internet Address 172.16.1.1/24, Area 0
Process ID 1, Router ID 172.16.11.11, Network Type BROADCAST, Cost: 10
Enabled by interface config, including secondary ip addresses
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 172.16.11.11, Interface address 172.16.1.1
Backup Designated router (ID) 172.16.22.11, Interface address 172.16.1.2
Timer intervals configured, Hello 1, Dead 4, Wait 4, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:00
Supports Link-local Signaling (LLS)
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 172.26.22.11 (Backup Designated Router)
Suppress hello for 0 neighbor(s) |
9#
2024-1-27 12:46:49
回复(0)
收起回复
|