0

I have bought another server for mysql. and now the webserver and the mysql server are connected with a crossover cable.
I want to configure ips manually.
On webserver eth1 is for internet. eth0 is connected to crossover cable.
how should I configure this file on webserver.
/etc/sysconfig/network-scripts/ifcfg-eth0

# Intel Corporation 82579LM Gigabit Network Connection
DEVICE=eth0
BOOTPROTO=none
BROADCAST=x.x.x.x
HWADDR=00:25:90:57:d7:63
IPADDR=x.x.x.x
NETMASK=x.x.x.x
NETWORK=x.x.x.x
ONBOOT=no
GATEWAY=x.x.x.x
TYPE=Ethernet

2 Answers2

1

On server 1:

TYPE=Ethernet
DEVICE=eth0
IPADDR=10.0.0.1
NETMASK=255.255.255.0
NETWORK=10.0.0.0
ONBOOT=yes

Then on server 2:

TYPE=Ethernet
DEVICE=eth0
IPADDR=10.0.0.2
NETMASK=255.255.255.0
NETWORK=10.0.0.0
ONBOOT=yes
0

For the interfaces connected through the cross over cable (direct nic-to-nic connection) i.e. eth0 ,make sure the IP address assigned to both interfaces is with in the same subnet. It is also recommended that the IP address to be within the reserved private networks (check RFC 1918).

Daniel t.
  • 9,619