Re: Configure multiple ethernet interfaces

From: Bob Shaffer (fedora_at_bobshafferscomputer.com)
Date: 05/07/04

  • Next message: Tom 'Needs A Hat' Mitchell: "Re: Upgrade to FC2 [when it comes]"
    Date: Fri, 7 May 2004 15:17:59 -0400 (EDT)
    To: "For users of Fedora Core releases" <fedora-list@redhat.com>
    
    

    Demyanovich, Craig - Apogent said:
    > Greetings,
    >
    > I can't recreate the configuration of network interfaces after a FC1
    > install. eth0 (built-in) has been identified and configured correctly.
    > However, eth1 (built-in) and eth2-5 (a 4-port card) are a mess. Kudzu
    > doesn't detect everything properly at boot time. Furthermore, despite
    > deleting all devices (via the GUI config tool), /etc/sysconfig/hwconf
    > still
    > lists eth4 and eth5. Yet, /etc/sysconfig/network-scripts lists only eth0
    > and lo (good), and /etc/modules.conf lists only eth0 (good). What gives?
    >
    > What I want to be able to do is to keep the config for eth0 and start
    > fresh
    > with eth1-5. For example, first I'd configure eth1 and test. Then, I'd
    > try
    > to configure the 4-port card (eth2-5). Still very new to linux
    > administration, I've been struggling to find a good resource on how to
    > accomplish my goal. I would greatly appreciate any pointers on the proper
    > way to tell FC1 exactly what I want the details (card, driver, assigned to
    > ethX, etc.) of the remaining interfaces to be.
    >
    (snip)

    You're pretty much stuck with whatever number it gives your interfaces. I
    think it mostly depends on which slot they are actually in.

    I'm not familiar with the GUI interface, but your drivers are controlled
    by the aliases in /etc/modules.conf and you can just enter whatever you
    want in there. The other parameters are contained in the files
    /etc/sysconfig/network-scripts/ifcfg-eth* and you can probably copy the
    eth0 file and edit it to suit your needs for the other interfaces. It
    sounds like you want to only start eth0 on boot, so you may want to use
    something like this for your ifcfg-eth* files above eth0:

    DEVICE=eth1
    ONBOOT=no

    Other variables that you can define there are:
    BOOTPROTO=[bootp|dhcp|static]

    if you use 'static', these are useful:

    IPADDR=10.11.12.13 # IP for interface
    NETMASK=255.255.252.0 # Netmask for interface/network
    BROADCAST=10.11.15.255 # Broadcast address for interface/network
    GATEWAY=10.11.15.254 # default gateway for interface (if any)

    I don't see a man page for these scripts anywhere. You could print out
    the /sbin/ifup script for reference if you can read shell scripts.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Tom 'Needs A Hat' Mitchell: "Re: Upgrade to FC2 [when it comes]"

    Relevant Pages

    • Re: How to get my 2 ethernet cards to work
      ... interfaces file... ... '/etc/ifplugd/ifplugd.action eth1 up'. ... for eth0. ... please read it before requesting help. ...
      (comp.os.linux.networking)
    • Re: renaming kernel devices [was: VIA EPIA EK: strange eth dev numbering]
      ... There never *were* days when eth0 remained eth0 across such changes. ... Shuffling rest of the interfaces if eth0 is removed and no this persistent ... There are PCI wireless cards, ... but during kernel lifetime it ...
      (Linux-Kernel)
    • Re: Thinkpad wireless masquerade
      ... eth0 192.168.1.19 netmask 255.255.255.0 ... A pc behind the thinkpad configures with ... On the thinkpad I can ping forward to the outward connection ... >> On configuring the interfaces individually they work fine, ...
      (comp.os.linux.networking)
    • Re: Confused about bridging, firewall (iptables), and DHCP
      ... using eth0 if it were a stand-alone machine. ... It is also possible to add rules for individual interfaces ... that make up the bridge, but in this case, you will probably want ... I'm reading Rusty Russell's Linux iptables HOWTO now. ...
      (Fedora)
    • Re: ifconfig command shows only loopback device.
      ... Services that expect an accessible network interface will be started before the interface is accessible. ... Look at the Hardware tab to make sure the interfaces were detected, then delete any interfaces in the Interfaces tab and recreate them. ... after running modprobe e1000 ifconfig returns eth0. ...
      (RedHat)