file for default gateway

Asked by aneesh

Is there any file for default gateway like interfaces & resolve.conf for ip address and dns respectively ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :
#1

The gateway is also set in interfaces.

Example:

     iface eth0 inet static
             address 192.168.0.111
             netmask 255.255.255.0
             gateway 192.168.0.1

See "man interfaces" for details!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

If you use the interfaces line it will override any settings in network manager for that interface, you can also use network manager to set a static IP and define the address, mask and gateway there too if the interfaces file scares you.

Revision history for this message
Sam_ (and-sam) said :
#3

Wow, from 148 questions five are solved.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

How do you mean?

Can you help with this problem?

Provide an answer of your own, or ask aneesh for more information if necessary.

To post a message you must log in.