Re: Multiple network configurations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have the same situation (DHCP and fiexed IP address at different
locations)

I tried to use 'profile' in neat (redhat-config-network), but
all I saw was having confusion with thoes files.

/etc/sysconfig/network-script/network-functions

the fist shell-funtions searches some paths for the config files

need_config ()
{
    CURRENT_PROFILE=${CURRENT_PROFILE:-default}
    CURRENT_PROFILE=${CURRENT_PROFILE##*/}
    CONFIG=../networking/profiles/$CURRENT_PROFILE/ifcfg-${1}
    [ -f "${CONFIG}" ] && return ||
    CONFIG=../networking/profiles/$CURRENT_PROFILE/${1}
    [ -f "${CONFIG}" ] && return ||
    CONFIG=../networking/default/ifcfg-${1}
    [ -f "${CONFIG}" ] && return || CONFIG=../networking/default/${1}
    [ -f "${CONFIG}" ] && return || CONFIG="ifcfg-${1}"
    [ -f "${CONFIG}" ] && return || CONFIG="${1}"
}


CURRENT_PROFILE will be set in


/etc/sysconfig/network (by neat, ...)

But I got confusion with (hard, not symbolic) links between
those config file in the paths. Even different configs in different
profiles (default and dhcp) have the same i-node.
It does not work!

CURRENT_PROFILE can also be set using 'netprofile=profilename'
when appended to 'kernel' line of 'GRUB' config entry.

http://www.gurulabs.com/RedHatLinux9-review.html

tells more about that.

I did not try it with the current update (bug fixes) for
redhat-config-network (as provided by RH some days ago),
but will do so during the next days.

Any ideas?

Toni

Ossama Khayaat wrote:
I tried using the tui and gui based versions, and couldn't figure out how to use multiple configurations though.

Anyone?

Ossama


Hi all,
I'm using RH9 on my laptop. I'm having a problem that every
time that I take it somewhere, I have to change the
configuration of the NIC to be able to connect to the network.
Is there a way I can be able to save the configurations so
that I can simply switch between them when ever I need?

redhat-config-network supposed to support multiple profiles. I never used it though.

HTH,
	Pavel.


Regards,
Ossama Khayat

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 8/12/2003



--
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list



--
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 8/12/2003



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 8/12/2003




-- SIEMENS AG mailto:Antonius.Erdmann@xxxxxxxxxxx ICM N PG C S B 2 fon: +49 89 722-58511 Antonius "Toni" Erdmann fax: +49 89 722-40771 Hofmannstr. 51 / Mch P-Ha32 mobile: +49 177 3180707 81359 Muenchen, Germany


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux