當前位置:首頁 » 網路連接 » linux系統顯示連接不到網路
擴展閱讀
平板iso無法連接網路 2025-07-01 01:07:11
電腦恢復設置忘記密碼 2025-07-01 01:03:36

linux系統顯示連接不到網路

發布時間: 2022-07-27 19:39:21

Ⅰ linux下連不上網路是怎麼回事

連不上本地網呢,還是寬頻上網?
首先檢查網卡是否安裝成功,如果在區域網共享上網請正確配好網卡IP地址和DNS地址。如果本機拔號上網,則需要啟動linux的PPPOE服務軟體。

Ⅱ Linux伺服器連接不上的幾種解決辦法

網路不可到達,有幾種可能,1、伺服器未開機,2、客戶機網關設置有誤,3防火牆,iptables -F 刷掉火牆試試

Ⅲ linux伺服器訪問不到怎麼處理

Linux遠程伺服器連接不上,或連接超時解決辦法:
1、測試網路是否通:
ping 遠程IP
2、如果能ping通則表示與伺服器網路連接是正常,接下來測試埠:
telnet 遠程ip 埠
3、如果telnet不上,要考慮伺服器是否有防火牆攔截:
CentOS7查看防火牆是否運行:
firewall-cmd --state

Ⅳ linux主機連不上網路

  1. ip add show

  2. 沒有ip 就配置ip

  3. 然後ping網關 ping網路 測試

  4. 如果不通 檢查你的網路環境

  5. 希望可以幫助你 請採納 謝謝

Ⅳ LINUX 連不起網提示無法連接

、安裝rp-pppoe
到 http://www.roaringpenguin.com/pppoe/#download下載最新版rp-pppoe 的源代碼。

tar xzvf rp-pppoe-3.5.tar.gz
然後進入解壓生成的目錄:
cd rp-pppoe-3.5
cd src

接下來就是常規的配置編譯和安裝,一切按默認的即可:

./configure
make
make install

至此,安裝結束,下面是設置過程。

二、設置
1. 配置你的網卡,運行:ifconfig eth0
不要給這個網卡(連接ADSL modem的網卡)設置IP地址,另外也不要設置成啟動系統時激活網卡。
2. 運行adsl-setup#adsl-setup
Welcome to the Roaring Penguin ADSL client setup. First, I will run some checks on your system to make sure the PPPoE client is installed properly... Looks good! Now, please enter some information:

USER NAME
>;>;>; Enter your PPPoE user name (default XXX): 在這里輸入ADSL的用戶名

INTERFACE
>;>;>; Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number. (default eth0):如果一張網卡就設置寫上eth0

Do you want the link to come up on demand, or stay up continuously? If you want it to come up on demand, enter the idle time in seconds after which the link should be dropped. If you want the link to stay up permanently, enter 'no' (two letters, lower-case.) NOTE: Demand-activated links do not interact well with dynamic IP addresses. You may have some problems with demand-activated links. >;>;>; Enter the demand value (default no):不用寫什麼

DNS
Please enter the IP address of your ISP's primary DNS server. If your ISP claims that 'the server will provide DNS addresses', enter 'server' (all lower-case) here. If you just press enter, I will assume you know what you are doing and not modify your DNS setup.
>;>;>; Enter the DNS information here:在這里寫上主用DNS地址:202.106.0.20
下一個備用DNS地址是202.106.196.115 //這里是北京CNC的DNS伺服器地址,你可以根據你所在的區域設置不同的DNS伺服器地址。

PASSWORD
>;>;>; Please enter your PPPoE password:輸入密碼
>;>;>; Please re-enter your PPPoE password:再輸入一次

FIREWALLING
Please choose the firewall rules to use. Note that these rules are very basic. You are strongly encouraged to use a more sophisticated firewall setup; however, these will provide basic security. If you are running any servers on your machine, you must choose 'NONE' and set up firewalling yourself. Otherwise, the firewall rules will deny access to all standard servers like Web, e-mail, ftp, etc. If you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible for ensuring the security of your machine. You are STRONGLY recommended to use some kind of firewall rules.

1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation

2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway for a LAN
>;>;>; Choose a type of firewall (0-2):這里添寫為2

** Summary of what you entered **
Ethernet Interface: eth0
User name: XXX
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE
>;>;>; Accept these settings and adjust configuration files (y/n)?

3. 查看/etc/ppp/pap-secrets,裡面應該有你剛才設置的賬號和密碼(密碼是*)。

4. 編輯/etc/ppp/pppoe.conf
ETH=eth1 將eth1改為eth0(如果你只有一個網卡的話) [email protected][email protected]改為你剛才設置的ADSL賬號 別的不要動。

5. 查看/etc/resolv.conf
nameserver xxx.xxx.xxx.xxx (應該是你設置的第一DNS地址)
nameserver xxx.xxx.xxx.xxx (應該是你設置的第二DNS地址)

6. 運行adsl-connect &連接,期間可以查看你的鏈接狀態:adsl-status

Ⅵ linux系統連不了網,ifconfig後顯示如下內容,怎麼解決

  • 樓上是在瞎扯

  • 執行ifconfig -a

  • 如果是按照正常安裝的 肯定會多出來一個介面,比如叫enp3s0

  • 然後編輯配置文件

  • nano /etc/network/interfaces

  • auto enp3so

  • iface enp3s0 inet dhcp

  • 然後保存退出

  • 重啟系統即可聯網

  • 希望可以幫助你 請採納

Ⅶ Linux系統centos7連不上網

首先,可以通過虛擬機設定網路連接方式為」NAT 網路「,如下圖:
NAT網路連接方式

接著,設置系統網卡配置文件,
centos6通常是:』/etc/sysconfig/network-scripts/ifcfg-eth0』
centos7通常是:』/etc/sysconfig/network-scripts/ifcfg-eno*(自動隨機生成)』

vim /etc/sysconfig/network-scripts/ifcfg-eth0進行編輯

通常該文件內只要有最基本的幾項信息就可以,如下:
DEVICE=eth0 # 網卡對應的設備名稱(eth0或者別的名字取決於系統)
HWADDR=08:00:27:FF:08:E9 #對應網卡物理地址,這里得跟虛擬機配置一致
ONBOOT=yes # 設置網卡設備隨系統啟動
BOOTPROTO=dhcp # 將網卡獲取IP的方式設置為dhcp

Ⅷ 虛擬機的linux為什麼連不上網

改成dhcp自動獲取,ONBOOT改成yes,開機自啟動,然重啟網路服務就可以了

Ⅸ linux系統網路連接

首先,要確保你用來上網的設備已經在linux被安裝好了,常見的設備linux都能自動識別,但對內貓的兼容不大好.
然後,根據你的上網方式具體配置.
撥號上網:在k菜單->->更多應用程序中有撥號工具kppp.在運行kppp後點設置,在kppp配置窗口中的設備選項卡中選擇你的調
制解調器,然後在帳號選項卡點擊新建按鈕後點擊對話框設置.在彈出的對話框中可以設置撥號的:電話號碼/IP/網關和DNS等.
ADSL專線:k菜單->系統設置->網路,單擊新建按鈕,選擇xDSL聯接點前進,然後按照向導設置即可.
LAN居域網方式:k菜單->系統設置->網路,選擇正確的網卡(eth0,eth1等等)後點擊編輯按鈕即可配置.