"ip route" command show the route outgoing is through the static IP instead of virtual IP

book

Article ID: 100025564

calendar_today

Updated On:

Description

Error Message

#ip route
....
10.199.73.64/26 dev bond0  proto kernel  scope link  src 10.199.73.102  <<< this is static IP address
......

 

Resolution

There's an attribute for IP resource named IPRouteOptions .

The modifed configuration should be:

   IP mnsip1 (
                Device = bond0
                Address = "10.199.73.104"
                NetMask = "255.255.255.192"
                IPRouteOptions = "dev bond0 proto kernel scope link src 10.199.73.104"
                )

IP resource online with this attribute will create a correct route table to make sure the outgoing source IP is the virtual IP address.


Applies To

bond0     Link encap:Ethernet  HWaddr 98:4B:E1:01:96:AC 
          inet addr:10.199.73.102  Bcast:10.199.73.127  Mask:255.255.255.192
          inet6 addr: fe80::9a4b:e1ff:fe01:96ac/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1029807 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188335 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:108249274 (103.2 Mb)  TX bytes:22925295 (21.8 Mb)

bond0:0   Link encap:Ethernet  HWaddr 98:4B:E1:01:96:AC 
          inet addr:10.199.73.104  Bcast:0.0.0.0  Mask:255.255.255.192
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

Issue/Introduction

Customer found the outgoing source IP is the static IP , which configured on the NIC, instead of the virtual IP configured in VCS.