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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th January 2010, 19:31
ddorsey ddorsey is offline
Junior Member
 
Join Date: Apr 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding a public and Private IP address in Fedora 10

I am using Fedora 10 i386 and would like to configure is such that can be seen on the internet (public ip address) and also my local network can see it as a node (private ip address).
I have only one NIC installed.

I create a ifcfg-eth0:0 file for this setup

Example

ifcfg-eth0 file (Public IP address)
Device=eth0
Bootproto=none
Gateway=76.x.x.x
HWaddr=xx:xx:xx:xx:xx:xx
IPaddr=76.x.x.x
Netmask=255.255.x.x
OnBoot=yes

ifcfg-eth0:0 (Private IP address)
Device=eth0:0
Bootproto=none
Gateway=172.16.0.1
HWaddr=xx:xx:xx:xx:xx:xx
IPaddr=172.16.1.6
Netmask=255.255.255.0
OnBoot=yes

This works fine until i have to reboot the computer. I can no longer view the computer from the internet or the intranet

When I view the view the connection information (ifconfig)

the inet address is showing the DHCP address of 172.16.1.33

Where/What am I doing wrong
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2010, 15:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

You need two network cards for this.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
Public and private IP address confusion wxman Installation/Configuration 4 20th June 2009 15:20
BIND configuration for Public and Private IP Address joel_griego Installation/Configuration 1 18th March 2009 12:39
Postfix + VDA patch (doesn't build RPM on server) VelhaChica Server Operation 5 18th October 2007 17:50
Private or Public IP settings kyriakos Installation/Configuration 1 20th February 2006 14:24


All times are GMT +2. The time now is 20:07.


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