⑴ ospf 配置
你好,
1楼答案中,若把端口类型设置为Point-To-Point模式,是否需要在OSPF设置中手工指定OSPF的邻居关系?
没有硬件设备,只是用Cisco Packet Tracer5.3做了下实验,因为是模拟器,所以难免在真实环境中有疏忽之处。
R1配置如下:
R1#show run
Building configuration...
Current configuration : 956 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1 //路由器命名
!
!
username R4 password 0 123 //此用户名及密码用于路由器PPP链路上的PAP认证(R4和R1通过PPP链路相连)
!
!
interface FastEthernet0/0
no ip address
plex auto
speed auto
shutdown
!
interface FastEthernet0/1 //此接口对应拓扑图中的e0
ip address 192.168.1.1 255.255.255.0
plex auto
speed auto
!
interface Serial0/0 //此接口对应拓扑图中的s0,用于帧中继连接
ip address 10.0.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 10.0.1.2 102 broadcast //帧中继是在二层根据DLCI号寻址,这里手工指定DLCI对应的IP地址
frame-relay map ip 10.0.1.3 103 broadcast
frame-relay lmi-type ansi
no frame-relay inverse-arp //关闭接口的ARP逆向解析,即禁止本地DLCI向帧中继交换机发出反向地址解析,例如DLCI“102”对应的IP地址为“10.0.1.2”,该接口有两个DLCI号,动态解析在多链路环境下容易出错,所以建议关闭,而是手工指定。
ip ospf network broadcast //帧中继接口默认是NBMA(非广播多点接入类型),而OSPF的邻居关系是通过广播hello包协商的,所以此处将指定该接口在OSPF协议中的类型为广播多点接入类型。此外,如果设置为Point-To-Point类型,则需要在OSPF配置中手工指定OSPF邻居。
!
interface Serial0/1 //此接口对应拓扑图中的s1
ip address 10.0.2.1 255.255.255.0
encapsulation ppp //封装类型为PPP
ppp authentication pap //R1作为主验证方,认证协议为pap (R4为被验证方,在其端口设置中,应配置正确的用户名及密码,即“R4/123”)
clock rate 64000
!
router ospf 100 //OSPF配置
log-adjacency-changes
network 10.0.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 1
!
ip classless
!
!
line con 0
line vty 0 4
login
!
end
以上,供参考
⑵ 求在帧中继网络起OSPF的配置
你说的虚链路是OSPF里的虚链路是吧?那就应该不只有3台路由了啊,不然R1R2或者R1R3之间的虚链路上其他支干区域上的路由哪里去了?
⑶ 在配置帧中继中,如果两边的路由配置ospf协议,如果网络类型不改, 为什么不通。
这个与ospf的操作属性有关,在CCNP的ospf那个章节中有个表格有具体的介绍。还有就是ospf的DRother路由器只会将自己的信息通告给DR,而不会将其从DR收到的信息再发送出去。所以在帧中继网络中,若两边的路由器是DR,则两边的路由器无法发现对方,所以有两种解决方式:1、更改ospf的网络类型,使其能够自动发现邻居。2、强制中间的那个路由器作为DR,DR就能够将两边的信息进行交换。
⑷ ipv6 配置ospfv3协议 路由器id怎么样设置区域怎么划分才能保证网络没有问题
路由器ID不能一样,区域必须是非骨干区域和骨干区域相连。
⑸ 帧中继和OSPF虚链路问题
1、先把帧中继配置如下:
R1:
int s3/0
encapsulation frame-relay ===>封装帧中继接口
no frame-relay inverse-arp ==>关掉反相ARP解析
frame-relay map ip 123.0.0.2 102 broadcast
frame-relay map ip 123.0.0.3 103 broadcast
R2:
int s3/0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 123.0.0.1 201 broadcast
frame-relay map ip 123.0.0.3 203 broadcast
R3:
int s3/0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 123.0.0.1 301 broadcast
frame-relay map ip 123.0.0.2 302 broadcast
end
2、按要求运行OSPF 路由协议
R1:
R1(config)#router ospf 10
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 123.0.0.0 0.0.0.255 area 123
R1(config-router)#network 15.0.0.0 0.0.0.255 area 0
interface Serial3/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 90
network 3.3.3.0 0.0.0.255
no auto-summary
no eigrp log-neighbor-changes
!
router ospf 10
router-id 3.3.3.3
log-adjacency-changes
area 123 virtual-link 1.1.1.1
redistribute eigrp 90 metric 2 subnets
network 34.0.0.0 0.0.0.255 area 34
network 123.0.0.0 0.0.0.255 area 123
!
ip classless
no ip http server
no ip http secure-server
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 5 15
!
!
end R4#show run
Building configuration...Current configuration : 1357 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
ip ssh time-out 120
ip ssh authentication-retries 3
!
!
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface FastEthernet0/0
ip address 25.0.0.4 255.255.255.0
plex half
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 34.0.0.4 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 10
router-id 4.4.4.4
log-adjacency-changes
redistribute rip subnets
network 4.4.4.0 0.0.0.255 area 25
network 25.0.0.0 0.0.0.255 area 25
network 34.0.0.0 0.0.0.255 area 34
!
ip classless
no ip http server
no ip http secure-server
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 5 15
!
!
end R5#show run
Building configuration...Current configuration : 1239 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R5
!
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
ip audit notify log
ip audit po max-events 100
ip ssh time-out 120
ip ssh authentication-retries 3
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 25.0.0.5 255.255.255.0
plex half
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 15.0.0.5 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial3/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 10
router-id 5.5.5.5
log-adjacency-changes
network 15.0.0.0 0.0.0.255 area 0
network 25.0.0.0 0.0.0.255 area 25
!
ip classless
no ip http server
no ip http secure-server
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 5 15
!
!
⑹ 在配置帧中继的情况下配置ospf有什么要注意的 【在线等 急!】
帧中继NBMA,单播指邻居或者改网络类型,子接口也行。
⑺ 在华为路由器中如何在帧中继中启用OSPF协议
帧中继默认是NBMA的网络,因此你的OSPF邻居是建不起来的,因为OSPF靠组播式的hello包去发现邻居,你需要人工指定邻居或者修改接口的网络类型才可以。
⑻ 如何给Cisco路由器配置ipv6地址并将该地址宣告到OSPF进程中
R1(config)# ipv6 unicast-routing
R1(config)# ipv6 cef
R1(config)# ipv6 router ospf 11
R1(config-router)# route-id 11.11.4.4
R1(config)# interface fastether 0/1
R1(config-if)# ipv6 address fc01:db8:74:c::/64 eui-64
R1(config-if)# ipv6 ospf 11 area 0
启用IPv6功能启用IPV6的CEF,一定要打,默认是关。启用OSPF进程指定R-ID。
配置接口相应的IPv6 地址,
接口上启用OSPF,R1是区域0
⑼ 如何配置帧中继呢
lz请详细点,我先告诉这么多,如有更多需求请讲
R1router
interfaces0/0
encapsulationframe-relay
noframe-relayinverse-arp
frame-relay?
interface-dlciDefineaDLCIonaninterface/subinterface
lmi-typeUseCISCO-ANSI-CCITTtypeLMI
routeB(config-if)#frame-relaylmi-type?
ansi
cisco
q933a
routeA(config-if)#frame-relaylmi-typecisco
ipaddress192.168.88.1255.255.255.0
frame-relaymapip192.168.88.2102broadcast
frame-relaymapip192.168.88.3103broadcast
noshutdown
R2router
interfaces0/0
encapsulationframe-relay
noframe-relayinverse-arp
routeA(config-if)#frame-relaylmi-typecisco
ipaddress192.168.88.2255.255.255.0
frame-relaymapip192.168.88.1201broadcast
frame-relaymapip192.168.88.3203broadcast
noshutdown
R3router
interfaces0/0
encapsulationframe-relay
noframe-relayinverse-arp
routeA(config-if)#frame-relaylmi-typecisco
ipaddress192.168.88.3255.255.255.0
frame-relaymapip192.168.88.1301broadcast
frame-relaymapip192.168.88.2302broadcast
noshutdown
ansi欧洲电信委员会标准.
cisco思科标准
q933a国际标准
上面的配置为静态配置,还可以动态配置但不推荐,同时还有可以配置点到点连接还有点到多点的
配置点到多点点到点的需要用到子接口
ints0/0.1point-to-point
这种只能用这种映射frame-relayinterface-dlci201
还有就是点到多点(这个和物理接口差不多)
配置ints0/0.1multipoint
frame-relaymapip192.168.88.1301broadcast
但是推荐使用同一种,因为帧中继是最底层配置,上面还要有运行协议,比如说ospf如果不用同一种接口配置,建立邻居关系的时候就要修改网络类型,不然就建立不起邻居关系.....以下为帧中继对应的网络内型。
串口/物理接口默认为NBMA
点对点默认为点对点
点的多点默认为点到多点
⑽ 如何配置ospf
OSPF路由协议是用于网际协议(IP)网络的链路状态路由协议。该协议使用链路状态路由算法的内部网关协议(IGP),在单一自治系统(AS)内部工作。适用于IPv4的OSPFv2协议定义于RFC 2328,RFC 5340定义了适用于IPv6的OSPFv3。
OSPF协议是一种链路状态协议。每个路由器负责发现、维护与邻居的关系,并将已知的邻居列表和链路费用LSU报文描述,通过可靠的泛洪与自治系统AS(Autonomous System)内的其他路由器周期性交互,学习到整个自治系统的网络拓扑结构;并通过自治系统边界的路由器注入其他AS的路由信息,从而得到整个Internet的路由信息。每隔一个特定时间或当链路状态发生变化时,重新生成LSA,路由器通过泛洪机制将新LSA通告出去,以便实现路由的实时更新。
(10)ipv6帧中继如何配置ospf扩展阅读:
OSPF路由协议的实现过程
1、初始化形成端口初始信息:在路由器初始化或网络结构发生变化(如链路发生变化,路由器新增或损坏)时,相关路由器会产生链路状态广播数据包LSA,该数据包里包含路由器上所有相连链路,也即为所有端口的状态信息。
2、路由器间通过泛洪(Floodingl机制交换链路状态信息:各路由器一方面将其LSA数据包传送给所有与其相邻的OSPF路由器,另一方面接收其相邻的OSPF路由器传来的LSA数据包,根据其更新自己的数据库。
3、形成稳定的区域拓扑结构数据库:OSPF路由协议通过泛洪法逐渐收敛,形成该区域拓扑结构的数据库,这时所有的路由器均保留了该数据库的一个副本。
4、形成路由表:所有的路由器根据其区域拓扑结构数据库副本采用最短路径法计算形成各自的路由表。