Ubuntu and static IP address

Karl F. Larsen klarsen1 at gmail.com
Thu Sep 24 22:16:38 UTC 2009


fermilevel wrote:
> What I did for setting up static IP is described here
> 
> http://unixlab.blogspot.com/2009/06/setting-up-static-ip-in-ubuntu-904.html
>  It worked for me
> 
> 
> On Thu, Sep 24, 2009 at 4:35 AM, Karl F. Larsen <klarsen1 at gmail.com> wrote:
> 
>>        I never though it would be so difficult. I tried several
>> ideas from a Google search and 100% of then failed! I think it
>> must be VERY hard to get Ubuntu set up to ask for and get a
>> single IP address.
>>
>>
>> 73 Karl
>>
>>
>>
>> --
>>
>>        Karl F. Larsen, AKA K5DI
>>        Linux User
>>        #450462   http://counter.li.org.
>>         Key ID = 3951B48D
>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
> 
> 
> 

			Success! I changed the process a bit in that I installed 
wicd instead of just deleting network manager. Wanted 
something that would work...

	Here is my file now:
karl at Jaunty:~$ cat /etc/network/interfaces
# auto lo
# iface lo inet loopback
# iface eth0 inet static
# address 192.168.2.6
# netmask 255.255.255.0
#gateway 192.168.0.1

#auto eth0

auto lo
auto eth1
auto eth0

iface lo inet loopback
iface eth1 inet dhcp
iface eth0 inet static

address 192.168.2.6
netmask 255.255.255.0

	When I run ifconfig I get:

karl at Jaunty:~$ sudo ifconfig
[sudo] password for karl:
eth0      Link encap:Ethernet  HWaddr 00:1f:d0:51:a9:21
           inet addr:192.168.2.2

	Alas, this is the address the router assigned. So it is still 
not a success.



  Bcast:192.168.2.255  Mask:255.255.255.0
           inet6 addr: fe80::21f:d0ff:fe51:a921/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
           RX packets:500 errors:0 dropped:0 overruns:0 frame:0
           TX packets:468 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:538029 (538.0 KB)  TX bytes:45899 (45.8 KB)
           Interrupt:252 Base address:0x4000

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



Karl


-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
         Key ID = 3951B48D





More information about the ubuntu-users mailing list