Originally Posted by kustomjs
so how do I get this to fix? because its really starting to piss me off.
I have my router on DCHP still but I have my ip made static and it works fine for me (except for a weird ping issue which isn't stopping me doing anything)
Compare your setup to these if you want static ips. If still no joy, try changing your router to use static as well.
My ip example is 192.168.1.50
My gateway is 192.168.1.254 (some folks have theirs end in .1)
Put your desired hostname in for "yourhostname" - if you are doing that.
1. sudo vim /etc/network/interfaces
# primary network interface
iface eth0 inet static
1b. sudo vim /etc/resolv.conf # adding the primary and secondary dns of router and gateway
2. sudo /etc/init.d/networking restart # restart the network
sudo /etc/init.d/networking restart # stops the network (if desired)
3. sudo /bin/hostname yourhostname # setting a new hostname if desired
When system boots it will read the /etc/hostname
4. update /etc/hosts to include your hostname
127.0.0.1 yourhostname localhost
5. slow internet:
Ipv6 (Internet Protocol v6 will someday supercede v4). It can cause speed issues. Disable it if it is slow.
To fully disable Ipv6:
sudo vim /etc/modprobe.d/aliases
Find the line alias net-pf-10 ipv6 and change it to read alias net-pf-10 off. Reboot.