The invention discloses a method for realizing PIM (
Protocol Independent Multicast) in a VRRP (
Virtual Router Redundancy Protocol) network environment. A virtual IP (
Internet Protocol) address is carried when a PIM Hello message is transmitted to an interface for enabling the VRRP; when the PIM Hello message is received, the
virtual IP address of the VRRP is used for establishing a PIM neighbor, so that
unicast and
multicast services can be simultaneously used as a host and a
backup in the VRRP network environment. Meanwhile, the
virtual IP address of the VRRP is completely compatible with a current RFC (
Request for Comments) protocol, and so that the problem that the VRRP and the
multicast cannot be deployed simultaneously at present is solved. The invention also discloses a device for realizing the PIM
multicast in the VRRP network environment. The device comprises a transmitting module and a receiving module, wherein the transmitting module is used for transmitting the PIM Hello message carrying the
virtual IP address; and the receiving module is used for receiving the PIM Hello message and selecting and transmitting a
router of the PIM Hello message to establish the PIM neighbor by using a real address or the virtual
IP address. The method and the device disclosed by the invention have the characteristics that the protocol is simple and the deployment is flexible; common deployment of the VRRP and the multicast can be realized; and the host and
backup of the
unicast and the multicast can be allowed at the same time.