CentOS 关闭、启动网卡
生活随笔
收集整理的這篇文章主要介紹了
CentOS 关闭、启动网卡
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
前言
- CentOS6.5
關(guān)閉網(wǎng)卡
shell> ifconfig lo down啟動(dòng)網(wǎng)卡
shell> ifconfig lo up示例
先禁用 lo 網(wǎng)卡,再啟動(dòng)lo 網(wǎng)卡,再禁用 lo 網(wǎng)卡。觀察ifconfig -a的輸出的不同。
shell> ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:04:0C:28inet addr:192.168.150.30 Bcast:192.168.150.255 Mask:255.255.255.0inet6 addr: fe80::20c:29ff:fe04:c28/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:221 errors:0 dropped:0 overruns:0 frame:0TX packets:165 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:23624 (23.0 KiB) TX bytes:23767 (23.2 KiB)lo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:16436 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)shell> ifconfig lo down shell> ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:04:0C:28inet addr:192.168.150.30 Bcast:192.168.150.255 Mask:255.255.255.0inet6 addr: fe80::20c:29ff:fe04:c28/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:252 errors:0 dropped:0 overruns:0 frame:0TX packets:183 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:26370 (25.7 KiB) TX bytes:26867 (26.2 KiB)lo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0LOOPBACK MTU:16436 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) shell> ifconfig lo up shell> ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:04:0C:28inet addr:192.168.150.30 Bcast:192.168.150.255 Mask:255.255.255.0inet6 addr: fe80::20c:29ff:fe04:c28/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:316 errors:0 dropped:0 overruns:0 frame:0TX packets:218 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:31892 (31.1 KiB) TX bytes:31669 (30.9 KiB)lo Link encap:Local Loopbackinet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:16436 Metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) 與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的CentOS 关闭、启动网卡的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 随心瑜会员管理系统电脑端使用说明书(1-
- 下一篇: 史上最牛的网名(逗比沙雕网名)