Results 1 to 7 of 7

Thread: How configure 2 NIC, 1 for internet, 1 for IPTV

  1. #1
    Join Date
    Nov 2011
    Beans
    9

    How configure 2 NIC, 1 for internet, 1 for IPTV

    (was posted kubuntu, should be ubuntu)

    Hello,
    I am trying for weeks to get my multicast stream going.
    I have 100mbps fibre connection and the 'modem' has 2 outputs, 1 for internet, 1 for udp IPTV.
    I would like to configure the following:
    eth1 to see the internet via my router (192.168.1.1)
    eth2 to see the multicast TV stream via my modem IPTV output (UDP\\@225.1.1.xxx:1111, xxx is the TV channel number)

    I always have tried a lot of settings, but OR eth1 working but no IPTV, OR eth2 works but no internet.


  2. #2
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How configure 2 NIC, 1 for internet, 1 for IPTV

    Hello


    Recommend you post the configuration your currently using,
    eg /etc/resolv.conf, ifconfig, /etc/network/interfaces
    where your doing ip forwarding, bridging routing and so on.

    More info will help
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  3. #3
    Join Date
    Nov 2011
    Beans
    9

    Re: How configure 2 NIC, 1 for internet, 1 for IPTV

    Thanks;
    /ets/resolv.conf

    Code:
    search local
    nameserver 192.168.1.1
    /etc/network/interfaces
    For eth2 I choosen a 'fictive' gateway and IP

    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    #
    # WARNING: This file is auto-generated by the ReelBox setup, so you
    #          should not edit it manually. Use the setup menu instead.
    #
    # The loopback network interface
    auto lo
    iface lo inet loopback
    address 127.0.0.1
    netmask 255.0.0.0
     
    # Satelite receiver network interface
    auto eth0
    iface eth0 inet manual
    up ifconfig eth0 up
     
    # Internet network interface
    auto eth1
    iface eth1 inet static
    address 192.168.1.118
    netmask 255.255.255.0
    gateway 192.168.1.1
     
    # IPTV network interface
    auto eth2
    iface eth2 inet static
    address 192.168.2.110
    netmask 255.255.255.0
    gateway 192.168.2.1
     
    # route for multicast stream
    up route add -net 224.0.0.0 netmask 240.0.0.0 dev eth2

  4. #4
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How configure 2 NIC, 1 for internet, 1 for IPTV

    Given your setup for routing between the two networks,
    have you set up IP forwarding?

    Code:
    cat /proc/sys/net/ipv4/ip_forward
    if you get a 0 ip foprwarding is disabled.


    You can change on the fly
    Code:
    echo 1 > /proc/sys/net/ipv4/ip_forward
    test and see if it works
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  5. #5
    Join Date
    Nov 2011
    Beans
    9

    Re: How configure 2 NIC, 1 for internet, 1 for IPTV

    I tried this, but it does not seem to make any difference.
    As soon as I set a gateway for eth2 i loose internet connection, but have IPTV.

    NO IPTV, but internet:
    Code:
    root@ReelBox:~# route                                                        
    Kernel-IP-Routentabelle                                                      
    Ziel            Router          Genmask         Flags Metric Ref    Use Iface
    192.168.99.128  *               255.255.255.252 U     0      0        0 tun0 
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth1 
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth2 
    224.0.0.0       *               240.0.0.0       U     0      0        0 eth2 
    default         192.168.1.1     0.0.0.0         UG    100    0        0 eth1
    IPTV, but NO internet
    Code:
    root@ReelBox:~# route                                                        
    Kernel-IP-Routentabelle                                                      
    Ziel            Router          Genmask         Flags Metric Ref    Use Iface
    192.168.99.128  *               255.255.255.252 U     0      0        0 tun0 
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth1 
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth2
    224.0.0.0       *               240.0.0.0       U     0      0        0 eth2 
    default         192.168.1.1     0.0.0.0         UG    0      0        0 eth2 
    default         192.168.1.1     0.0.0.0         UG    100    0        0 eth1
    changing the metric value makes the lowest value win and block the eth* with the highest number

  6. #6
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How configure 2 NIC, 1 for internet, 1 for IPTV

    Question- If a packet comes for the 192.168.1.x network it seems from both routing tables that there is a route to either network through eth1 and through eth 2.
    the metrics are the same , the routes are up,
    How do you route to the right network?

    I may have missed something or misreading something or maybe its getting late
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  7. #7
    Join Date
    Nov 2011
    Beans
    9

    Re: How configure 2 NIC, 1 for internet, 1 for IPTV

    Hi,
    Thanks for your attention.
    As mentioned in my 1st post, eth1 should go to my router and be in the 192.168,1.x network. eth2 does not need to be in that network and should connect directly to the modem. to get it working eth2 needs 'a' gateway. otherwise it does not work. but as soon as I have a gatway (any IP i make up will do) i have IPTV via eth2 but then eth1 has still connectoion to the 192.168.1.x network but no more internet route.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •