Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 48 discussion

Actual exam question from RedHat's EX200
Question #: 48
Topic #: 1
[All EX200 Questions]

SIMULATION -
There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL6 Installed System is going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on that Server. How will make successfully ping to 192.168.1.0/24 Network's Host?

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
vi /etc/sysconfig/network GATEWAY=192.168.0.254

OR -
vi /etc/sysconf/network-scripts/ifcfg-eth0 DEVICE=eth0

BOOTPROTO=static -

ONBOOT=yes -
IPADDR=192.168.0.?

NETMASK=255.255.255.0 -

GATEWAY=192.168.0.254 -
service network restart
Gateway defines the way to exit the packets. According to question System working as a router for two networks have IP Address 192.168.0.254 and
192.168.1.254.

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
cookieb
Highly Voted 1 year, 5 months ago
nmtui -> edit connection -> routing <edit> -> add route much easier to remember
upvoted 6 times
...
STFN2019
Highly Voted 2 years, 7 months ago
Question unclear, propably just to setup a default gateway for connection to work between these 2 networks, fair enough.
upvoted 5 times
...
Hmenu0s
Most Recent 1 year, 9 months ago
Assuming the default gateway here is different and we need to add additional route to reach the 192.168.1.0/24 network. # get the connection holding the ip of 192.168.0.0/24 network ip -br a nmcli con show # Ping the router ip to check connectivity ping 192.168.0.254 # Add a permanent route to 192.168.1.0/24 via 192.168.0.254 on the connection identified above. in this example that connection is static-enp0s3 sudo nmcli con modify static-enp0s3 +ipv4.routes "192.168.1.0/24 198.168.0.254" sudo nmcli con up static-enp0s3 # check the routes and test the connectivity ip r nmcli con show static-enp0s3 | grep routes ping 192.168.1.254
upvoted 2 times
...
AbidBajwa
2 years, 6 months ago
I think we need to allow IP Forwarding to allow traffic to access each other. sysctl -w net.ipv4.ip_forward=1
upvoted 5 times
wizojlo
1 month, 2 weeks ago
True, it is about IP forwarding, but above solution will not survive reboot. echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.d/ipforward.conf sysctl -p reboot sysctl net.ipv4.ip_forward (to verify; should return a value of 1)
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...