RE: 2 NIC's on same network, possible?

From: Ghaith Nasrawi (libero_at_aucegypt.edu)
Date: 07/29/03

  • Next message: subscribe: "syslog log collabration"
    Date: Tue, 29 Jul 2003 11:37:36 +0300
    To: security-basics@securityfocus.com
    
    

    There will not be any confusion at all. The kernel will make one of the NICs
    as its default route, type "route" and you will see your routing table and be
    able to judge which interface is responsible on this. It will be either "eth0"
    or "eth1"

    Regards,

    ./Ghaith
    ===============

    Today is the tomorrow you worried about yesterday

    -----Original Message-----
    From: Vineet Mehta [mailto:vineet@linux.com.kw]
    Sent: Sunday, July 27, 2003 9:49 AM
    To: security-basics@securityfocus.com
    Subject: 2 NIC's on same network, possible?

    Hi all,

    My collegue has a Linux machine which has 2 NIC's on it. What he did was
    assign the IP's 192.168.0.6/24 and 192.168.0.7/24 to the NIC's. And he
    was trying to ping the network but was getting errors (i dont know the
    errors).

                   -----------------
                  | Switch |
                  |_________________|
                    | |
                    | |
                    | |
              -------------------------------
              | NIC1 NIC2 |
              |192.168.0.6/24 192.168.0.7/24|
              | Machine |
              |-----------------------------|

    I tried explaining him like this:->

    Configuring the machine's network like this is not a big problem, coz
    other machines on the network can still see these 2 IP's. But his
    machine will not be able to reach other machines on the network coz 2
    NIC's point to the same network so Linux kernel would be confused for
    which NIC to use to send packets. If by any means we set the route to
    use ANY one NIC to reach the network then there will be no errors.

    Am i right in this, or this is not possible AT ALL? I took my thought
    from the concept of IP Aliasing.

    Thanks in advance for any help.

    Regards,

    -- 
    Vineet Mehta
    Network Security Consultant
    Kuwait Linux Company
    Kuwait
    Ph-2412552/2463633
    <vineet [at] linux [dot] com [dot] kw>
    www.linux.com.kw
    ---------------------------------------------------------------------------
    ----------------------------------------------------------------------------
    

  • Next message: subscribe: "syslog log collabration"

    Relevant Pages

    • Re: Event ID 1000 (Userenv) Error and Event ID 8021 (BROWSER) Error
      ... > destination route entry with the 192.168.0.1 GWY was higher priority, ... > the external network), and from there to the open Internet. ... > An additional item is that it appears that if any of the NICs in the ... > with destination addresses on the 192.168.1 subnet to get to the ...
      (microsoft.public.win2000.dns)
    • Re: Event ID 1000 (Userenv) Error and Event ID 8021 (BROWSER) Error
      ... > destination route entry with the 192.168.0.1 GWY was higher priority, ... > the external network), and from there to the open Internet. ... > An additional item is that it appears that if any of the NICs in the ... > with destination addresses on the 192.168.1 subnet to get to the ...
      (microsoft.public.win2000.networking)
    • RE: More help needed please
      ... I can now ping through the rh box to my main network. ... If so the use a client machine and set it's route to the f/w ... Both nics are set to come up at ...
      (RedHat)
    • Re: intermittent DNS
      ... NIC's connected to my outside network, so let me back up a little. ... Simple statement - if the kernel sees two ways ... said-- ok just throw in two NICS and all is well. ... or really interesting firewall rules. ...
      (comp.os.linux.misc)
    • Re: IP Routing Tables
      ... The XP system with the two NICS can reply the PING ... to the 89.0.0.0/8 network so the answer must be with the Router config then ... > static route to the 172.0.0.0/28 network. ...
      (microsoft.public.windowsxp.network_web)