Posted by: adehp | November 5, 2008

Step By Step Setup Multicast Server Using Ubuntu 8.04

First step to setup multi cast server are prepare one computer that have minimum 2 LAN Card. One for connection to Hughes Modem and one for broadcast to LAN. For processor, RAM, and hard disk we just use the ordinary ones. And don’t forget with Internet Connection.
After that analyze your Local Area Network specification (you can adjustment with your network) :

Setting for Hanoi Open:
Local Area Network    : 192.168.1.0/24 -DHCP enabled
Hughes Modem    : 10.230.8.0/30 -DHCP enabled

Please pay attention, of you have 2 DHCP enabled on your system, it can be get confused to your system that want to built.
The main topic to setup Multi cast server are Bridge, IP forward, Routing and additional software (in Linux we called packet).
Now we begin to setup server:
1.    Install your Computer with Ubuntu 8.04, you can use Desktop Ubuntu and try with bootable mode. To check and make sure All of you hardware can be detected with Ubuntu.
2.    On your screen will appear install icon, then click it. And you just follow the direction from Ubuntu Installation menu. And wait until finish to install Ubuntu. Don’t forget with your user and password.
3.    After installation complete, your system will reboot and remove the CD.
4.    Login and open Terminal.
5.    Write
hou@hou-seadunet:~$ sudo apt-get update
And your Ubuntu will update packet system and repair dependency.
6.    Install Bridge Utility
hou@hou-seadunet:~$ sudo apt-get install bridge-utils
And your Ubuntu will install bridge utility from Ubuntu server
7.    Setup Ipv4 Forward
hou@hou-seadunet:~$ sudo nano /etc/sysctl.conf
Search and uncomment this comment on file
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
Then save the file
8.    Setup open traffic on bridge
hou@hou-seadunet:~$ sudo nano /etc/sysctl.conf
add this comment to file
net.bridge.bridge-nf-call-iptables=0
net.bridge.bridge-nf-call-arptables=0
Then save the file
9.    To make sure your setting work you can reboot the computer.
After that, recheck your setting with
hou@hou-seadunet:~$ sudo sysctl -p /etc/sysctl.conf
hou@hou-seadunet:~$ sudo cat /proc/sys/net/ipv4/ip_forward
If output, 1 so it work. If 0 you recheck point number 7
hou@hou-seadunet:~$ sudo cat /proc/sys/net/bridge/bridge-nf-call-arptables
hou@hou-seadunet:~$ sudo cat /proc/sys/net/bridge/bridge-nf-call-iptables
If the output, 0 so it work. If 1 you recheck point number 8 and you can write again:
hou@hou-seadunet:~$ sudo sysctl -p /etc/sysctl.conf
10.    Make down all your LAN Card
hou@hou-seadunet:~$ sudo ifconfig eth0 down
hou@hou-seadunet:~$ sudo ifconfig eth1 down
11.    Setup IP local to all LAN Card
hou@hou-seadunet:~$ sudo ifconfig eth0 0.0.0.0 up
hou@hou-seadunet:~$ sudo ifconfig eth1 0.0.0.0 up
12.    Create Bridge, you can create bridge with your own name
hou@hou-seadunet:~$ sudo brctl addbr br0
Add eth0 and eth1 to you bridge
hou@hou-seadunet:~$ sudo brctl addif eth0
hou@hou-seadunet:~$ sudo brctl addif eth1
13.    Setup your bridge
hou@hou-seadunet:~$ sudo ifconfig br0 up
Setup IP for Bridge, select one IP that will used for IP multi cast server.
hou@hou-seadunet:~$ sudo ifconfig br0 192.168.1.200 netmask 255.255.255.0 gw 192.168.1.1
Setup Virtual IP for Bridge to connect with Hughes Modem
hou@hou-seadunet:~$ sudo ifconfig br0:0 10.230.8.2  netmask 255.255.255.252
14.    Setup Internet Router
In order that every client on your LAN can access multi cast server, so we must describe routing for multi cast protocol
You just enter routing net 224.0.0.0/4 gw 192.168.1.200
15.    Add routing for Multicast protocol
Del default routing to network 10.230.8.0
hou@hou-seadunet:~$ sudo route del default gw 10.230.8.1
Add routing for multi cast protocol
hou@hou-seadunet:~$ sudo route add -net 224.0.0.0/4 gw 10.230.8.1
16.    Check your routing
hou@hou-seadunet:~$ route
If right it will appear like this
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.230.8.0      *               255.255.255.252 U     0      0        0 br0
192.168.1.0     *               255.255.255.0   U     0      0        0 br0
link-local      *               255.255.0.0     U     1000   0        0 br0
224.0.0.0       10.230.8.1      240.0.0.0       UG    0      0        0 br0
default         my.router       0.0.0.0         UG    100    0        0 br0
17.    Test connection to Eth0 gateway dan Eth1 gateway, if routing working right will appear like:
hou@hou-seadunet:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=3.52 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.441 ms

– 192.168.1.1 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1006ms
rtt min/avg/max/mdev = 0.441/1.984/3.527/1.543 ms

hou@hou-seadunet:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=3.52 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.441 ms

— 192.168.1.1 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1006ms
rtt min/avg/max/mdev = 0.441/1.984/3.527/1.543 ms
18.    Now you can test with playing video with VLC Player on Multi cast Server
If your computer not being install VLC Player setup you can install with order:
hou@hou-seadunet:~$ sudo apt-get install vlc
Insert IP 239.0.220.1 port 2222 at UDP/RTP Multicast
19.    Now you can test with playing video with VLC Player on you Windows client or Linux client
Same procedure with point number 18, Insert IP 239.0.220.1 port 2222 at UDP/RTP Multicast.
20.    To make sure your setting not to be change you can insert this setting to network configuration file and startup file
Open network configuration file:
hou@hou-seadunet:~$ sudo nano /etc/network/interfaces
Write this order:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 0.0.0.0

auto eth0
iface eth0 inet static
address 0.0.0.0

auto br0
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1

auto br0:1
iface br0:1 inet static
address 10.230.8.2
netmask 255.255.255.252
gateway 10.230.8.1
Then safe it
Now, create executable file on your server
hou@hou-seadunet:~$ sudo nano /etc/init.d/bridge.sh
Write this order:
#!/bin/bash
sysctl -p /etc/sysctl.conf

route del default gw 10.230.8.1
route add -net 224.0.0.0/4 gw 10.230.8.1
Then save the file
Now, change file permition
hou@hou-seadunet:~$ sudo chmod 700 /etc/init.d/bridge.sh
So, every time you restarted your server you just write
hou@hou-seadunet:~$ sudo /etc/init.d/bridge.sh
21.    Maybe that’s all of my tutorial

By
Ade Hendraputra
adehendraputra@gmail.com

About these ads

Responses

  1. Hello , thank you verry much for this tutorial but i have one problem. I use ubuntu server 8.04 and at the point 9 i get this:

    root@pc231246:~# sysctl -p /etc/sysctl.conf
    kernel.printk = 4 4 1 7
    kernel.maps_protect = 1
    fs.inotify.max_user_watches = 524288
    vm.mmap_min_addr = 65536
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.all.rp_filter = 1
    net.ipv4.ip_forward = 1
    net.ipv4.conf.default.forwarding = 1
    net.ipv4.conf.all.forwarding = 1
    error: “net.bridge.bridge-nf-call-iptables” is an unknown key
    error: “net.bridge.bridge-nf-call-arptables” is an unknown key

    and

    root@pc231246:~# cat /proc/sys/net/bridge/bridge-nf-call-arptables
    cat: /proc/sys/net/bridge/bridge-nf-call-arptables: No such file or directory

    root@pc231246:~# cat /proc/sys/net/bridge/bridge-nf-call-iptables
    cat: /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory

    I maked all the instructions. Can u help me please? i try to share my IPTV connection from my internet provider to 2 windows pc with one ubuntu 8.04 server.
    thank you verry much.

  2. hi,

    i have the same problem.

    best regrads,
    uwe

  3. Hello, I had the same error, it happened because I didn’t load the module, it is solved doing:

    user@laptop:~$ sudo modprobe bridge

  4. Reblogged this on The CCIE journey and commented:
    A good blog i got as i start my studies on Multicasts

  5. Heya this is somewhat of off topic but I was wondering if blogs use
    WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

  6. Dear CISCO 2690 switch: Please study wordpress blogging, which is very easier to install on web server and maintain blogging…


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: