RSS2.0

RHCE RHCT Exam Question: How to stop/start network interface

Saturday, May 13, 2006

RHCE RHCT Exam Question: How to stop/start network ethernet interface:

[root@ice ~]# ifdown eth0

[root@ice ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:2A:47:7F
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1899 errors:0 dropped:0 overruns:0 frame:0
TX packets:833 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:923925 (902.2 KiB) TX bytes:283867 (277.2 KiB)
Interrupt:10 Base address:0x1400

[root@ice ~]# ifup eth0

Determining IP information for eth0... done.
[root@ice ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:2A:47:7F
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe2a:477f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1900 errors:0 dropped:0 overruns:0 frame:0
TX packets:838 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:924267 (902.6 KiB) TX bytes:284517 (277.8 KiB)
Interrupt:10 Base address:0x1400

1 comments:

Anonymous said...

use for stop and start network interface?

#service network stop
#service network start



this is right or not....?