Adding a public and Private IP address in Fedora 10

Discussion in 'Installation/Configuration' started by ddorsey, Jan 10, 2010.

  1. ddorsey

    ddorsey New Member

    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
     
  2. falko

    falko Super Moderator

    You need two network cards for this.
     

Share This Page