Page 1 of 1

Static IP Networking - adding 2nd server

Posted: 2019/04/19 14:52:24
by drummondislebsd
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

Re: Static IP Networking - adding 2nd server

Posted: 2019/04/20 14:09:01
by TrevorH
Your broadcast address on that network is .47 - it's not .32.

Code: Select all

$ ipcalc -4 -b -m -n 192.168.1.33/28
NETMASK=255.255.255.240
BROADCAST=192.168.1.47
NETWORK=192.168.1.32