Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Ubuntu 11.04 Static IP
PostPosted: Mon Jun 27, 2011 4:27 pm 
Offline
Senior Newbie

Joined: Mon May 16, 2011 5:59 am
Posts: 9
Hi,

I am currently looking over the Ubuntu server guide* and it talks about configuring a static IP address assignment.

Making the following changes in the /etc/network/interfaces file (changing the address details):

Quote:
auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1


Is this necessary and if so why would you want to do this?

*https://help.ubuntu.com/11.04/serverguide/C/network-configuration.html


Top
   
 Post subject:
PostPosted: Mon Jun 27, 2011 4:31 pm 
Offline

Joined: Tue Aug 25, 2009 3:07 pm
Posts: 1
I believe it is needed if you want to use a local LAN IP as well as the public IP. You have a single interface in your linode so supporting multiple IP's comes by defining virtual interfaces.


Top
   
 Post subject:
PostPosted: Mon Jun 27, 2011 4:54 pm 
Offline
Junior Member

Joined: Mon Apr 18, 2011 1:54 pm
Posts: 45
Website: http://www.rassoc.com/gregr/weblog
tech4him wrote:
I believe it is needed if you want to use a local LAN IP as well as the public IP. You have a single interface in your linode so supporting multiple IP's comes by defining virtual interfaces.


Ya know, I noticed this in the Linode static IP config article. But it seems it's totally possible to keep your external IP using DHCP, and use a static IP for your internal; something like:

/etc/network/interfaces:

# The primary network interface
auto eth0 eth0:0
iface eth0 inet dhcp

iface eth0:0 inet static
address 10.0.0.2
netmask 255.255.255.0

Is there anything wrong with doing it this way? I'm wondering if there's a specific reason behind the way the linode article is written.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group