Results 1 to 3 of 3

Thread: Splitting network traffic

  1. #1
    Join Date
    Mar 2008

    Question Splitting network traffic

    - I have two network cards in my system.
    - I have two network connections
    - One network is a network and it is internal
    - 0ne network is a and has access to the Internet
    - Both networks can operate independently in that they both have access to a default gateway.
    - I need to use DNS from the network

    What I want to do is split traffic so that any address is directed to the one card and all other addresses are directed through the second card.

    Is this possible and if so can someone help me with the setup?

  2. #2
    Join Date
    Mar 2008

    Re: Splitting network traffic

    I believe I have this working. My /etc/network/interfaces looks like:

    # 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

    auto eth0
    iface eth0 inet static
    address 10.11.xx.xx
    post-up route add -net netmask gw 10.11.xx.zz
    pre-down route del -net netmask gw 10.11.xx.zz

    auto eth1
    iface eth1 inet static
    address 192.168.1.xx
    gateway 192.168.1.zz

    All of my internal traffic is staying internal and my external traffic is getting routed outside.

    The "zz" addresses point to gateway addresses. The "xx" addresses are static.

  3. #3
    Join Date
    May 2008
    Berks, UK

    Re: Splitting network traffic

    I don't think you need to add and remove the route - just ensuring that the route exists for the 10. net is sufficient.
    BTW the 192.168. and 10. networks are classed as private and are non-routable, so you don't need to worry about specific address quoting in a post as they are not available to the outside world.

Tags for this Thread


Posting Permissions

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