Author Topic: Change network  (Read 3685 times)

awakatanka

  • Newbie
  • *
  • Posts: 8
    • View Profile
Change network
« on: March 28, 2007, 03:36:44 pm »
Is it possible to change from network card to wireless? I have used eth0 to get everything working and installed the wireless ra0 after the install. I want now to change eth0 to ra0 but can't figure out how to do it. Our do i need to reinstall and asign the ra0 from the beginning?

Didn't want to tweak wireless till i know linuxmce was working for me.

asgard

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Change network
« Reply #1 on: March 28, 2007, 11:35:11 pm »
Linuxmce is not officialy supporting wireless now, i mean you cannot setup the wireless params from somewhere withing linuxmce. This doesn't mean that it ain't going to work with your wireless card but some tweaking is involved for now. You need to modify a DeviceData entry for your core

1) First step, see what is the current value:
Code: [Select]
echo "SELECT IK_DeviceData from Device_DeviceData WHERE FK_DeviceData = 32 AND FK_Device=1" | mysql pluto_main;
This will show you your current network options. The devicedata 32 (network settings) for device 1 (core). Try to make a note so you can revert if something works wrong. For me is something like this now:
Code: [Select]
eth0,192.168.141.18,255.255.255.0,192.168.141.1,192.168.12.238|eth0:0,192.168.80.1,255.255.255.0
2) Change _first_ 'ethX' entry (eth0) in my case, with the device name of your wireless card (probably ra0/wlan0 or something similar). If you had only one network card as i do in my example i recommend to use the wired one as your external interface and not do an alias on the wireless one since the wired one is faster for pxe booting other computers or sharing data via nfs/samba. This means you want to change 'eth0:0' to eth0, or if you decide to use only the wireless card, change eth0:0 with wlan0:0 (or what is applyable in you hardware).

Code: [Select]
UPDATE Device_DeviceData SET IK_DeviceData = '$NewValue' WHERE FK_Device=1 AND FK_DeviceData = 32
where $NewValue is the modified string, for example in my case:
Code: [Select]
NewValue="wlan0,192.168.141.18,255.255.255.0,192.168.141.1,192.168.12.238|eth0,192.168.80.1,255.255.255.0"or
Code: [Select]
NewValue="wlan0,192.168.141.18,255.255.255.0,192.168.141.1,192.168.12.238|wlan0:0,192.168.80.1,255.255.255.0"
Of course you can do any combination, you only need to know the the first device is the external one and the second the internal one

3) Run /usr/pluto/bin/Network_Setup.sh to apply your changes

PS: This guide assumes that you configure your wireless setting for the wireless card by hand
PS2: If anything goes wrong you can go set your device data to the original state and run Network_Setup.sh again


itspac

  • Veteran
  • ***
  • Posts: 136
    • View Profile
Re: Change network
« Reply #2 on: May 29, 2008, 08:59:42 am »
thanks  this post has been real helpful to me