Hi! I got VDS and installed asterisk 18 + freepbx 16 from official ISO.
Environment: White IP from provider. 92.63.9X.XXX. Mask: 255.255.255.255. Gateway: 10.0.0.1
ip a
ip r
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/sysconfig/network
Can’t log in to GUI http:// 92.63.9X.XXX /admin or ping 92.63.9X.XXX.
And also from freepbx console when I try to ping 8.8.8.8 I’ve got an error: «Network unreachable».
Try to change GATEWAY with: sudo ip route replace default via 10.0.0.1 dev eth0
But got an error: «RTNetlink ANSWERS: network is unreachable»
Firewall is disabled.
P.S Access to freepbx for now only through VNC from VDS provider.
When I configure network parameters and apply it during GUI installation, ping to 92.63.9X.XXX is ok and I receive response. But after installation is complete and reboot, the machine is unreachable.
From who did you get that your gateway should be that ? It is not routeable over the internet, so traffic sent there will not go further unless you have a router serving a private network answering that address
It says so in the provider’s docs about gateway. I guess infrastructure is ok and provider has other routable IP next. It’s strange that when I install a clean CentOS, everything works fine. I can ping machine by address 92.63.9X.XXX. And on the machine I have internet. I saved some config from perfect working CentOS:
[root@asterisk ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="none"
DEVICE="eth0"
HWADDR="52:54:00:11:18:2E"
ONBOOT="yes"
IPADDR="92.63.9X.XXX"
NETMASK="255.255.255.255"
GATEWAY="10.0.0.1"
DNS1=8.8.8.8
[root@asterisk ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search com
nameserver 168.120.247.2
nameserver 168.120.247.8
nameserver 175.60.132.11
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 82.146.59.250
[root@asterisk ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul t qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr oup default qlen 1000
link/ether 52:54:00:11:38:1e brd ff:ff:ff:ff:ff:ff
inet 92.63.9X.XXX32 brd 92.63.9X.XXX scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fe11:381e/64 scope link
valid_lft forever preferred_lft forever
[root@asterisk ~]# ip route
default via 10.0.0.1 dev eth0 proto static metric 100
10.0.0.1 dev eth0 proto static scope link metric 100
92.63.9X.XXX dev eth0 proto kernel scope link src 92.63.9X.XXX metric 100
[root@asterisk network-scripts]# cat /etc/sysconfig/network
# Created by anaconda
The difference only between routes. Freepbx has’t got gateway as CentOS.
As you can see, I’m not very strong and I’m trying to figure it out. Unfortunately, no matter how I tried to add gateway 10.0.0.1 on freepbx, I did not succeed and got errors.
For example: sudo ip route replace default via 10.0.0.1 dev eth0
«RTNetlink ANSWERS: network is unreachable»
P.S Already tested IP address automation. It’s not working.
Thanks a lot. You helped to understand that the problem is not in freepbx. I’ll try to install on freepbx this crazy 10.0.0.1 gateway as default or I’ll have to change providers. If you have other tips, I’ll be happy to try.