I've attempted to set up a static ip address for my home computer (Ubuntu 12.04LTS), and have followed a few online instructions to no avail. I've managed to reverse what I did, but I'd still like to know the in's and out's of setting up ip addresses.
First of all, what is a static ip address and why does it offer better performance? Is it at all bad for security? Basically, I've heard that I should set up a static ip address and I'm not entirely sure why.
My first crack at this was to run the terminal command:
This shows me a whole bunch of stuff that I don't really know how to interpret. Here's the output:Code:ifconfig
What I attempted next was to change the "managed=false" to "managed=true" in the file: /etc/NetworkManager/NetworkManager.confCode:eth0 Link encap:Ethernet HWaddr c8:60:00:e3:6b:d0 inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::ca60:ff:fee3:6bd0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2214 errors:0 dropped:0 overruns:0 frame:0 TX packets:2351 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1669345 (1.6 MB) TX bytes:301602 (301.6 KB) Interrupt:20 Memory:f7f00000-f7f20000 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:764 errors:0 dropped:0 overruns:0 frame:0 TX packets:764 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:74443 (74.4 KB) TX bytes:74443 (74.4 KB) wlan0 Link encap:Ethernet HWaddr 94:db:c9:4b:87:6d inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::96db:c9ff:fe4b:876d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1399 errors:0 dropped:0 overruns:0 frame:0 TX packets:169 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:410867 (410.8 KB) TX bytes:33267 (33.2 KB)
Then I went into the file: /etc/network/interfaces
Which originally looked like this:
And changed it to this:Code:auto lo iface lo inet loopback
I then edited my connections, and entered in these addresses, and made sure that under IPv4 the method was 'Manual'.Code:auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.108 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
Can anyone see where I messed up?
Thank you for your help!!