I'm trying to connect a web server A, with a database server B so that they have the least possible delay. Both servers run Debian, are on the same rack and are connected together by a cable on their second Ethernet port . here are the /etc/network/interfaces specs.
Server A (front)
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 11.22.33.5
netmask 255.255.255.248
network 11.22.33.3
broadcast 11.22.33.10
gateway 11.22.33.4
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
Server B (back)
auto lo
iface lo inet loopback
auto eth0
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 11.22.77.8
netmask 255.255.255.248
network 11.22.77.6
broadcast 11.22.77.23
gateway 11.22.77.7
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 11.22.77.89
I am wondering what change(s) should I make to the interface files in order to make server A communicated directly with B through the cable. Thanks
ipcalc
tool to assist you with choosing a suitable subnet for the connection. Better, use IPv6 for the link and you can use the link-local addresses. – MikeyB Oct 8 '12 at 18:18