I’m having trouble getting a /22 subnet working on an Ubuntu 16 server. From the outside world, I cannot ping any IPs assigned to VLAN except .2
Ubuntu Server Network Config:
Also added this line in interfaces, still doesn't work
root@server15:~# sudo service networking restart
How do I permanently configure a range of static IPs (/22) in Ubuntu 16 Server?
Ubuntu Server Network Config:
Code:
root@server15:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eno1
iface eno1 inet static
address xxx.53.16.2
netmask 255.255.252.0
network xxx.53.16.0
broadcast xxx.53.19.255
gateway xxx.53.16.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers xxx.xxx.33.61 xxx.xxx.33.62
dns-search domain.com
Code:
#Add internal route
up route add -net xxx.53.16.0/22 gw xxx.53.16.1 dev eno1
How do I permanently configure a range of static IPs (/22) in Ubuntu 16 Server?