multicasting
Tom H
tomh0665 at gmail.com
Wed Aug 19 17:55:26 UTC 2009
>>> I am experiencing multicasting.
>>> I got the theory, now, in practice it's another
>>> problem.
>>> Is there a deamon to install?
>>> How should I setup my interfaces?
>>> (using /etc/network/interfaces)?
>> ifconfig eth0:1 192.168.32.96
>> iface eth0:1 inet static
>> address 192.168.32.96
>> ... Need for netmask, I think ...
> the example has nothing to do with mcast. You can
> use ifconfig to check if the interface is multicast
> capable. With netstat you can print the already
> joined mcast groups. Mcast is senseless without
> applications that support mcast. Typically the
> application sets its socket to mcast and deals with
> the mcast address(es). What do you want to use mcast
> for?
If you (Rakotomandimby) mean multicasting, Michael is right; the
ifconfig and /etc/network/interfaces setups are not relevant. Your
Ubuntu box is a multicasting client by default (avahi-daemon is
started up by default). If you want your box to be a multicasting
server, you have to have avahi-daemon running, have to enable it to be
a server in "/etc/avahi/avahi-daemon.conf", and define its service(s)
in "/etc/avahi/services/".
If you mean multihoming, then you can use the configurations emailed
earlier or the ones below to assign two ip addresses (192.168.1.10 and
192.168.1.11) to eth0 with a netmask 255.255.255.0 and a default
gateway of 192.168.1.1.
USING IFCONFIG:
ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
ifconfig eth0:1 192.168.1.11 netmask 255.255.255.0 up
route add default gw 192.168.1.1
USING IP:
ip addr add 192.168.1.10/24 dev eth0
ip link set eth0 up
ip addr add 192.168.1.11/24 dev eth0:1
ip link set eth0:1 up
ip route add default via 192.168.1.1
USE /ETC/NETWORK/INTERFACES (for persistence through reboots):
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0:1
iface eth0:1 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1
More information about the ubuntu-users
mailing list