The permanent way should not work in Moblin image, since connection manager 
will take over all the network connection tasks and ignore all the network 
script files in system.

-Cathy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Adam 
Miller
Sent: 2009年6月9日 3:42
To: [email protected]
Subject: Re: [Moblin Dev] Static IP

Setting static IP from the command line should be done as follows
(example using wlan0 as you interface, 192.168.1.1 as the gateway,
192.168.1.100 as the ip and 255.255.255.0 as the netmask)

As root:
ifconfig wlan0 up
ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0
route add default gw 192.168.1.1

Alternatively if you would like to make this a permanent change, edit
the file /etc/sysconfig/network-scripts/ifcfg-wlan0 to be something
like this:
DEVICE=wlan0
BOOTPROTO=static
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes

-Adam

-- 
http://maxamillion.googlepages.com
---------------------------------------------------------
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments
_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists
_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to