免费邮箱 |加入收藏 | 会员中心 | 我要投稿 | RSS
您当前的位置:首页 > 服务器 > 服务器

组播配置举例

时间:2011-05-19 08:56:20  来源:站内  作者:潘春会
# 配置BSR的服务边界。
[RouterE] interface serial 2/1
[RouterE-Serial2/1] pim bsr-boundary
[RouterE-Serial2/1] quit
# 将Loopback0接口配置为C-BSR和C-RP。
[RouterE] pim
[RouterE-pim] c-bsr loopback 0
[RouterE-pim] c-rp loopback 0
[RouterE-pim] quit
# 配置BGP协议和MBGP对等体,并引入OSPF路由。
[RouterE] bgp 200
[RouterE-bgp] router-id 5.5.5.5
[RouterE-bgp] peer 192.168.5.1 as-number 200
[RouterE-bgp] peer 192.168.6.2 as-number 200
[RouterE-bgp] import-route ospf 1
[RouterE-bgp] ipv4-family multicast
[RouterE-bgp-af-mul] peer 192.168.5.1 enable
[RouterE-bgp-af-mul] peer 192.168.6.2 enable
[RouterE-bgp-af-mul] import-route ospf 1
[RouterE-bgp-af-mul] quit
[RouterE-bgp] quit
# 配置MSDP对等体。
[RouterE] msdp
[RouterE-msdp] peer 192.168.5.1 connect-interface serial 2/1
[RouterE-msdp] return
2. 配置文件
<RouterE> display current-configuration
#
 sysname RouterE
#
 multicast routing-enable
#
interface Serial2/1
 link-protocol ppp
 ip address 192.168.5.2 255.255.255.0
 pim bsr-boundary
 pim sm
#
interface Serial2/2
 link-protocol ppp
 ip address 192.168.6.1 255.255.255.0
 pim sm
#
interface LoopBack0
 ip address 5.5.5.5 255.255.255.255
 pim sm
#
bgp 200
 router-id 5.5.5.5
 import-route ospf 1
 undo synchronization
 peer 192.168.5.1 as-number 200
 peer 192.168.6.2 as-number 200
#
 ipv4-family multicast
  import-route ospf 1
  peer 192.168.5.1 enable
  peer 192.168.6.2 enable
#
ospf 1
 area 0.0.0.0
  network 5.5.5.5 0.0.0.0
  network 192.168.5.0 0.0.0.255
  network 192.168.6.0 0.0.0.255
#
pim
 c-bsr LoopBack0
 c-rp LoopBack0
#
msdp
 peer 192.168.5.1 connect-interface Serial2/1
#
return
1. 配置步骤
# 配置OSPF协议。
<RouterF> system-view
[RouterF] ospf 1
[RouterF-ospf-1] area 0.0.0.0
[RouterF-ospf-1-area-0.0.0.0] network 6.6.6.6 0.0.0.0
[RouterF-ospf-1-area-0.0.0.0] network 10.110.3.0 0.0.0.255
[RouterF-ospf-1-area-0.0.0.0] network 192.168.6.0 0.0.0.255
[RouterF-ospf-1-area-0.0.0.0] quit
[RouterF-ospf-1] quit
# 使能IP组播路由,并在各接口上使能PIM-SM。
[RouterF] multicast routing-enable
[RouterF] interface ethernet 1/1
[RouterF-Ethernet1/1] pim sm
[RouterF-Ethernet1/1] quit
[RouterF] interface serial 2/1
[RouterF-Serial2/1] pim sm
[RouterF-Serial2/1] quit
[RouterF] interface loopback 0
[RouterF-LoopBack0] pim sm
[RouterF-LoopBack0] quit
# 配置BGP协议和MBGP对等体,并引入直连和OSPF路由。
[RouterF] bgp 200
[RouterF-bgp] router-id 6.6.6.6
[RouterF-bgp] peer 192.168.6.1 as-number 200
[RouterF-bgp] import-route direct
[RouterF-bgp] import-route ospf 1
[RouterF-bgp] ipv4-family multicast
[RouterF-bgp-af-mul] peer 192.168.6.1 enable
[RouterF-bgp-af-mul] import-route direct
[RouterF-bgp-af-mul] import-route ospf 1
[RouterF-bgp-af-mul] return
2. 配置文件
<RouterF> display current-configuration
#
 sysname RouterF
#
 multicast routing-enable
#
interface Ethernet1/1
 port link-mode route
 ip address 10.110.3.1 255.255.255.0
 pim sm
#
interface Serial2/1
 link-protocol ppp
 ip address 192.168.6.2 255.255.255.0
 pim sm
#
interface LoopBack0
 ip address 6.6.6.6 255.255.255.255
 pim sm
#
bgp 200
 router-id 6.6.6.6
来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
如何找出DHCP地址池里未使用的IP地址
如何找出DHCP地址池里
国内常用的DNS列表
国内常用的DNS列表
Linux邮件服务器软件比较
Linux邮件服务器软件比
学用纯CSS打造可折叠树状菜单
学用纯CSS打造可折叠树
相关文章
栏目更新
栏目热门