What is the effect of the command?

Your Oracle Linux server has a network interface eth0 but the ifcfg-eth0 file is missing from the
/etc/sysconfig/network-scripts directly.
To set the IP address for the interface, you run this command as root:
[root@station1]# ifconfig eth0 192.168.0.1 up
What is the effect of the command?

Your Oracle Linux server has a network interface eth0 but the ifcfg-eth0 file is missing from the
/etc/sysconfig/network-scripts directly.
To set the IP address for the interface, you run this command as root:
[root@station1]# ifconfig eth0 192.168.0.1 up
What is the effect of the command?

A.
The IP address 192.168.0.1 is not assigned to eth0 because the netmask is not specified.

B.
The IP address 192.168.0.1 is assigned to eth0, but the interface is not activated until the
network service is reloaded.

C.
The IP address 192.168.0.1 is assigned to eth0, but the interface is not activated until the
network service is restarted.

D.
The IP address 192.168.0.1 is assigned to echo with the default netmask for that address, and
the interface is activated immediately.

Explanation:



Leave a Reply 5

Your email address will not be published. Required fields are marked *


kendl

kendl

D is right.

Vinicius Torres

Vinicius Torres

D is correct.

Dilliadis

Dilliadis

D, 100% right

Sam

Sam

D is correct ,

Real time i tested .Below ref :

New Nic added
[root]# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:0C:29:78:4A:14
inet6 addr: fe80::20c:29ff:fe78:4a14/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:962 errors:0 dropped:1 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66212 (64.6 KiB) TX bytes:6966 (6.8 KiB)

[root@soa11g 6746]#

after issuing this cmd :

[root@]# ifconfig eth2 192.168.0.1 up
[root@]# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:0C:29:78:4A:14
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe78:4a14/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1178 errors:0 dropped:1 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80633 (78.7 KiB) TX bytes:6966 (6.8 KiB)

[root@soa11g 6746]#