LPI
202-400 · Question #35
A server with 2 network interfaces, eth0 and eth1, should act as a router. eth0 has the IP address 192.168.0.1 in the subnet 192.168.0.1/24 and eth1 has the IP address 10.0.0.1 in the subnet…
The correct answer is A. Enable IP forwarding with echo "1" > /proc/sys/net/ipv4/ip_forward C. Reconfigure the firewall rules to allow traffic to traverse the networks. See the full explanation below for the reasoning.
Question
A server with 2 network interfaces, eth0 and eth1, should act as a router. eth0 has the IP address 192.168.0.1 in the subnet 192.168.0.1/24 and eth1 has the IP address 10.0.0.1 in the subnet 10.0.0.0/16. The routing table looks fine, but no data is traversing the networks. Which TWO of the following need to be done?
Options
- AEnable IP forwarding with echo "1" > /proc/sys/net/ipv4/ip_forward
- BAdd new firewall chains to handle inbound & outbound traffic on both interfaces.
- CReconfigure the firewall rules to allow traffic to traverse the networks.
- DThe routing table needs to be restarted, for the changes to take effect.
- EThe server needs to be restarted, for the changes to take effect.
How the community answered
(31 responses)- A81% (25)
- B6% (2)
- D10% (3)
- E3% (1)
Community Discussion
No community discussion yet for this question.