In RHEL 7.1 or higher, how do you set the gateway for an existing connection called 'lab'?

nmcli con mod lab ipv4.gateway 172.25.1.254

The command that correctly sets the gateway for an existing connection named 'lab' in RHEL 7.1 or higher is the one that utilizes the `nmcli con mod` syntax. This command modifies the properties of an existing connection.

When using `nmcli`, the `mod` (modify) command allows you to change various aspects of the connection's configuration, including the IPv4 settings such as the gateway. By specifying `ipv4.gateway` followed by the gateway address, the command effectively updates that specific property of the 'lab' connection without altering other configurations.

This level of granularity is essential for network management, allowing administrators to make specific alterations to network configurations in a controlled manner. The other options, while they may seem similar, do not accurately use the correct syntax or command associated with NetworkManager for modifying an existing connection.

In summary, using `nmcli con mod lab ipv4.gateway 172.25.1.254` is the proper way to set or change the gateway within the existing network configuration for the connection named 'lab'.

Get further explanation with Examzify DeepDiveBeta

nmcli con set lab ipv4.gateway 172.25.1.254

nmcli con change lab ipv4.gateway 172.25.1.254

nmcli con update lab ipv4.gateway 172.25.1.254

Want more questions?

All options are one-time payments.

$12.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$29.99$92.93 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $92.93 usd value for $29.99! You save $62.94!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$14.99 $19.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy