Comments (2)
Unicast code rely on your network configuration nothing exotic in here. To make sure routing path between your 2 hosts is working investigate with netcat or other tools.
On the other hand you may want to bind your traffic to a specific IP address as source address. if so use 'mcast_src_ip', in some routings env it can be usefull to traverse firewalls.
Regs,
Alexandre
from keepalived.
I just tried the mcast_src_ip with no luck either. I have keepalived running on two hosts 10.0.0.134 and 10.0.1.202 with the following configuration.
vrrp_instance VI_1 {
interface eth0
state BACKUP
virtual_router_id 10
priority 100
advert_int 1
nopreempt
mcast_src_ip 10.0.1.202
unicast_peer {
10.0.0.134
}
authentication {
auth_type PASS
auth_pass whatever
}
notify_master "/etc/keepalived/assign-eip.sh"
}
Both of the nodes assume master, and looking at what traffic is going between the hosts, it looks like this.
$ sudo tcpdump -vvv -i eth0 host 10.0.0.134
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
14:15:33.267923 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.0.0.134 tell 10.0.1.202, length 28
14:15:34.267932 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.0.0.134 tell 10.0.1.202, length 28
14:15:35.270846 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.0.0.134 tell 10.0.1.202, length 28
If I send a packet with sudo sendip -p ipv4 -is 10.0.0.134 -id 10.0.1.202 -ip 112 -d hello 10.0.1.202
, the following comes up on the other end.
14:19:50.012095 IP (tos 0x0, ttl 255, id 51003, offset 0, flags [none], proto VRRP (112), length 25)
10.0.0.134 > 10.0.1.202: vrrp 10.0.0.134 > 10.0.1.202: VRRPv6, unknown type (8)
I am confused by this whole who-has thing, as that should only be happening on local networks (same subnet). Any ideas?
from keepalived.
Related Issues (20)
- vip appears on both machines HOT 2
- Keepalived VIP not getting original source IP of the request to VIP HOT 3
- FIFO process seems to be killed prematurely before stop command terminates HOT 5
- keepalived on Wi-Fi - network delay HOT 4
- After restart NIC, keepalived can not become master state HOT 6
- What is the correct way to disable preempt for keepalived HOT 4
- vrrp_script; Cannot find script docker in path - disabling HOT 3
- The old virtual_ipaddress_excluded has not been deleted after reconfig vlan interface HOT 9
- keepalived Docker Image Build Failed HOT 8
- unable to recover from split brain problem HOT 2
- Configure virtual server only on master but not on backups HOT 5
- v2.2.8: nopreempt is configured, the notify_xxx method will not be triggered. HOT 2
- One-off symlink resolution causes fragile setups on NixOS HOT 6
- Add documentation for notify script option HOT 1
- restart keepalived not work , systemd: Can't open PID file /etc/keepalived/logs/keepalived.pid (yet?) after start: No such file or directory HOT 1
- restart keepalived donot work, Can't open PID file /var/run/keepalived.pid (yet?) after start: No such file or directory HOT 1
- Need to know why both VMs became MASTER instead of a clean failover HOT 5
- Keepalived High Availability Issue: Both Nodes Selected as Master in RHOSP 16.2 Setup HOT 3
- keepalived standby not receiving advertise packets HOT 1
- keepalived can't call notify_master script timely HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keepalived.