Network set up - can not enter my gateway address

Asked by John Deakin

I am new to Ubuntu and have just loaded 9.10. I am trying to set up a manual IP network using "Editing Auto eth0. When trying to add the gateway address (my router to the Internet) the address is dropped and reverts to 0.0.0.0 when I try to apply the settings. The computer address and network mask are saved correctly.

The documentation is very vague on this topic and I cannot find a similar problem in this forum and I am not sure I am using the correct application for the job

Any help gratefully received.

regards,
John

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
John Deakin
Solved:
Last query:
Last reply:
Revision history for this message
A. Denton (aquina) said :
#1

Yes, this is indeed a problem. When recently using "SystemRescueCD" v2.x (Gentoo based) I had to go through all the steps of using "ipconfig", modifying "/etc/hosts", "/etc/networks" and setting up routes with the "route" command. That sucks!

Fortunately there are other ways to set up networking in *buntu. It depends on the version one uses though. Therefore provide us with "uname -a" output from a shell/terminal, please.

On Ubuntu Server you have to set up networking by hand or with a binary. I recommend you to see [L1] which points to a pre-defined Google serach and try it again for yourself. That way you will learn more and become able to master stuff like that in the future.

[L1] http://tinyurl.com/ubuntunetworking

Revision history for this message
John Deakin (john-humanaspects) said :
#2

Aquina,

Thank you for your help. I will work through your suggestions over the
next few days.

regards,
John

On 06/04/2010 23:26, Aquina wrote:
> Your question #106597 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/106597
>
> Status: Open => Answered
>
> Aquina proposed the following answer:
> Yes, this is indeed a problem. When recently using "SystemRescueCD" v2.x
> (Gentoo based) I had to go through all the steps of using "ipconfig",
> modifying "/etc/hosts", "/etc/networks" and setting up routes with the
> "route" command. That sucks!
>
> Fortunately there are other ways to set up networking in *buntu. It
> depends on the version one uses though. Therefore provide us with "uname
> -a" output from a shell/terminal, please.
>
> On Ubuntu Server you have to set up networking by hand or with a binary.
> I recommend you to see [L1] which points to a pre-defined Google serach
> and try it again for yourself. That way you will learn more and become
> able to master stuff like that in the future.
>
>
> [L1] http://tinyurl.com/ubuntunetworking
>

Revision history for this message
John Deakin (john-humanaspects) said :
#3

Aquina,

I decided to try this on the new Ubuntu 10 and I got the same problem.
After your help I have added to the /etc/network/interfaces and now I
can ping to the router and the internet. However, I cannot get any web
or e-mail services through. Although I have named the computer my router
reports the computer as UNKNOWN. The router is letting my Windows
machine do all the normal internet things.

I have done a uname -a, and the results are:
john@gandalf:~$ uname -a
Linux gandalf 2.6.32-16-generic #25-Ubuntu SMP Tue Mar 9 16:33:52 UTC
2010 i686 GNU/Linux
john@gandalf:~$

If you have any more helpful advice I would be grateful.

thanks,
John

On 06/04/2010 23:26, Aquina wrote:
> Your question #106597 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/106597
>
> Status: Open => Answered
>
> Aquina proposed the following answer:
> Yes, this is indeed a problem. When recently using "SystemRescueCD" v2.x
> (Gentoo based) I had to go through all the steps of using "ipconfig",
> modifying "/etc/hosts", "/etc/networks" and setting up routes with the
> "route" command. That sucks!
>
> Fortunately there are other ways to set up networking in *buntu. It
> depends on the version one uses though. Therefore provide us with "uname
> -a" output from a shell/terminal, please.
>
> On Ubuntu Server you have to set up networking by hand or with a binary.
> I recommend you to see [L1] which points to a pre-defined Google serach
> and try it again for yourself. That way you will learn more and become
> able to master stuff like that in the future.
>
>
> [L1] http://tinyurl.com/ubuntunetworking
>

Revision history for this message
A. Denton (aquina) said :
#4

Add these lines to your "/etc/resolv.conf" file (provides Ubuntu with DNS-servers to ask dor DNS resolution required for surfing):

nameserver 208.67.220.220
nameserver 208.67.222.222
_____________________________________________

My "/etc/network/interfaces" looks like this (.10 is *my* Xubuntu box, .1 is *my* router):

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0
_____________________________________________

To add aliases in "/etc/hosts" (for the ease of use in webbrowsers; use appropriate names for "router" and "computername" though!):

# The following lines are IPv4 compliant host assignments
127.0.0.1 localhost
192.168.1.1 router
192.168.1.10 computername

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback

fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
_____________________________________________

To give your computer a name edit "/etc/hostname" (write just the name nothing else!):

COMPUTERNAME

Revision history for this message
John Deakin (john-humanaspects) said :
#5

Aquina,

thanks for the help that all seems to have done the trick. Sorry for the
delay in responding but it was a heavy weekend.

regards,
John

On 09/04/2010 03:37, Aquina wrote:
> Your question #106597 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/106597
>
> Status: Open => Answered
>
> Aquina proposed the following answer:
> Add these lines to your "/etc/resolv.conf" file (provides Ubuntu with
> DNS-servers to ask dor DNS resolution required for surfing):
>
> nameserver 208.67.220.220
> nameserver 208.67.222.222
> _____________________________________________
>
> My "/etc/network/interfaces" looks like this (.10 is *my* Xubuntu box,
> .1 is *my* router):
>
> auto lo
> iface lo inet loopback
>
>
> iface eth0 inet static
> address 192.168.1.10
> netmask 255.255.255.0
> gateway 192.168.1.1
>
> auto eth0
> _____________________________________________
>
> To add aliases in "/etc/hosts" (for the ease of use in webbrowsers; use
> appropriate names for "router" and "computername" though!):
>
> # The following lines are IPv4 compliant host assignments
> 127.0.0.1 localhost
> 192.168.1.1 router
> 192.168.1.10 computername
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 ip6-localhost ip6-loopback
>
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
> _____________________________________________
>
> To give your computer a name edit "/etc/hostname" (write just the name
> nothing else!):
>
> COMPUTERNAME
>

Revision history for this message
A. Denton (aquina) said :
#6

Can you please mark my answer (the one that solved your question) and thus close this question, please? Thanks in advance! :-)

- Aquina

Revision history for this message
John Deakin (john-humanaspects) said :
#7

Aquina,

Thank you very much. Now sorted.