nerdexam
LPI

303-200 · Question #49

Which of the following commands changes the source IP address to 192.0.2.11 for all IPv4 packets which go through the network interface eth0?

The correct answer is A. iptables -t nat -A POSTROUTING -o eth0 -j SNAT -to-source 192.0.2.11. See the full explanation below for the reasoning.

Question

Which of the following commands changes the source IP address to 192.0.2.11 for all IPv4 packets which go through the network interface eth0?

Options

  • Aiptables -t nat -A POSTROUTING -o eth0 -j SNAT -to-source 192.0.2.11
  • Biptables -t nat -A PREROUT1NG -\ eth0 -j SNAT -to-source 192.0.2.11
  • Ciptables -t nat -A POSTROUTING H eth0 -j DNAT -to-source 192.0.2.11
  • Diptables -t mangle -A POSTROUTING -i eth0 -j SNAT -to-source 192.0.2.11
  • Eiptables -t mangle -A POSTROUTING -0 eth0 -j SNAT -to-source 192.0.2.11

How the community answered

(28 responses)
  • A
    75% (21)
  • C
    4% (1)
  • D
    14% (4)
  • E
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 303-200 Practice