The instructions for setting up a LAN, which I assume would allow me to create a sub-domain on my VPS, are the following using the command-line on CentOS:
Using sudo, create the configuration file /etc/sysconfig/network-scripts/ifcfg-eth0:0 with the following:
DEVICE=eth0:0 BOOTPROTO=none ONPARENT=yes TYPE=Ethernet IPADDR=$ADDITIONAL_IP$ NETMASK=255.255.255.0 GATEWAY=XXX.XXX.XXX.1 NAME=eth0:0
If you are using a LAN address, it doesn't require a gateway address and would use 255.255.0.0 for the netmask and then you would restart apache.
So for LAN IP insert IPADDR=$some ip$? Is GATEWAY left as is or deleted? How do I state the name of my subdomain?
After restart I am getting this :
-bash-4.1# /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: /etc/sysconfig/network-scripts/ifup-aliases: line 174: ipseen_eth0myLAN_IP$=ifcfg-eth0:0: command not found
error in ifcfg-eth0:0: already seen ipaddr eth0myLAN_IP$ in $
