Tag: Network

FreeBSD jails with a single public IP address

Jails in FreeBSD provide a simple yet flexible way to set up a proper server layout. In the most setups the actual server only acts as the host system for the jails while the applications themselves run within those independent containers. Traditionally every jail has it's own IP for the user to be able to address the individual services. But if you're still using IPv4 this might get you in trouble as the most hosters don't offer more than one single public IP address per server. Create the internal network In this case NAT ("Network Address Translation") is...

Static IP + DNS settings in CentOS 6

This one seemed easier then it was in the end ;-) Here's how it works... Caution: I assume you're using eth0 as your network interface! First off, edit /etc/sysconfig/network-scripts/ifcfg-eth0 to include these entries: DEVICE=eth0 HWADDR="enter your mac address here" NETWORK=192.168.0.0 BROADCAST=192.168.0.255 NETMASK=255.255.255.0 IPADDR=192.168.0.112 USERCTL=no Don't forget to replace the values above to match your actual network configuration. After restarting network services neither the default gateway nor DNS servers are recognized, resulting in a non-usable network. To...