Configuring Linux to Support Multicast IP
来源:互联网 发布:淘宝网床单 编辑:程序博客网 时间:2024/05/22 21:51
Most Linux systems have multicast IP capability turned off by default. In order to use multicast sockets on my Linux system, I had to reconfigure and build my kernel, and then run the following command as root after re-booting:
route add -net 224.0.0.0 netmask 240.0.0.0 dev lo
Make sure that this route has been added by typing
route -e
You should see output like this:
markw@colossus:/home/markw > su
Password:
markw # route add -net 224.0.0.0 netmask 240.0.0.0 dev lo
colossus:/home/markw # route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Windowirtt Iface
loopback * 255.0.0.0 U 3584 0 0 lo
224.0.0.0 * 240.0.0.0 U 3584 0 0 lo
markw #
Please note that I ran the route commands as root. I don’t permanently add this route for multicasting to my Linux development system; rather, I manually add the route (as root) when I need to use multicast IP. Re-configuring and building the kernel is also fairly simple. On my Linux system, I use the following steps to configure and build a new kernel with multicast IP support:
1. cd /usr/src/linux
2. make menuconfig
select networking options
check the box labeled “enable multicast IP”
save and exit from menuconfig
3. make dep; make clean; make zImage
4. cp /vmlinux /vmlinux_good
5. cp arch/i386/boot/zImage /vmlinux
6. cd /etc
7. edit lilo.conf, adding a new entry for the /vmlinux_good kernel
8. lilo
route add -net 224.0.0.0 netmask 240.0.0.0 dev lo
Make sure that this route has been added by typing
route -e
You should see output like this:
markw@colossus:/home/markw > su
Password:
markw # route add -net 224.0.0.0 netmask 240.0.0.0 dev lo
colossus:/home/markw # route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Windowirtt Iface
loopback * 255.0.0.0 U 3584 0 0 lo
224.0.0.0 * 240.0.0.0 U 3584 0 0 lo
markw #
Please note that I ran the route commands as root. I don’t permanently add this route for multicasting to my Linux development system; rather, I manually add the route (as root) when I need to use multicast IP. Re-configuring and building the kernel is also fairly simple. On my Linux system, I use the following steps to configure and build a new kernel with multicast IP support:
1. cd /usr/src/linux
2. make menuconfig
select networking options
check the box labeled “enable multicast IP”
save and exit from menuconfig
3. make dep; make clean; make zImage
4. cp /vmlinux /vmlinux_good
5. cp arch/i386/boot/zImage /vmlinux
6. cd /etc
7. edit lilo.conf, adding a new entry for the /vmlinux_good kernel
8. lilo
- Configuring Linux to Support Multicast IP
- configuring tomcat to support SSL
- IP Multicast with Applications to IPTV and Mobile DVB-H
- Linux&Windows下的IP Multicast 开发
- Socket IP/UDP Multicast
- IP Multicast: IGMPv2
- Configuring SNMP Support
- Configuring SNMP Support
- Configuring SNMP Support
- OGG Configuring DDL Support
- Listening to RTP multicast
- A Tutorial on IP Multicast
- Configuring Linux / Raspberry Pi with a static IP address
- MULTICAST
- 基于IP Multicast的传输和实现
- Understanding the IP Multicast Helper-Map Command
- Configuring Java CAPS for SSL Support - Index
- Configuring Java CAPS for SSL Support - Program
- delphi 在 case 语句中使用字符串
- google huawei bei
- Delphi 关键字详解
- Delphi 2009 初体验
- "无法在web服务器上调试的" 解决方法大全
- Configuring Linux to Support Multicast IP
- java面试
- DELPHI创建并调用 DLL
- 2008年8月23日-夜幕下的鸟巢水立方 奥林匹克公园
- Cache-Control消息头域说明
- 2008年8月24日-闭幕式 雍和宫 烟火
- javascript刷新页面的一些方法
- ,NET中FCKeditor使用方法
- Liinq中事操作保存