[Xorp-users] (no subject)

Вячеслав Дружинин dvg at tjc.ru
Sat Jan 6 01:45:46 PST 2007


Hi,

I'm using FreeBSD 6.1p11 and XORP from net/xorp port 1.3_1 version.
My provider uses cisco router for internet and igmp pim-sm TV
multicasting, on my BSD box the VLC player works fine. I want to use the
BSD box as multicast router for WinXP box. Here is my LAN scheme.

(Provider CISCO)
87.240.10.97-------xl0 (87.240.10.121) BSD myk0 (192.168.250.1)-----
192.168.250.2 (WinXP box)

I'm tried this
xorp.conf
-------------------
interfaces {
    restore-original-config-on-shutdown: false
    interface xl0 {
	description: "ext interface"
	disable: false
	/* default-system-config */
	vif xl0 {
	    disable: false
	    address 87.240.10.121 {
		prefix-length: 27
		broadcast: 87.240.10.127
		disable: false
	    }
	}
    }
    interface myk0 {
	description: "data interface"
	disable: false
	/* default-system-config */
	vif myk0 {
	    disable: false
	    address 192.168.250.1 {
		prefix-length: 24
		broadcast: 192.168.250.255
		disable: false
	    }
	}
    }
}

fea {
    unicast-forwarding4 {
	disable: false
    }
}

plumbing {
    mfea4 {
	disable: false
	interface xl0 {
	    vif xl0 {
		disable: false
	    }
	}
	interface myk0 {
	    vif myk0 {
		disable: false
	    }
	}

	interface register_vif {
	    vif register_vif {
		/* Note: this vif should be always enabled */
		disable: false
	    }
	}
	traceoptions {
	    flag all {
		disable: false
	    }
	}
    }
}

protocols {
    igmp {
	disable: false
	interface myk0 {
	    vif myk0 {
		disable: false
		/* version: 2 */
		/* enable-ip-router-alert-option-check: false */
		/* query-interval: 125 */
		/* query-last-member-interval: 1 */
		/* query-response-interval: 10 */
		/* robust-count: 2 */
	    }
	}
	traceoptions {
	    flag all {
		disable: false
	    }
	}
    }
}

protocols {
    pimsm4 {
	disable: false
	interface myk0 {
	    vif myk0 {
		disable: false
		/* enable-ip-router-alert-option-check: false */
		/* dr-priority: 1 */
		/* hello-period: 30 */
		/* hello-triggered-delay: 5 */
		/* alternative-subnet 10.40.0.0/16 */
	    }
	}
	interface xl0 {
	    vif xl0 {
		disable: false
		/* enable-ip-router-alert-option-check: false */
		/* dr-priority: 1 */
		/* hello-period: 30 */
		/* hello-triggered-delay: 5 */
		/* alternative-subnet 10.40.0.0/16 */
	    }
	}
	interface register_vif {
	    vif register_vif {
		/* Note: this vif should be always enabled */
		disable: false
	    }
	}

	static-rps {
	    rp 192.168.250.1 {
		group-prefix 224.0.0.0/4 {
		/*     rp-priority: 0 */
		/*     hash-mask-len: 30 */
		}
	    }
	}
	bootstrap {
	    disable: true
	    cand-bsr {
		scope-zone 224.0.0.0/4 {
		    /* is-scope-zone: false */
		    cand-bsr-by-vif-name: "myk0"
		    /* cand-bsr-by-vif-addr: 10.10.10.10 */
		    /* bsr-priority: 1 */
		    /* hash-mask-len: 30 */
		}
	    }

	    cand-rp {
		group-prefix 224.0.0.0/4 {
		    /* is-scope-zone: false */
		    cand-rp-by-vif-name: "myk0"
		    /* cand-rp-by-vif-addr: 10.10.10.10 */
		    /* rp-priority: 192 */
		    /* rp-holdtime: 150 */
		}
	    }
	}

	switch-to-spt-threshold {
	    /* approx. 1K bytes/s (10Kbps) threshold */
	    disable: false
	    interval: 100
	    bytes: 102400
	}

	traceoptions {
	    flag all {
		disable: false
	    }
	}
    }

}

protocols {
    fib2mrib {
	disable: false
    }
}
-------------------

Log
-----------------
[ 2007/01/06 12:23:03  INFO xorp_rtrmgr:1726 RTRMGR +2228 task.cc run_task
] No more tasks to run
[ 2007/01/06 12:23:04 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.1 to 224.0.0.22 on vif myk0
[ 2007/01/06 12:23:05 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
87.240.10.121 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:23:07 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
192.168.250.1 to 224.0.0.13 on vif myk0
[ 2007/01/06 12:23:07 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.1 to 224.0.0.2 on vif myk0
[ 2007/01/06 12:23:08 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.1 to 224.0.0.13 on vif myk0
[ 2007/01/06 12:23:29 TRACE xorp_pimsm4 PIM ] RX PIM_HELLO from
87.240.10.97 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:23:29 TRACE xorp_pimsm4 PIM ] Added new neighbor
87.240.10.97 on vif xl0
[ 2007/01/06 12:23:30 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
87.240.10.121 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:23:32 TRACE xorp_igmp MLD6IGMP ] TX IGMP_MEMBERSHIP_QUERY
from 192.168.250.1 to 224.0.0.1
[ 2007/01/06 12:23:32 TRACE xorp_igmp MLD6IGMP ] RX IGMP_MEMBERSHIP_QUERY
from 192.168.250.1 to 224.0.0.1 on vif myk0
[ 2007/01/06 12:23:35 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.1 to 224.0.0.22 on vif myk0
[ 2007/01/06 12:23:35 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
87.240.10.121 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:23:35 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.1 to 224.0.0.13 on vif myk0
[ 2007/01/06 12:23:37 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
192.168.250.1 to 224.0.0.13 on vif myk0
[ 2007/01/06 12:23:39 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.1 to 224.0.0.2 on vif myk0
[ 2007/01/06 12:23:58 TRACE xorp_pimsm4 PIM ] RX PIM_HELLO from
87.240.10.97 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:24:05 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
87.240.10.121 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:24:07 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
192.168.250.1 to 224.0.0.13 on vif myk0
[ 2007/01/06 12:24:12 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.2 to 239.255.2.1 on vif myk0
[ 2007/01/06 12:24:12 TRACE xorp_igmp MLD6IGMP ] Notify routing add
membership for (0.0.0.0, 239.255.2.1) on vif myk0
[ 2007/01/06 12:24:12 TRACE xorp_pimsm4 PIM ] Add membership for (0.0.0.0,
239.255.2.1) on vif myk0
[ 2007/01/06 12:24:13 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.2 to 239.255.2.1 on vif myk0
[ 2007/01/06 12:24:14 TRACE xorp_igmp MLD6IGMP ] RX
IGMP_V2_MEMBERSHIP_REPORT from 192.168.250.2 to 239.255.2.1 on vif myk0
[ 2007/01/06 12:24:28 TRACE xorp_pimsm4 PIM ] RX PIM_HELLO from
87.240.10.97 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:24:35 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
87.240.10.121 to 224.0.0.13 on vif xl0
[ 2007/01/06 12:24:37 TRACE xorp_pimsm4 PIM ] TX PIM_HELLO from
192.168.250.1 to 224.0.0.13 on vif myk0
-----------------

dvg at dvg.tjc.ru> show pim rps
RP              Type      Pri Holdtime Timeout ActiveGroups GroupPrefix
192.168.250.1   static    192       -1      -1            1 224.0.0.0/4
------------------
dvg at dvg.tjc.ru> show pim join
Group           Source          RP              Flags
239.255.2.1     0.0.0.0         192.168.250.1   WC
    Upstream interface (RP):   register_vif
    Upstream MRIB next hop (RP): UNKNOWN
    Upstream RPF'(*,G):        UNKNOWN
    Upstream state:            Joined
    Join timer:                2
    Local receiver include WC: O..
    Joins RP:                  ...
    Joins WC:                  ...
    Join state:                ...
    Prune state:               ...
    Prune pending state:       ...
    I am assert winner state:  ...
    I am assert loser state:   ...
    Assert winner WC:          ...
    Assert lost WC:            ...
    Assert tracking WC:        O.O
    Could assert WC:           O..
    I am DR:                   OOO
    Immediate olist RP:        ...
    Immediate olist WC:        O..
    Inherited olist SG:        O..
    Inherited olist SG_RPT:    O..
    PIM include WC:            O..
--------------------------
dvg at dvg.tjc.ru> show pim interface
Interface    State    Mode   V PIMstate Priority DRaddr          Neighbors
myk0         UP       Sparse 2 DR              1 192.168.250.1           0
xl0          UP       Sparse 2 DR              1 87.240.10.121           1
register_vif UP       Sparse 2 DR              1 87.240.10.121           0
---------------------------
dvg at dvg.tjc.ru> show pim mrib
DestPrefix         NextHopRouter   VifName VifIndex MetricPref Metric
0.0.0.0/0          87.240.10.97    xl0     1               254  65535
87.240.10.96/27    87.240.10.121   xl0     1                 0      0
192.168.250.0/24   192.168.250.1   myk0    0                 0      0
----------------------------
dvg at dvg.tjc.ru> show route table ipv4 multicast final
0.0.0.0/0       [fib2mrib(254)/65535]
                > to 87.240.10.97 via xl0/xl0
192.168.250.0/24        [connected(0)/0]
                > via myk0/myk0
87.240.10.96/27 [connected(0)/0]
                > via xl0/xl0
-----------------------------

Using tcpdump I don't see any PIM Join messagaes, only PIM Hello and igmp
reports like this:

# tcpdump -i xl0 -vvv -n -s 0 -x proto \\igmp or proto \\pim
-----------------------------
12:40:36.838522 IP (tos 0x0, ttl   1, id 30044, offset 0, flags [none],
proto: IGMP (2), length: 32, options ( RA (148) len 4 )) 87.240.35.113 >
239.255.255.250: igmp v2 report 239.255.255.250
        0x0000:  4600 0020 755c 0000 0102 4420 57f0 2371
        0x0010:  efff fffa 9404 0000 1600 fa04 efff fffa
        0x0020:  0000 0000 0000 0000 0000 0000 0000
12:40:44.422157 IP (tos 0xc0, ttl   1, id 12218, offset 0, flags [none],
proto: PIM (103), length: 38) 87.240.10.97 > 224.0.0.13: PIMv2, length: 18
        Hello
          Hold Time Option (1), length: 2, Value: 1m45s
            0x0000:  0069
          Generation ID Option (20), length: 4, Value: 0x00001412
            0x0000:  0000 1412
        0x0000:  45c0 0026 2fba 0000 0167 4699 57f0 0a61
        0x0010:  e000 000d 2000 cb69 0001 0002 0069 0014
        0x0020:  0004 0000 1412 0000 0000 0000 0000
------------------------------

And I see membership report from WinXP box but vlc on it not work.
I think my xorp.conf contains some errors.
Any ideas?

---
With best regards.
Vyacheslav




More information about the Xorp-users mailing list