The default ifcfg-eth0 file will likely be sufficient, but here are the key configuration parameters. No changes should be necessary to the /etc/sysconfig/network-scripts/ifcfg-eth0 file unless a static IP address is required. This is suitable for the tutorial, however, a static public IP address can also be used. Here is a diagram from the ProfitBricks Data Center Designer (DCD) of the example infrastructure.īy default, the ProfitBricks DCD will dynamically assign the gateway server a public IP address. Further internal servers will follow a similar configuration as this server. The secondary network interface, eth1, will be assigned an IP address of 10.0.0.1 with a connection to the private network over LAN 2.Ī second, internal server, named node1 will reside on the private network on LAN 2 with an IP address of 10.0.0.2. The primary network interface, eth0, of the gateway will be assigned a public IP address of 203.0.113.110 with a connection to the public Internet through LAN 1. The example infrastructure will consist of a single gateway server bridging the public Internet and private subnet.
#Centos 7 static ip not working software
An example may include downloading a software package, sending backup data to an external location, or applying system updates to servers on the private subnet.Ī Linux gateway server with two network interfaces, or NICs, can be used to bridge two networks together.
While there may be no need for incoming connections to access the private network from the outside, there are occasions when you may need servers within the private subnet to make connections to services outside of the subnet or to the public Internet. A common network infrastructure may consist of an private network on an isolated subnet.