I have been trying to configure the static IP addresses with Ubuntu 16.04 Dabian version. The network as follows in the graph
I have been failing to ICMP (ping echoing) between the Client and the HTTP server. Is there a way I can connect both of the Server and Client through the router 192.168.1.11 and 192.168.1.12?
My current network interface configuration for 192.168.1.11 and 192.168.1.12 which can ICMP between 192.168.0.16 and 192.168.2.16, but not to 192.168.0.17 from 192.168.1.12 nor to 192.168.2.17 from 192.168.1.11:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
# adding vlan 201 on eno1 - static IP address
auto eno1.201
iface eno1.201 inet static
address 192.168.1.12
netmask 255.255.255.0
vlan-raw-device eno1
post-up ip route add default dev eno1.201
# Adding vlan 101 on eno1 - Static IP address
auto eno1.101
iface eno1.101 inet static
address 192.168.2.16
gateway 192.168.1.10 # switch IP address
netmask 255.255.255.0
vlan-raw-device eno1
My Client static address:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address 192.168.2.17
netmask 255.255.255.0
network 192.168.2.0
gateway 192.168.2.16
Note: I can connect the server and the client when I use IPsec, but when I stop IPsec, they don't ICMP each other.