[Voyage-linux] New User, getting started, nfs questions

(spam-protected) (spam-protected)
Sun May 15 07:52:46 HKT 2011


On Sat, May 14, 2011 at 07:26:54PM -0400, ka1ifq wrote:
> 	Ok, I found the biggest part of my problem, after setting the system up 
> with a static IP I guess I did it wrong, it caused the errors, the network did 
> not come up so none of the other network things would work.
> 
> 	So, What is really needed in the /etc/network/interfaces file??
> 
> auto eth0
> iface eth0 inet static
>         adderss 10.128.128.222
>         netmask 255.255.255.0
> #        network 10.128.128.0
>         gateway 10.128.128.1
> #       dns-nameserver = 68.94.156.1
> #       dns-nameserver = 68.94.157.1

There is a typo 'adderss' -> 'address'. 
You could use:

auto eth0
iface eth0 inet static
        address 10.128.128.222
        netmask 255.255.255.0
        # I think the next two are redundent, but don't hurt
        network 10.128.128.0
        broadcast 10.128.128.255
        gateway 10.128.128.1
        # dns-* options are implemented by the resolvconf package, if installed
        # change, to whatever your nameserver is
        dns-nameservers 68.94.156.1

As the comment says, the last line should be used by the resolvconf
package and put into your /etc/resolv.conf file.

> I believe I need the last 2 lines in /etc/resolv.conf from what I read in 
> another message, but /etc/resolv.conf contains the following:
> 
> root at voyage:/etc# more resolv.conf
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver 127.0.0.1
> 
> So, do I edit the file and add my nameserver info, and will it stay across 
> reboots??

No, this would be lost after reboot. You can:

- use the dns-nameservers entry in /etc/network/interfaces as above
- or edit /etc/resolvconf/resolv.conf.d/base and put the name server
  entry there, will be copied  into /etc/resolv.conf after reboot
- or, if you only use this static address, you could just uninstall
  the resolvconf package and edit /etc/resolv.conf once by hand.

Best regards,
  Frank




More information about the Voyage-linux mailing list