View Single Post
  #7  
Old 13th April 2007, 16:54
johN5Five^ johN5Five^ is offline
Junior Member
 
Join Date: Apr 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is my sql1 and sql2 interface file..which's the ip is 10.100.100.102 (sql1) and 10.100.100.103 (sql2).

All my 4 pc is throught a hub and go to a DNS.

#vi /etc/network/interfaces
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
	script grep
	map eth0

# The primary network interface
iface eth0 inet static
address 10.100.100.102
netmask 255.0.0.0
gateway 10.100.100.1

 auto eth0


 auto lo:0	
 iface lo:0 inet static
 address 10.100.100.105
 netmask 255.0.0.0
 gateway 10.100.100.1
 pre-up sysctl -p > /dev/null
This is my etc/network/interfaces file.

i dont understand is the netmask of the virtual ip, what should it be??and the 'pre-up sysctl -p > /dev/null' ...
is there anything i set wrong ..plz correct me..thx..
Reply With Quote