ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 297 - XK0-005 discussion

Report
Export

A Linux administrator is configuring network traffic forwarding. Despite having proper iptables rules, the traffic forwarding is not working. Which of the following commands will allow Linux to pass network traffic between different interfaces?

A.

nmcli allow-forwarding eth0

Answers
A.

nmcli allow-forwarding eth0

B.

echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf; sysctl -p

Answers
B.

echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf; sysctl -p

C.

ip route forward allow --all-interfaces; systemctl restart network

Answers
C.

ip route forward allow --all-interfaces; systemctl restart network

D.

modprobe ip_forward

Answers
D.

modprobe ip_forward

Suggested answer: B

Explanation:

To enable IP forwarding, the kernel parameter net.ipv4.ip_forward must be set to 1. This is done by appending net.ipv4.ip_forward=1 to /etc/sysctl.conf and applying the changes using sysctl -p. This command ensures that the system can forward packets between different network interfaces.

asked 09/10/2024
Christian Andrew TANAP
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first