LPI
304-200 · Question #70
While setting up a load-balanced HTTP service, Linux Virtual Server was configured with the commands: ipvsadm -A -t 198.51.100.2:80 -s rr ipvsadm -a -t 198.51.100.2:80 -r 192.168.10.1:80 -m ipvsadm…
The correct answer is A. echo "1" > /proc/sys/net/ipv4/ip_forward. See the full explanation below for the reasoning.
Question
While setting up a load-balanced HTTP service, Linux Virtual Server was configured with the commands: ipvsadm -A -t 198.51.100.2:80 -s rr ipvsadm -a -t 198.51.100.2:80 -r 192.168.10.1:80 -m ipvsadm -a -t 198.51.100.2:80 -r 192.168.10.2:80 -m and all backend serversare using the LVS host as the default router.Which additional command has to be issued on the LVS host in order to correctly handle incoming HTTP traffic?
Options
- Aecho "1" > /proc/sys/net/ipv4/ip_forward
- Biptables -t nat -Z
- Cipvsadmin -L -n
- Dipmasq -A 192.168.10.1 -A 192.168.10.2 -p tcp --dport www -j DEMASQ
- Enetstat -r
How the community answered
(39 responses)- A69% (27)
- B10% (4)
- C3% (1)
- D13% (5)
- E5% (2)
Community Discussion
No community discussion yet for this question.