Static Ip setting doesn't work..
#1
Running xbmc live on usb, i can run "sudo nano /etc/network/interfaces and comment out the dhcp settings and add the static info. I add the ip address, subnet, gateway save the changes and it keep the changes however i still can not access the net. I can access with dhcp but i would like to set a static so i can access with ssh etc. I also tried adding a broadcast and dns and it still doesn't work. Any advice, thanks in advance.

IE: this is what i have

iface eth0 inet static
address 192.168.2.50
netmask 255.255.255.0
gateway 192.168.2.1
Reply
#2
You can try ifconfig. This will give you the info for your network status.
You can also try this with the old interfaces (DHCP) and compare.

Just type in console:
Code:
ifconfig
Reply
#3
u must also add dns to /etc/resolv.conf
Reply
#4
auto eth0
iface eth0 inet static
address 192.168.178.3
netmask 255.255.255.0
gateway 192.168.178.1
dns-nameservers 192.168.178.1


this what i have
Reply
#5
revove dns-nameservers 192.168.178.1 and put "nameserver 192.168.178.1" in /etc/resolv.conf like i said before
Reply
#6
i usually go into my routers config page and tell it to assign a static ip address to certain mac-addresses.
Reply
#7
Thanks guys for the help, i will give this a shot when i get home tonight.
Reply
#8
Got it working , thanks everyone.
Reply
#9
For the benefit of others in similar situations, can you spell out explicitly how you solved your problem?
Reply
#10
Static IP settings are stored in /etc/network/interfaces

As an example the OP had the following:
Code:
auto eth0
iface eth0 inet static
address 192.168.178.3
netmask 255.255.255.0
gateway 192.168.178.1
The interface is eth0, the address is 192.168.178.3, the subnet mask is 255.255.255.0, and the gateway is 192.168.178.1.

In order for name resolution to work, you need to put a DNS server IP address in /etc/resolv.conf which is where the OP put the following:
Code:
nameserver 192.168.178.1

Of course IP schemas will be different from user to user, and the settings must be correct from a network/subnet perspective, but the entry formats and locations are the same as the above.
Reply
#11
there is a step by step guide to setting a static ip in xbmc live here:
http://setupguides.blogspot.com/2010/08/...-live.html
Reply

Logout Mark Read Team Forum Stats Members Help
Static Ip setting doesn't work..0