[Xorp-users] Multicast Routing over gif0 tunnel in FreeBSD 8.0

qmail at top-consulting.net qmail at top-consulting.net
Thu Jun 17 12:33:36 PDT 2010


More informations:

If we replace the FreeBSD Xorp box with a Cisco router configured with  
PIM it works right away.

The only configs on the Cisco are:

ip pim bidir-enable
ip pim rp-address 10.16.0.64

On the Xorp config I entered:
static-rps {
             rp 10.16.0.64{
                 group-prefix 224.0.0.0/4 {
                     rp-priority: 1
                     /* hash-mask-len: 30 */
                 }
             }
         }



and I see messages like this in the log:

172.31.1.2 is my end of the tunnel
172.31.1.1 is the other end

[ 2010/06/17 14:13:13 TRACE xorp_pimsm4 PIM ] RX PIM_HELLO from  
172.31.1.1 to 224.0.0.13 on vif gif0
[ 2010/06/17 14:13:27 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from  
172.31.1.2 to 224.0.0.13 on vif gif0
[ 2010/06/17 14:13:43 TRACE xorp_pimsm4 PIM ] RX PIM_HELLO from  
172.31.1.1 to 224.0.0.13 on vif gif0
[ 2010/06/17 14:13:57 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from  
172.31.1.2 to 224.0.0.13 on vif gif0
[ 2010/06/17 14:14:13 TRACE xorp_pimsm4 PIM ] RX PIM_HELLO from  
172.31.1.1 to 224.0.0.13 on vif gif0
[ 2010/06/17 14:14:27 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from  
172.31.1.2 to 224.0.0.13 on vif gif0

but it doesn't go any further than that. what am I missing something ?
> I'm trying to configure Xorp 1.6 on FreebSD 8.0 to route multicast
> packets between two networks.
>
> The Xorp box is directly connected to the client over bge0 and to a
> Cisco router over a gif0 tunnel.
>
> ifconfigs are:
>
> bge0:
> flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST>
> metric 0 mtu 1500
>          options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
>          ether 00:00:1a:1a:6e:1a
>          inet 172.31.2.1 netmask 0xffffff00 broadcast 172.31.2.255
>          media: Ethernet autoselect (100baseTX <full-duplex>)
>          status: active
>
>
> gif0: flags=8251<UP,POINTOPOINT,RUNNING,ALLMULTI,MULTICAST> metric 0 mtu 1500
>          tunnel inet 216.X.X.X --> 70.X.X.X
>          inet 172.31.1.2 --> 172.31.1.255 netmask 0xffffff00
>          options=1<ACCEPT_REV_ETHIP_VER>
>
>
> The configuration file is this:
> interfaces {
>      restore-original-config-on-shutdown: false
>      interface bge0 {
>          description: "data interface"
>          disable: false
>          /* default-system-config */
>          vif bge0 {
>              disable: false
>              address 172.31.2.1 {
>                  prefix-length: 24
>                  broadcast: 172.31.2.255
>                  disable: false
>              }
>          }
>      }
>
>      interface gif0 {
>          description: "data interface"
>          disable: false
>          /* default-system-config */
>          vif gif0 {
>              disable: false
>              address 172.31.1.2 {
>                  prefix-length: 24
>                  multicast-capable:true
>                  disable: false
>                  broadcast: 172.31.1.255
>              }
>          }
>      }
> }
>
> fea {
>      unicast-forwarding4 {
>          disable: false
>      }
>
>      unicast-forwarding6 {
>          disable: false
>      }
> }
>
> plumbing {
>      mfea4 {
>          disable: false
>          interface bge0 {
>              vif bge0 {
>                  disable: false
>              }
>          }
>
>          interface gif0 {
>              vif gif0 {
>                  disable: false
>              }
>          }
>
>          interface register_vif {
>              vif register_vif {
>                  /* Note: this vif should be always enabled */
>                  disable: false
>              }
>          }
>          traceoptions {
>              flag all {
>                  disable: false
>              }
>          }
>      }
> }
>
> protocols {
>
>      static {
>          route 10.16.0.0/16 {
>              next-hop: 172.31.1.1
>              metric: 1
>          }
>
>          mrib-route 10.16.0.0/16 {
>              next-hop: 172.31.1.1
>              metric: 1
>          }
>
>          route 10.253.248.0/24 {
>              next-hop: 172.31.1.1
>              metric: 1
>          }
>
>          mrib-route 10.253.248.0/24 {
>              next-hop: 172.31.1.1
>              metric: 1
>          }
>
>      }
>
>      igmp {
>          disable: false
>          interface bge0 {
>              vif bge0 {
>                  disable: false
>              }
>          }
>
>          interface gif0 {
>              vif gif0 {
>                  disable: false
>              }
>          }
>
>          traceoptions {
>              flag all {
>                  disable: false
>              }
>          }
>      }
>
>      pimsm4 {
>          disable: false
>          interface bge0 {
>              vif bge0 {
>                  disable: false
>              }
>          }
>
>          interface gif0 {
>              vif gif0 {
>                  disable: false
>              }
>          }
>
>          interface register_vif {
>              vif register_vif {
>                  /* Note: this vif should be always enabled */
>                  disable: false
>              }
>          }
>
>          static-rps {
>              rp 10.16.0.64{
>                  group-prefix 224.0.0.0/4 {
>                      /* rp-priority: 192 */
>                      /* hash-mask-len: 30 */
>                  }
>              }
>          }
>
>          switch-to-spt-threshold {
>              /* approx. 1K bytes/s (10Kbps) threshold */
>              disable: false
>              interval: 100
>              bytes: 102400
>          }
>
>          traceoptions {
>              flag all {
>                  disable: false
>              }
>          }
>      }
>
>      fib2mrib {
>          disable: false
>      }
> }
>
>
> show igmp group
> Interface    Group           Source          LastReported Timeout V State
> bge0         224.0.0.2       0.0.0.0         172.31.2.1       216 2     E
> bge0         224.0.0.22      0.0.0.0         172.31.2.1       215 2     E
> gif0         224.0.0.2       0.0.0.0         172.31.1.2       215 2     E
> gif0         224.0.0.22      0.0.0.0         172.31.1.2       216 2     E
>
>
> show pim join
> Group           Source          RP              Flags
>
> show pim neighbors
> Interface    DRpriority NeighborAddr    V Mode   Holdtime Timeout
> gif0                  1 172.31.1.1      2 Sparse      105      97
>
> show pim rps
> RP              Type      Pri Holdtime Timeout ActiveGroups GroupPrefix
> 10.16.0.64      static    192       -1      -1            0 224.0.0.0/4
>
>
> Is there anything that I am missing or doing wrong ?
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Xorp-users mailing list