All of the devices used in this document started with a cleared (default) configuration.If your network is live, make sure that you understand the potential impact of any command.
Network Diagram
这是用于在本文的配置示例的网络图。
NBMA (使用网络类型广播)的配置
Router1
interface Loopback0 ip address 3.3.3.3 255.255.255.255 ! ! interface Serial2 ip address 1.1.1.2 255.255.255.0 encapsulation frame-relayip ospf network broadcastno keepalive frame-relay map ip 1.1.1.1 16 broadcast ! ! router ospf 1 network 1.1.1.0 0.0.0.255 area 0
Router2
interface Loopback0 ip address 2.2.2.2 255.255.255.255 ! interface Serial1/0 ip address 1.1.1.1 255.255.255.0 encapsulation frame-relayip ospf network broadcastno keepalive clockrate 2000000 frame-relay map ip 1.1.1.2 16 broadcast ! router ospf 1 network 1.1.1.0 0.0.0.255 area 0 !
验证提示
这是Router1的show命令输出。
Router1#show ip ospf neighborNeighbor ID Pri State Dead Time Address Interface 2.2.2.2 1 FULL/BDR 00:00:37 1.1.1.1 Serial2 Router1#show ip ospf interf