Jump to content

static ip address with ndiswrapper for WMP54G


Sherpa
 Share

Recommended Posts

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...

Link to comment
Share on other sites

/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 by Steve Scrimpshire
Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...