ip ospf network point-to-point #更改接口为p2p模式interfacef0/1ip address56.1.1.5255.255.255.0no shutdown router ospf1router-id5.5.5.5network25.1.1.00.0.0.255area2router rip version2no auto-summary network5.5.5.5network56.1.1.0redistribute ospf1subnets metric3#将ospf重分布到rip里 router ospf1redis...
OSPF 自治系统中的所有区域都必须在物理上与骨干区域 (area 0) 相连。 在无法实现这种物理连接的情况下,可利用虚拟链接来通过非骨干区域建立连到骨干网的接。如前所述,您还可以使用虚拟链路通过非主干区域来连接已分区主干区域的两个部分。配置虚拟链路所使用的区域称为中转区域,这种区域必须具有全部路由信息。中转区...
此处的“1”表示OSPF进程的ID号,可以根据实际情况进行修改。然后,我们需要配置一个区域(Area),这里我们选择配置为区域0(backbone area): ``` R1(config-router)# network 192.168.1.1 0.0.0.0 area 0 ``` 这里的network命令表示将与指定的网络地址匹配的接口添加到指定的区域(Area)中。同样地,在R2上进行配置,...
ip address 1.1.1.1 255.255.255.255 ! interface Ethernet2/0 ip address 12.1.1.1 255.255.255.0 duplex full ! interface Ethernet2/2 ip address 13.1.1.1 255.255.255.0 duplex full ! router ospf 1 network 12.1.1.0 0.0.0.255 area 0 network 13.1.1.0 0.0.0.255 area 0 R2: interface Loopback0 ip ...
interface Ethernet1/0 ip address 12.1.1.1 255.255.255.0 interface Ethernet1/1 ip address 13.1.1.1 255.255.255.0 router ospf 110 router-id 1.1.1.1 network 13.1.1.1 0.0.0.0 area 0 router rip version 2 network 12.0.0.0 no auto-summary
ip ospf 1 area 99 ! interface Loopback0 ip address 10.2.2.2 255.255.255.255 ! ip route 10.1.1.1 255.255.255.255 192.168.12.1 ! router ospf 1 router-id 0.0.0.2 redistribute static metric-type 1 subnets 配置R3 interface Ethernet0/0
区域认证首先在OSPF进程下执行区域认证,然后在接口模式配置message-digest-key,配置如下: R1: router ospf 100 router-id 1.1.1.1 area 0 authentication message-digest启用区域认证 network 1.1.1.0 0.0.0.255 area 0 network 12.1.1.0 0.0.0.255 area 0 ...
1.配置路由器R1,R2,R3设备之间的连接,PC0和PC1连接路由器的内网口。2.配置R1的接口ip和ospf,接口分别属于area0和area1.3.配置R2的接口ip和ospf骨干区域。R2的所有接口都属于area0.4.配置R3的ip地址和opsf,R3的接口分别属于area0和area2.5.在R1或者R3的路由器上查看学到的ospf的IA路由,IA表示学到的为...
R1(config)#route ospf 1 #启用ospf协议 R1(config-router)#network 7.7.7.7 area 0 R1(config-router)#network 68.1.1.2 area 0 R1(config-router)#end R1#write R2配置如下: R2>enable R2#configure terminal R2(config)#no ip domain-lookup
router ospf 110 router-id 172.16.107.3 redistribute connected metric 25 subnets redistribute static network 172.16.106.6 0.0.0.0 area 0 network 172.16.107.3 0.0.0.0 area 0 此时,全网互通,同时我们在核心路由上学到的172.16.106.52/30的路由输出如下: ...