Static IP Networking - adding 2nd server
Posted: 2019/04/19 14:52:24
Hello,
Struggling to set up a 2nd server on network.
Per, ISP
static ip's x.x.x.33/28
gateway is x.x.x.46
subnetmask 255.255.255.240
Attempting to add a 2nd server that is static configured
server1.domain.com x.x.x.33
this hostname has a dns hosted by third party.
A record exists at DNS server for each "host name/subdomain" as shown
PTR record exists with ISP
server2.domain.com x.x.x.42
this hostname also has dns hosted by third party.
A record exists at DNS server for each "domain" as shown
PTR record exists with ISP
+++++++++++++++
first server has - Centos 6
x.x.x.33
Netmask is 255.255.255.240
gateway is x.x.x.46
broadcast is x.x.x.32
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME="server1.domain.com"
GATEWAY=x.x.x.46
When I execute ifconfig -a, values shown above are displayed.
+++++++++
second server has - Centos 7
x.x.x.42
Netmask is 255.255.255.240
gateway is x.x.x.46
broadcast is x.x.x.32
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME="server1.domain.com"
GATEWAY=x.x.x.46
When I execute ifconfig -a, values change... and broadcast is shown at x.x.x.47
The ifcfg-eth0 file values include a "PREFIX"=28. And, I suspect this is the reason it keeps changing the broadcast value to "47". But, I don't know how to get this configured so it is publicly reachable for ssh and internet traffic. Help appreciated. thx
Struggling to set up a 2nd server on network.
Per, ISP
static ip's x.x.x.33/28
gateway is x.x.x.46
subnetmask 255.255.255.240
Attempting to add a 2nd server that is static configured
server1.domain.com x.x.x.33
this hostname has a dns hosted by third party.
A record exists at DNS server for each "host name/subdomain" as shown
PTR record exists with ISP
server2.domain.com x.x.x.42
this hostname also has dns hosted by third party.
A record exists at DNS server for each "domain" as shown
PTR record exists with ISP
+++++++++++++++
first server has - Centos 6
x.x.x.33
Netmask is 255.255.255.240
gateway is x.x.x.46
broadcast is x.x.x.32
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME="server1.domain.com"
GATEWAY=x.x.x.46
When I execute ifconfig -a, values shown above are displayed.
+++++++++
second server has - Centos 7
x.x.x.42
Netmask is 255.255.255.240
gateway is x.x.x.46
broadcast is x.x.x.32
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME="server1.domain.com"
GATEWAY=x.x.x.46
When I execute ifconfig -a, values change... and broadcast is shown at x.x.x.47
The ifcfg-eth0 file values include a "PREFIX"=28. And, I suspect this is the reason it keeps changing the broadcast value to "47". But, I don't know how to get this configured so it is publicly reachable for ssh and internet traffic. Help appreciated. thx