RE: Switching between two network cards

From: Steven Jones (Steven.Jones_at_vuw.ac.nz)
Date: 10/07/04

  • Next message: Daniel L. Miller: "Sharing modem/serial port with Windoze"
    Date: Fri, 8 Oct 2004 09:59:49 +1300
    To: "Andrei Badea" <andrei.badea@movzx.net>, "Debian User List" <debian-user@lists.debian.org>
    
    

    I dont quite understand why you need to switch, you could just run everything off eth1, but anyway,

    I would suggest looking in your bios and either disabling the onboard NIC, or changing the PCI probe order eg if its says first-last change it to last-first or what ever syntax your bios uses.

    However Its most likely that the onboard can simply be disabled in the bios.

    regards

    Steven

    -----Original Message-----
    From: Andrei Badea [mailto:andrei.badea@movzx.net]
    Sent: Friday, 8 October 2004 9:55 a.m.
    To: Debian User List
    Subject: Switching between two network cards

    Hello all,

    this is not quite a Debian related problem (except that I'm running sid),
    but anyway... I've got two network cards: one integrated on my motherboard
    (uses the sk98lin driver) and a PCI card (fealnx driver). Both drivers are
    compiled as modules and upon startup I'm loading only fealnx via
    /etc/modules (I'm not loading sk98lin at all). The network runs fine.

    After my system starts, I want to switch to the other network card (the
    sk98lin one), but I only want its module loaded, so I do:

    ifdown eth0
    rmmod fealnx
    modprobe sk98lin
    ifup eth0

    Messages in dmesg say the network is up and running. But it isn't, it
    seems I can't ping nor make net connections. However, when I (for example)
    run a ping and look at the LEDs on the card, I see them bliking in the
    "ping" way. I can also see the echo request and reply packets in tcpdump.
    But ping doesn't get them and reports 100% loss.

    If I unload sk98lin and reload fealnx, the net works fine. Now comes the
    interesting part: if I put sk98lin in /etc/modules instead of fealnx and
    restart, the net comes up. Only this time I can't switch to fealnx. This
    shows both the cards are working.

    I thought this was caused by iptables settings, so after loading the other
    module I rerun the script which setups my firewall rules. Didn't help.

    I'm running Debian sid with self-compiled kernel 2.6.7.

    Any ideas why this is happening? Not that is it important, as my net is
    running with any of the cards if I restart, I'm just curious. However, I'd
    like to point out that I don't want both modules to be loaded. I want to
    be able to unload the running one and load another without having to restart.

    Thanks in advance!

    Best regards,
    Andrei

    -- 
    andrei.badea@movzx.net # http://movzx.net # ICQ: 52641547
    

  • Next message: Daniel L. Miller: "Sharing modem/serial port with Windoze"

    Relevant Pages

    • Switching between two network cards
      ... I've got two network cards: ... and a PCI card (fealnx driver). ... /etc/modules (I'm not loading sk98lin at all). ...
      (Debian-User)
    • Alpha problem with networking support with sk98lin -> oops on bringing up interfaces
      ... I have a alpha box which I can't get nerworking working with my sk98lin ... I had other weird problems with trying a few other network cards ... 512328k/523672k available (2007k kernel code, 8920k reserved, ... RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize ...
      (Linux-Kernel)
    • bonding driver issues: slave interface not coming up
      ... gigabit cards in XOR mode. ... duplex/speed forced on both switch and card: ... attempting to down and up the interface in /etc/rc.d/init.d/network: ...
      (Linux-Kernel)
    • Re: Switching Interfaces
      ... The cards cant be switched, they are both apart of the motherboard and the ... reason i cant just switch the cables is because one of those cards is ... patched into a on board switch. ...
      (comp.os.linux.networking)
    • SUMMARY: KVM switches for Sun hardware
      ... > Can anyone recommend an affordable KVM switch using CAT5 ... I eventually (with hints from Avocent and Ed Arledge) got the Avocent ... I haven't gotten the cgsix cards working correctly yet, ... Suffice it to say that afterwards I've got multiple ...
      (SunManagers)