Sherpa Posted July 5, 2004 Report Share Posted July 5, 2004 this has to be done without the mandrake control center.... (for a full explanation why see: Ndiswrapper Issue anyway is there a way to set a static ip address for a device (wlan0) from the command line with ifconfig, or should i go and manually edit the ifcfg-wlan0 file in /etc/sysconfig/network-scripts/ (if i should do the latter, what do i add and remove) thanks for the help... Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted July 6, 2004 Report Share Posted July 6, 2004 (edited) /etc/sysconfig/network-scripts/ifcfg-wlan0: DEVICE=wlan0 BOOTPROTO=static IPADDR=<<static ip address>> NETMASK=<<whatever was here already>> ONBOOT=yes if this is wireless you may have some of these...leave them whatever they are: MII_NOT_SUPPORTED=yes WIRELESS_MODE=Auto WIRELESS_ESSID= WIRELESS_ENC_KEY= NEEDHOSTNAME=no Edited July 6, 2004 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
Sherpa Posted July 6, 2004 Author Report Share Posted July 6, 2004 what if i am on a local network>? dont i need a gateway address or something? Quote Link to comment Share on other sites More sharing options...
Sherpa Posted July 6, 2004 Author Report Share Posted July 6, 2004 when i do that, and then try to go to a webste i does not work, it says host cannot be found, however i can acces web config utilities for my router, and other things on my network and i can ping things that are on my network... i just cannot go to public websites... Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted July 6, 2004 Report Share Posted July 6, 2004 (edited) Try putting your DNS servers in /etc/resolv.conf nameserver whatever nameserver whatever-else Edited July 6, 2004 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
Sherpa Posted July 6, 2004 Author Report Share Posted July 6, 2004 they're already there... Quote Link to comment Share on other sites More sharing options...
streeter Posted July 6, 2004 Report Share Posted July 6, 2004 Have a look at the sticky post at the top of the networking forum - there are a couple of links to a generic manual set up (including where to put your default route) Read in conjunction with steve Scrimshaw's excellent advice. Also tells you the information we need for a diagnosis. Chris Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted July 7, 2004 Report Share Posted July 7, 2004 Sherpa: As found here: http://web.onetel.net.uk/~showerail/simple_net_setup.html Try commenting out the line I had you add to /etc/init.d/network by adding a # at the beginning of it and add this line to /etc/sysconfig/network: GATEWAY=192.168.1.1 and then do service network restart That should be the 'correct' way to do it. Quote Link to comment Share on other sites More sharing options...
Sherpa Posted July 7, 2004 Author Report Share Posted July 7, 2004 ok i will try that Quote Link to comment Share on other sites More sharing options...
Sherpa Posted July 7, 2004 Author Report Share Posted July 7, 2004 ok well that was already in there,but there was also a line that said GATEWAYDEV=eth0 so i added another line that said GATEWAYDEV=wlan0 and it works :D Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted July 7, 2004 Report Share Posted July 7, 2004 Cool. I knew there was a 'correct' way to do it. B) Quote Link to comment Share on other sites More sharing options...
streeter Posted July 7, 2004 Report Share Posted July 7, 2004 I will add that to the howto Chris Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.