I have Ubuntu and I'm trying to setup my internet connection.
First I was trying to use DHCP, so I configured eth0 in /etc/network/interfaces as "iface eth0 inet dhcp".
But I have to run dhclient everytime I want the connection to be up and a few minutes later the connection stops working.
Then I tryed to make eth0 a static connection:
iface eth0 inet static
adress 192.168.0.82
netmask 255.255.255.0
gateway 192.168.0.1
But when I run ifup -a get an error message saying:
"Don't seem to have all the variables for eth0/inet.
Failed to bring up eth0."
As my internet connection is shared from a Windows XP computer I have to specify it as the gateway right?
What information is missing?
Thanks,
Komyg
First I was trying to use DHCP, so I configured eth0 in /etc/network/interfaces as "iface eth0 inet dhcp".
But I have to run dhclient everytime I want the connection to be up and a few minutes later the connection stops working.
Then I tryed to make eth0 a static connection:
iface eth0 inet static
adress 192.168.0.82
netmask 255.255.255.0
gateway 192.168.0.1
But when I run ifup -a get an error message saying:
"Don't seem to have all the variables for eth0/inet.
Failed to bring up eth0."
As my internet connection is shared from a Windows XP computer I have to specify it as the gateway right?
What information is missing?
Thanks,
Komyg