Bài này được trích dịch từ CCO.
Mục tiêu là huớg dẫn cách sử dụng lệnh helper-map ở first-hop router và last-hop router để chuyển đổi một luồng traffic dạng broadcast sang dạng traffic multicast và ngược lại.
Broadcast traffic-->first-hop router ----Multcast----Last-hop Router--->Broadcast traffic
1. On the First Hop Router
The following example converts broadcast streams to port 2000 to a multicast stream (G = 224.5.5.5)
int < ... > /* incoming interface of broadcast stream */
ip multicast helper-map broadcast 224.5.5.5 101
ip pim dense
access-list 101 permit any any proto udp 2000
access-list 101 deny any any proto udp
ip forward protocol udp 2000
2. On the Last Hop Router
int <...> /* incoming interface of multicast stream */
ip multicast helper-map 224.5.5.5 178.21.34.255 101
ip pim dense
access-list 101 permit any any proto udp 2000
access-list 101 deny any any proto udp
ip forward protocol udp 2000
Chú ý là lệnh ip forward udp 2000 sẽ enable port udp 2000. Lệnh này rất dễ quên. Lệnh này sẽ chỉ open port 2000. Trong khi lệnh ip helper address....sẽ mở tất cả các udp port.
Cám ơn đã đọc.



Reply With Quote