nerdexam
Oracle

1Z0-460 · Question #48

You run the following command as the root user to set properties of a network interface (eth0): # ifconfig eth0 192.0.2.102 netmask 255.255.255.0 up Setting network interface properties with the…

The correct answer is C. /etc/sysconfig/network-scripts/ifcfg-eth0 file. Modifytheeth0config file Opentheconfiguration using a text editor such as vi/vim, and make sure file read as follows for # vi /etc/sysconfig/network-scripts/ifcfg-eth0

Network Configuration

Question

You run the following command as the root user to set properties of a network interface (eth0):

ifconfig eth0 192.0.2.102 netmask 255.255.255.0 up Setting network interface properties with the ifconfig utility is not persistent across system reboots. Which file would you edit to make settings and to make them persist across system reboots?

Options

  • A/etc/sysconfig/network file
  • B/etc/sysconfig/network/ifcg-eth0 file
  • C/etc/sysconfig/network-scripts/ifcfg-eth0 file
  • D/etc/sysconfig/network-scripts/eth0 file

How the community answered

(37 responses)
  • A
    8% (3)
  • B
    14% (5)
  • C
    73% (27)
  • D
    5% (2)

Explanation

Modifytheeth0config file Opentheconfiguration using a text editor such as vi/vim, and make sure file read as follows for # vi /etc/sysconfig/network-scripts/ifcfg-eth0

Topics

#ifconfig#network persistence#ifcfg file#network configuration

Community Discussion

No community discussion yet for this question.

Full 1Z0-460 Practice