Hello. I was hoping to get some help with my current situation trying to get clients to connect to a virtual ip instead of a physical interface on a linux server.
Here is the scenerio:
I have 2 Centos servers on the same network:
Code:
Server 1: eth1 - 192.168.99.101 (Physical interface)
Server 2: eth1 - 192.168.99.102 (Physical interface)
Currently on Server 1 I also have a vip configured:
Code:
Server 1: eth1:1 - 192.168.99.100 (virtual ip)
I have a dhcpd.conf file with 4 printer macs to assign ip addresses on the 192.168.99.0 network. Once the printers receive an ip they will connect on TCP 9100.
The goal is to have those printers connect on TCP 9100 on the virtual ip address 192.168.99.100 instead of the physical ip addresses of the eth1 interface.
That way the printers can follow whatever server I add eth1:1 to.
Here is my dhcpd.conf file:
Code:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.99.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.99.100; # virtual ip
option subnet-mask 255.255.255.0;
default-lease-time 21600;
max-lease-time 43200;
host printer1 {
hardware ethernet 00:11:62:14:fb:93;
fixed-address 192.168.99.161;
}
host printer2 {
hardware ethernet 00:11:62:14:fa:4b;
fixed-address 192.168.99.162;
}
host printer3 {
hardware ethernet 00:11:62:0B:fa:47;
fixed-address 192.168.99.163;
}
host printer4 {
hardware ethernet 00:11:62:14:1A:2B;
fixed-address 192.168.99.164;
}
}
So far the printers have not connected to the virtual interface even though I have the virtual ip in the dhcpd.conf file.
I'm thinking that it's a mac issue. Since the vip uses the same mac as the physical interfaces the printers are just connecting to the physical eth1. Is there any way around this? Any guidance is much appreciated.