Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th December 2013, 18:49
tirengarfio tirengarfio is offline
Junior Member
 
Join Date: Dec 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default About /etc/networks/interfaces and /etc/hosts

Hi,

I'm following the instructions to install IPSConfig on Ubuntu 12.04. I have arrived to the step 7 and it talks about modifying vi "/etc/network/interfaces" and "/etc/hosts". Since I'm following these instructions for a remote VPS (84.124.94.250), not for my local machine, Im wondering how the result would be for both files.

These are the files in the instructions:

Code:
127.0.0.1       localhost.localdomain   localhost
192.168.0.100   server1.example.com     server1

# 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
Code:
# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        dns-nameservers 8.8.8.8 8.8.4.4
And these are my current files:

Code:
# This configuration file is auto-generated.
#
# WARNING: Do not edit this file, your changes will be lost.
# Please create/edit /etc/network/interfaces.head and
# /etc/network/interfaces.tail instead, their contents will be
# inserted at the beginning and at the end of this file, respectively.
#
# NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail
# will be at the very end of this file.
#

# Auto generated lo interface
auto lo
iface lo inet loopback

# Auto generated venet0 interface
auto venet0
iface venet0 inet manual
        up ifconfig venet0 up
        up ifconfig venet0 127.0.0.2
        up route add default dev venet0
        down route del default dev venet0
        down ifconfig venet0 down


iface venet0 inet6 manual
        up route -A inet6 add default dev venet0
        down route -A inet6 del default dev venet0

auto venet0:0
iface venet0:0 inet static
        address 84.124.94.250
        netmask 255.255.255.255
Code:
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
84.124.94.250 vps.server.com  vps
::1             localhost ip6-localhost ip6-loopback
Reply With Quote
Sponsored Links
  #2  
Old 12th December 2013, 21:55
dcurrey dcurrey is offline
Member
 
Join Date: Sep 2013
Posts: 35
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Your vps should be setup as static so no dhcp, so no modifications in interfaces.

Your resolve.conf should be fine.

Note: At least thats how my vps set it up in interfaces did have to add the line in resolve.conf

Last edited by dcurrey; 12th December 2013 at 22:00.
Reply With Quote
  #3  
Old 12th December 2013, 23:54
tirengarfio tirengarfio is offline
Junior Member
 
Join Date: Dec 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So I dont have to touch my interfaces? And /etc/hosts

I don't know what you mean about resolve.conf..
Reply With Quote
  #4  
Old 13th December 2013, 04:01
dcurrey dcurrey is offline
Member
 
Join Date: Sep 2013
Posts: 35
Thanks: 0
Thanked 7 Times in 7 Posts
 
Default

My bad!

Was actually referring to /etc/hosts

Sorry about that. Don't know what I was thinking.

Last edited by dcurrey; 13th December 2013 at 04:04.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache changing /etc/hosts? sparky87 Server Operation 5 9th March 2009 21:12
/etc/hosts change ssh problem bswinnerton Installation/Configuration 23 9th September 2007 20:39
/etc/hosts question Lord Wodan Installation/Configuration 6 8th September 2007 11:16
Hostname and /etc/hosts file? not sure GerardNijboer HOWTO-Related Questions 2 28th August 2007 13:46
Editing /etc/hosts n!x Server Operation 2 24th October 2005 23:34


All times are GMT +2. The time now is 00:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.