Re: binding IPs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 2007-06-04 21:02:46 LC wrote:
> Hi List,
> 
> How do you bind an external IP and an internal IP to a fedora box? Is it 
> possible?
> 

what exactly do you need? 2 IPs on one interface?
If so, you can do this (at least that's what I do):
# cd /etc/sysconfig/network-scripts
# cp eth0 eth0:1
edit eth0:1 to something like this:
--- cut ---
DEVICE=eth0:1
ONBOOT=yes
NETWORK=192.168.1.0
IPADDR=192.168.1.1
BROADCAST=192.168.1.255
NETMASK=255.255.255.0
NOZEROCONF=yes
--- cut ---
This is if eth0 is configured with static IP (can't have dhcp and ip
aliases). After this
# ./ifup-aliases eth0
and that's it.

If you want to make it a router/firewall it's better (more, it's a
must) to have two network cards - one with real IP and one with local.

-- 
Regards,
  Doncho N. Gunchev, GPG key ID: 0EF40B9E, Key server: pgp.mit.edu


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux