色www,五月婷婷深爱五月,午夜国产一级片,色噜噜综合,国产大胸无码视频,清纯美女被操黄网站在线观看,波多野结衣av高清一区二区三区

linux上網(wǎng)絡(luò)配置不生效的解決辦法

時間:2024-08-27 08:39:24 網(wǎng)絡(luò)診斷 我要投稿
  • 相關(guān)推薦

linux上網(wǎng)絡(luò)配置不生效的解決辦法

  Linux是一套免費(fèi)使用和自由傳播的類Unix操作系統(tǒng),是一個基于POSIX和UNIX的多用戶、多任務(wù)、支持多線程和多CPU的操作系統(tǒng)。它能運(yùn)行主要的UNIX工具軟件、應(yīng)用程序和網(wǎng)絡(luò)協(xié)議,下面是小編帶來的linux上網(wǎng)絡(luò)配置不生效的解決辦法,希望對你有幫助!

  在Linux上,在ifcfg-eth0上設(shè)置IP地址等信息

  1、詳細(xì)配置信息如下已

  [root@rac01 Desktop]#more/etc/sysconfig/network-scripts/ifcfg-eth0

  DEVICE=eth0

  BOOTPROTO=none

  NM_CONTROLLED=yes

  ONBOOT=no

  TYPE=Ethernet

  UUID=3d5f18d5-73e0-48db-acbb-67d3ee8b332f

  IPADDR=192.168.171.150

  PREFIX=24

  2、IP地址不生效的情況

  (1)ifconfig查看eth0網(wǎng)卡信息,發(fā)現(xiàn)IP地址并沒有生效

  [root@rac01 Desktop]# ifconfig eth0

  eth0 Link encap:Ethernet HWaddr 00:0C:29:84:F2:24

  inet6 addr: fe80::20c:29ff:fe84:f224/64 Scope:Link

  UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

  RX packets:0 errors:0 dropped:0 overruns:0 frame:0

  TX packets:6 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000

  RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)

  問題比較鬼異,明明在ifcfg-eth0文件中設(shè)置有IP地址192.168.171.150的,為什么會系統(tǒng)卻獲不到IP地址呢。

  (2)ping別的IP地址報如下錯誤:

  [root@rac01Desktop]# ping 192.168.171.180

  connect:Network is unreachable

  (3)重啟網(wǎng)絡(luò)服務(wù)提示網(wǎng)卡沒有活動

  [root@rac01 network-scripts]# service network restart

  Shutting down interface eth0: Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active

  [FAILED]

  Shutting down loopback interface: [ OK ]

  Bringing up loopback interface: [ OK ]

  3、問題分析

  從第2節(jié)中的3點(diǎn)信息來判斷,基本確定為網(wǎng)卡沒有啟動所致。

  4、處理解決

  [root@rac01 Desktop]# ifup ifcfg-eth0

  Active connection state: activated

  Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/1

  [root@rac01 Desktop]# ifconfig eth0

  eth0 Link encap:Ethernet HWaddr 00:0C:29:84:F2:24

  inet addr:192.168.171.150 Bcast:192.168.171.255 Mask:255.255.255.0

  inet6 addr: fe80::20c:29ff:fe84:f224/64 Scope:Link

  UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

  RX packets:1 errors:0 dropped:0 overruns:0 frame:0

  TX packets:44 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000

  RX bytes:82 (82.0 b) TX bytes:7277 (7.1 KiB)

  到此,網(wǎng)卡已經(jīng)正常工作。

【linux上網(wǎng)絡(luò)配置不生效的解決辦法】相關(guān)文章:

淺談Linux網(wǎng)絡(luò)故障的解決辦法10-22

linux配置dns服務(wù)器配置命令09-22

常用的Linux網(wǎng)絡(luò)工具08-02

Linux常用網(wǎng)絡(luò)狀態(tài)測試命令05-20

Linux下網(wǎng)絡(luò)故障的診斷12-28

導(dǎo)致空調(diào)不制熱的原因及解決辦法08-27

2017年網(wǎng)絡(luò)安全法生效08-22

更換新顯卡開機(jī)不亮黑屏的原因與解決辦法07-12

Linux認(rèn)證的概念09-09

學(xué)習(xí)Linux的忠告09-27