Wlan in 2 verschiedenen Netzen
hi, ich habe endlich in der uni das wlan zum laufen bekommen wir benutzen da ipsec tools und racoon... mein problem ist jetzt: wie richte ich mir zuhause zusätzlich ein wep-wlan ein, ohne die einstellungen von dem uni netzwerk zu zerstören? ich hab gehört das dieser suse profil manager gehen soll....aber irgendwie is das mist damit, denn wenn ich in einem profil in yast was ändere (also das wlan zeugs) dann ist es im anderen profil auch geändert(also die uni einstellungen sind weg). gibt es da nich noch ne möglichkeit? gruß und danke robert
On Fri, Nov 19, 2004 at 07:19:59PM +0100, iNDEkZ wrote:
ich hab gehört das dieser suse profil manager gehen soll....aber irgendwie is das mist damit, denn wenn ich in einem profil in yast was ändere (also das wlan zeugs) dann ist es im anderen profil auch geändert(also die uni einstellungen sind weg).
This small description will focus on using SCPM for network management for a laptop. I assume that you know how to setup your network in a specific place using YaST or by editing the configuration files by hand. It is written for Suse 9.1 The problem you are trying to solve is how to switch between configurations in a simple way, instead of entering everything from scratch every time. In my case I have a few different settings I want to switch between 1) no network (for train/coffee shop use) 2) my university connection which has a static IP and uses the ethernet card. 3) a university wireless connection 4) a wireless connection at home In the first case I do not want the network interfaces activated and in the other three cases I want either the ethernet card or the wireless card activated. The network configuration files are stored in /etc/sysconfig/network/ifcfg-* files. In my case I have two files called ifcfg-eth-id-00:0e:a6:cb:a1:4e ifcfg-wlan0 The first one configures the ethernet card and the second my wireless. This is the essential contents of ifcfg-wlan, when I try to hook up to my wirless network at home: BOOTPROTO='dhcp' STARTMODE='onboot' WIRELESS_AUTH_MODE='open' WIRELESS_BITRATE='auto' WIRELESS_ESSID='his' WIRELESS_KEY_0='some hex-number, delete' WIRELESS_KEY_LENGTH='128' WIRELESS_MODE='Managed' WIRELESS_POWER='yes' and this is the essentail contents of ifcfg-eth0 when I try to hook up to my univeristy account BOOTPROTO='static' IPADDR='128.32.208.249' NETMASK='255.255.255.0' STARTMODE='onboot' UNIQUE='75Hn.aPFSsiJK7r0' _nm_name='bus-pci-0000:01:08.0' BROADCAST='128.32.208.255' NETWORK='128.32.208.0' Switch to root. The first thing you will need to do is enable SCPM # scpm enable I will start by including profile 1 above (no network activated). In this case I edit ifcfg-eth, ifcfg-wlan0 so they both contain the setting STARTMODE='manual' which means that the network cards will not be started unless I explicitly do so. This is then a profile. I save that by doing # scpm add nonet "nonet" is my name for the profile. Now I configure my uni account and I remember to do STARTMODE='onboot' (but only for the ifcfg-eth file). This configuration is then stored by # scpm add ucb I now have two profiles # scpm list nonet ucb (active) I can swith between them by # scpm switch nonet Switching bsically does the following 1) stop all network connections 2) switch configuration files 3) start the network connections (in step 3, a network connection will be started if STARTMODE='onboot') I finally add the two remaining profiles. If I now need to edit profile "nonet", I do # scpm switch nonet do editing # scpm save Well, this is basically it! The only remaining wish is the ability to switch between profiles as non-root. I have had some problem making this work reliably, but according to the manual I should only do # chmod 4755 /sbin/scpm and then edit /etc/scpm.users to include a list of users allowed to use scpm. If you want to boot your laptop in a specific mode, read the entry in the suse admin manual section 7.3. It is really easy (basically just add PROFILE=nonet to /boot/grub/menu.lst) You can do a lot more, but then I suggest reading the texinfo pages. -- Kasper Daniel Hansen, Research Assistant Department of Biostatistics, University of Copenhagen
participants (2)
-
iNDEkZ
-
Kasper Daniel Hansen