`
LilyEnjoyingLife
  • 浏览: 71568 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
阅读更多

用GNS3配置cisco设备组播协议方法如下:

 

配置结果:

配置文件一段如下:

interface Ethernet0/3.100
 encapsulation dot1Q 100
 ip address 168.1.1.1 255.255.255.0
 ip pim sparse-mode
 ip igmp static-group 237.200.10.1
 ip igmp static-group 237.200.11.1
 vrrp 1 ip 168.1.1.2
 vrrp 1 priority 140
!
interface Ethernet0/3.200
 encapsulation dot1Q 200
 ip address 168.1.2.1 255.255.255.0
 ip pim sparse-mode
 ip igmp static-group 237.200.10.1
 ip igmp static-group 237.200.11.1
 vrrp 2 ip 168.1.2.2
 vrrp 2 priority 160
!

 

 

配置方法:

在边缘路由器上做如下配置:

Router(config-if)#int vlan 200
Router(config-if)#ip add 168.1.2.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#vrrp 1 ip 168.1.2.1
Router(config-if)#vrrp 1 priority 140

ip pim sparse-mode

绑定是:(config-if)#vlan-id dot1q 200

interface Ethernet0/0
 ip address 10.110.5.2 255.255.255.0
 ip pim sparse-mode
 half-duplex
 vlan-id dot1q 100
  exit-vlan-config
 !


SwitchC(config)#ip igmp snooping vlan 100 mrouter interface fa0/0
SwitchC(config)#ip igmp snooping vlan 200 mrouter interface fa0/0
SwitchC(config)#end
SwitchC#sh ip igmp snooping mrouter
Vlan    ports
----    -----
 100    Fa0/0(static)
 200    Fa0/0(static)

SwitchC(config)#ip igmp ?
  immediate-leave  Leave groups immediately without sending last member query,
                   use for one host network only
  limit            IGMP limit
  snooping         Global IGMP Snooping enable for Catalyst VLANs
  ssm-map          SSM mapping commands
  vrf              Select VPN Routing/Forwarding instance

 

全局使能igmp snooping(默认状态下是使能的)
SwitchC(config)#ip igmp snooping

 

二层组播静态加入
SwitchC(config)#int vlan 100
SwitchC(config-if)#ip igmp join-group 224.1.1.4

SwitchC(config)#int fa0/0
SwitchC(config-if)#switchport trunk allowed vlan remove  1,1001-1005

相应配置文件会有 interface FastEthernet0/0
 switchport trunk allowed vlan 1,100,200,1001-1005
 switchport mode trunk


如果console不断提示;
*Mar  1 00:05:25.691: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on Ethernet1/1 (not full duplex), with SwitchA FastEthernet0/0 (full duplex).

 

则在路由器一端端口配置一条 :

Router(config-if)#duplex full
 

完整边界路由子接口配置命令列表:(igmp 默认已配置好,为version2,如果没有显示更改版本不显示,否则显示相应版本号)

Router#conf t

Router(config)#int eth1/0.200

Router(config-subif)#encapsulation  dot1q 200

Router(config-subif)#vrrp 1 ip 168.1.2.13

Router(config-subif)#vrrp 1 priority 150

Router(config-subif)#ip pim sparse-mode

 


证明igmp-snooping不能配置证据:

SwitchD(config)#int vlan 100
SwitchD(config-if)#ip igmp ?
  access-group                IGMP group access group
  explicit-tracking           Enable/Disable IGMP explicit-tracking
  helper-address              IGMP helper address
  immediate-leave             Leave groups immediately without sending last
                              member query, use for one host network only
  join-group                  IGMP join multicast group
  last-member-query-count     IGMP last member query count
  last-member-query-interval  IGMP last member query interval
  limit                       IGMP limit
  mroute-proxy                Mroute to IGMP proxy
  proxy-service               Enable IGMP mroute proxy service
  querier-timeout             IGMP previous querier timeout
  query-interval              IGMP host query interval
  query-max-response-time     IGMP max query response value
  static-group                IGMP static multicast group
  unidirectional-link         IGMP unidirectional link multicast routing
  v3lite                      Enable/disable IGMPv3 Lite
  version                     IGMP version


参考链接:http://www.docin.com/p-154720926.html


发现:
SwitchD(config)#ip igmp snooping vlan 100 mrouter interface fa0/0
fa0/0是多播的来源端口,配置了其他端口才不会接受不相关的组播 fa0/0为路由连接口

ip igmp snooping vlan 100 配置文件没更改

 

分享到:
评论

相关推荐

    GNS3模拟器Dynamips使用说明书思科CCNA_CCNP教程中文版借鉴.pdf

    《GNS3模拟器Dynamips使用说明书...总之,GNS3是学习和测试网络技术的利器,通过这个模拟器,无论是初学者还是经验丰富的网络工程师,都能在没有实际硬件的情况下进行实践,加深对网络概念和协议的理解,提升技能水平。

    如何在GNS3中使用VPCS虚拟PC(附带VPCS)

    在IT网络模拟领域,GNS3(Generic Network Simulation 3)是一个非常强大的工具,它允许用户模拟复杂的网络环境,用于学习、实验或测试各种网络协议和技术。VPCS(Virtual PC Simulator)则是另一个轻量级的软件,...

    gns3.0.8.3

    GNS3的主要功能是为用户提供一个图形化的界面,使他们能够在虚拟环境中配置、操作和学习各种网络设备,如Cisco路由器、交换机,以及其他网络设备。这个模拟器允许用户在不影响实际网络的情况下进行实验,这对于网络...

    cisco PPPOE拨号上网配置教程.pdf

    通过本文,我们将学习如何使用思科路由器和模拟器(如GNS3或EVE-NG)配置PPPOE拨号上网的步骤。 **知识点一:拓扑结构设计** 在进行PPPOE拨号配置前,首先需要设计合理的网络拓扑结构。这里使用R1、R2、R3三个...

    cisco路由器命令大全

    3. **修改配置寄存器值**:在ROM Monitor模式下,使用`confreg 0x2142`命令可将配置寄存器值设为0x2142,随后使用`reset`命令重启设备,这将引导设备进入设置模式。 4. **重置配置寄存器值**:一旦完成设置并退出...

    中低端交换机典型配置

    在中低端交换机配置实验中,通常会使用模拟器如Cisco Packet Tracer或GNS3,或者实际的物理设备,如Cisco的 Catalyst 系列或Huawei的S系列交换机。这些设备在教育和实验室环境中十分常见,适合初学者实践操作。 3....

    静态路由和缺省路由拓扑及配置文件

    例如,在Cisco IOS设备中,配置静态路由的命令可能是`ip route <destination network> <mask> <next-hop IP>`,而添加缺省路由的命令则是`ip default-gateway <next-hop IP>`。 拓扑文件通常包含网络设备的位置、...

    实验指南.zip

    2. **实验环境**:列出所需的硬件设备(如路由器、交换机等)和软件工具(如Cisco Packet Tracer、GNS3或真实设备上的CLI),以便学习者可以复制实验条件。 3. **配置步骤**:详细说明如何配置网络设备,包括命令行...

    Dynamips实验环境模拟器

    由于其高度的仿真性,Dynamips能够支持大部分Cisco IOS的功能,包括路由协议(如OSPF、BGP)、访问控制列表(ACL)、接口配置等,使得网络工程师和学习者可以在一个真实的环境中进行实践操作。 使用Dynamips,用户...

Global site tag (gtag.js) - Google Analytics