Re: Single NIC multiple configurations

From: Christopher K. Johnson (ckjohnson_at_gwi.net)
Date: 06/14/04

  • Next message: James Kosin: "[FC1] samba update breaks samba-vscan-clamav..."
    Date: Mon, 14 Jun 2004 13:53:28 -0400
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Michael Griffin wrote:

    >I have a laptop with a single NIC which I use for both work and home.
    >Obviously my network settings are different but I was wondering if I
    >could set it up so that the correct configuration would come up
    >depending upon which environment I was in. I am not opposed to manually
    >bringing the network up or down in each, setting, I am just wondering
    >what would be a "best practice".
    >
    >I was/am considering using aliasing (eth0:0, eth0:1), but I am not sure
    >how I would go about it.
    >
    >All responses appreciated,
    >
    >Thank you,
    >
    >Michael
    >
    >
    >
    >
    Use multiple network profiles as configured via system-config-network on
    FC2 or redhat-config-network on FC1.
    I.E. create a home profile and a work profile and put different named
    inteface configurations that may use the same device (eth0) in, and have
    one active in home profile, and one active in work profile.
    Edit /boot/grub/grub.conf duplicating the entire entry for your
    preferred boot choice, then add "netprofile=home" to the kernel line on
    one, and "netprofile=work" to the other.
    Hint: you can add "home" to the end of one title line and "work" to the
    end of the other title line so it is easy to tell which you are choosing
    in the grub boot menu at next boot.

    Here is a sample boot entry for a "home" network profile:
    #
    title Fedora Core (2.6.3-2.1.240) home
            root (hd0,0)
            kernel /vmlinuz-2.6.3-2.1.240 ro root=LABEL=/ hdc=ide-cd vga=792
    acpi=on psmouse.proto=imps netprofile=home
            initrd /initrd-2.6.3-2.1.240.img

    Chris

    -- 
    -----------------------------------------------------------
       "Spend less!  Do more!  Go Open Source..." -- Dirigo.net
       Chris Johnson, RHCE #807000448202021
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: James Kosin: "[FC1] samba update breaks samba-vscan-clamav..."

    Relevant Pages

    • RE: Strange logon problem, takes minutes to logon to Windows XP SP
      ... This is caused by the asyncronous loading of networking during the boot up ... wait for the network at computer startup and logon" to ENABLED. ... profile and is trying to logon with your local profile", ...
      (microsoft.public.windowsxp.network_web)
    • Re: Extremely slow startup and bootvis dies on me with error
      ... If I disable all network adapters my system boots in 20 ... What does the system do with network that requires so much time? ... Its almost as if I can boot with disabled network and put the network enable ... "number of logical drives in this configuration is 0, ...
      (microsoft.public.windowsxp.perform_maintain)
    • Re: [SLE] SUSE10 -- wireless "profiles"?
      ... tray and select a different network, bada boom, bada bing, done. ... I take my laptop to work, I want it to boot into the appropriate profile. ...
      (SuSE)
    • RE: eth0 not starting on bootup
      ... Some times I find the simplest solution is to remove the configuration ... Use network ... the eth0 interface is now no longer ... > the interfaces that I have destined for startup will activate on boot. ...
      (RedHat)
    • [opensuse] local network to ADSL router not available after boot - manual reconfiguration needed
      ... After every boot I have to use YasT to reconfigure network device, that is to say - delete it - press next etc. Card is then shown in Yast as not configured. ... If I do not delete the configuration first with YasT, but just edit the configuration, then I do not get a IP-address assigned via DHCP, and cannot connect to network. ...
      (SuSE)