force linux application to exit to specific ethernet port

Home Page Forums Network Management Linux and Networking force linux application to exit to specific ethernet port

This topic contains 1 reply, has 0 voices, and was last updated by  allegfede 4 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44042

    allegfede
    Member

    Hello.
    I have a 2 port Dell 2950 server running some streaming services.

    this is my /etc/network/interfaces setup file:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    allow-hotplug eth0
    #iface eth0 inet dhcp
    iface eth0 inet static
    address 192.168.1.116
    netmask 255.255.255.0
    gateway 192.168.1.1

    now i set it static because i need the icecast server running on this machine to be reached from external realy on server farm, who broadcasts my AUDIO streaming channel (port forwarding on the gateway).

    But i have also a VIDEO streaming applicatin on that server i wish to route to the other interface (eth1 witch is no setted up at the moment).
    At this time both services shares the same ADSL and that’s not good for bandwidth problems 😀

    I can add this to my interfaces file:

    allow-hotplug eth1
    #iface eth1 inet dhcp
    iface eth1 inet static
    address 192.168.1.244
    netmask 255.255.255.0
    gateway 192.168.1.70

    but need to force audio-streaming on ETH0 and video-streaming to ETH1.

    Audio streaming is provided bu darkice+icecast, video streaming is asimple ffmpeg command.

    thanks for the help.
    Cheers,

    Federico

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.