static ip adress with wireless connection
Tod Merley
todbot88 at gmail.com
Mon Sep 11 04:02:53 UTC 2006
On 9/10/06, Stephan Vissers <vissers_itm at yahoo.com.au> wrote:
> Hi
>
> I have got some troubles getting a nice static ip adress on my ubuntu box
> which communicate thru my wlan0 interface.
>
> I am following the steps for setting up my own isp from the following page
> http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p3
>
> I changed the interfaces file like this (at the moment my dynamic adress is
> as well 192.168.1.7)
> # The primary network interface
> auto wlan0
> iface wlan0 inet static
> address 192.168.1.7
> netmask 255.255.255.0
> network 192.168.1.1
> broadcast 192.168.1.255
> gateway 192.168.1.1
> Then I do:
> /etc/init.d/networking restart
> * Reconfiguring network interfaces... Internet Systems Consortium DHCP
> Client V3.0.3 Copyright 2004-2005 Internet Systems Consortium. All rights
> reserved. For info, please visit
> http://www.isc.org/products/DHCP Listening on
> LPF/eth0/00:02:a5:35:61:d5 Sending on LPF/eth0/00:02:a5:35:61:d5 Sending on
> Socket/fallback DHCPRELEASE on eth0 to 192.168.1.1 port 67 Internet Systems
> Consortium DHCP Client V3.0.3 Copyright 2004-2005 Internet Systems
> Consortium. All rights reserved. For info, please visit
> http://www.isc.org/products/DHCP Listening on
> LPF/eth0/00:02:a5:35:61:d5 Sending on LPF/eth0/00:02:a5:35:61:d5 Sending on
> Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
> DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 DHCPDISCOVER on
> eth0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on eth0 to
> 255.255.255.255 port 67 interval 13 DHCPDISCOVER on eth0 to 255.255.255.255
> port 67 interval 20 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval
> 7 No DHCPOFFERS received. No working leases in persistent database -
> sleeping. SIOCADDRT: Network is unreachable Failed to bring up wlan0.
> So it seems that there are problems with this and by the way after doing
> this my connection is gone as well. So what should be the right way to get
> it done?
>
> Cheers, Stephan
>
>
> ________________________________
> On Yahoo!7
> Fuel Price Watch - Find and map the cheapest petrol prices in Australia
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
>
Hi Stephan!
What I did was to use the Gnome GUI:
System > Administration > Networking - at the Network Settings window
I chose "Ethernet Connection" and then hit the properties button. You
will probably see tha DHCP is the current choice - THERE set up your
static address.
Another way to check if DHCP is on:
# Here I use "ps aux" (show all processes) and filter with "grep dh"
which only finds itself (expected):
----------------------------------------------------
tod at tod-desktop:~$ ps aux | grep dh
tod 6470 0.0 0.1 2876 800 pts/1 S+ 20:30 0:00 grep
tod at tod-desktop:~$ ps aux | grep dh
dhcp 6722 0.0 0.0 2332 536 ? Ss 20:36 0:00
/sbin/dhclient3 -pf /var/run/dhclient.eth0.pid eth0
tod 6772 0.0 0.1 2876 800 pts/1 S+ 20:37 0:00 grep dh
dh
----------------------------------------------------
# I then went to the networking setup and chose "DHCP" and repeated
the experiment:
----------------------------------------------------
tod at tod-desktop:~$ ps aux | grep dh
dhcp 6722 0.0 0.0 2332 536 ? Ss 20:36 0:00
/sbin/dhclient3 -pf /var/run/dhclient.eth0.pid eth0
tod 6772 0.0 0.1 2876 800 pts/1 S+ 20:37 0:00 grep dh
---------------------------------------------------
>From what I can see from what you have written this is probably a good approach.
Good Hunting!
Tod
More information about the ubuntu-users
mailing list