當前位置:首頁 » 撥號測速 » centos自動撥號

centos自動撥號

發布時間: 2021-02-17 12:03:33

㈠ centos7怎麼撥號上網

請修改你的dns,你使用的是google dns,請把primary dns修改為114.114.114.114 secondary dns修改為114.114.115.115。請試試看,centos7多數用來做伺服器系統的。不建議當作桌面系統使用。如果想使用linux桌面系統,可以使用烏班圖系統(ubuntu)

㈡ 虛擬機centos搭建的pppoe伺服器,配置都已弄好,宿主機直接進行pppoe撥號連接,一直錯誤651

錯誤來代碼651意思是:調制解調源器(或其它連接設備)報告了一個錯誤。既未找到指定的
解決辦法:
1.遠程訪問記事簿文件和當前的「網路和撥號連接」配置可能不一致如果更改了通訊設備(例如:串列口或數據機),請確保重新配置「網路和撥號連接」。如果錯誤仍然存在,請刪除並重新創建「網路和撥號連接」;
2.win7 錯誤代碼651,路由能上,撥號上不了
試一下:打開 \windows\system32\logfiles\wmi,雙擊打開wmi再打開裡面的RtBackup 會提示你需要管理員許可權 繼續 重啟,即可修復;
3.不行的話把wmi里的後綴為etl的文件刪除包括RtBackup里的 重啟;
4.如果上面的都不管用的話那嘗試一下,禁用本地連接-關機-檢查貓的所有插頭拔下重插-拔下貓的電源插頭-等待2分鍾 之後插上插頭-開機;
5.最後一招先從別的能上網的系統的機子里復制下面這個文件 c:\windows\system32\drivers\raspppoe.sys 來替換你電腦里的這個文件。

㈢ 一台伺服器裝centos 用PPPOE撥號上網,另一個網口接到路由器,

這個不好說,你上圖,我一步一步的告訴你

㈣ centos7怎樣讓開機自動啟動網路

讓Centos7網路自動抄啟動,有兩種方法,一種是界面操作法,別一種是修改配置文件法。Centos7網路自動啟動,我們採用修改文件法。這是網卡的配置文件:
Centos7網路自動啟動,我們首先用vi打開該文件,
Centos7網路自動啟動,編輯上面的文件,將onboot選項設置為yes.
:wq!
保存退出。重啟電腦後,發現Centos7網路自動啟動了。

㈤ centos的寬頻連接你如何解決的可以教我一下嗎

#yuminstallrp-pppoe

先安裝pppoe撥號軟體,然後手工配置PPPOE的配置文件/etc/ppp/pppoe.conf

或者使用adsl-setup這個工具進行配置:#/usr/sbin/adsl-setup當出現>>EnteryourPPPoEusername:輸入ADSL帳號的用戶名
當出現>>>,thisislikelytobesomethinglike/dev/hme0.ForLinux,itwillbeethn,where'n'isanumber.(defaulteth0):輸入eth0,這是ADSL相連的網卡的名字
當出現>>>Enterthedemandvalue(defaultno):輸入no
當出現>>>EntertheDNSinformationhere:輸入server,這表示使用ADSL撥號自動獲得的DNS伺服器IP地址
當出現>>>PleaseenteryourPPPoEpassword:輸入ADSL帳號的密碼
當出現>>>Chooseatypeoffirewall(0-2):輸入0,不使用防火牆
當出現>>>(y/n)?如果輸入的信息正確,輸入y,完成配置,否則,輸入n重新輸入。

最後使用命令 /usr/sbin/adsl-start 啟動寬頻連接了

㈥ centos中設置ADSL撥號,為什麼隔段時間IP就自動變化了

重新配置一邊ADSL,里邊由一個選項會問你是否開機就自動撥號,選擇yes即可

㈦ centos7網路配置adsl

WINDOWS下ADSL也就是裝個PPPOE軟體等。

其實LINUX下也能支持!

·安裝ADSL

在linux環境下,是通過rp-pppoe包來安裝和配置的。我們首先使用命令rpm -qa | grep pppoe來檢查系統中是否已經安裝了rp-pppoe包。如果沒有可載入第一張光碟並安裝rp-pppoe-3.5-2.i386.rpm包。不過系統默認情況下已經安裝好了這個包,所以我們可跳過此步,直接開始配置ADSL

·配置ADSL

在命令提示符下輸入adsl-setup命令開始以向導模式來配置ADSL。

按提示,分別按先要求輸入(1)ISP提供的帳戶名,對於中國電信直接輸入賬號即可,對於網通用戶,還需在賬號後面輸入! Internet。

(2)輸入與ADSL相連的網卡名稱,即用於連接Internet的網卡名稱。默認為eth0,如果用於連接Internet的網卡是eth0可直接回車開始下一步

(3)是否啟用閑時斷開撥號連接。若輸入yes,接下來將設置斷開撥號連接的閑置時間,在這段時間內沒有數據流,將斷開撥號連接。默認為no,不啟用該功能,由於目前ADSL基本是包年,因此直接回車開始下一步

(4)輸入ISP提供的DNS伺服器地址,默認可以設置兩個DNS地址。如果ISP提供的是動態的DNS地址,我們可以server,並回車開始下一步操作。

(5)輸入ISP提供的密碼

(6)設置是否允許普通用戶啟動、斷開ADSL連接,默認為允許(yes)。如果不希望普通用戶啟動或埠ADSL連接,輸入no並回車開始下一步操作。

(7)選擇防火牆類型。0表示不使用防火牆,對於單機上網可選擇1.若此計算機為企業的代理伺服器,可選擇2,使用IP偽裝方式代理內網用戶訪問Internet。

(8)設置是否為開機啟動ADSL,默認為no。一般情況下設置為yes,省的每次重啟計算機後都得啟動ADSL。

·啟動ADSL

完成了ADSL的配置,大家一定迫不及待的要啟動ADSL准備上網了吧!
革命尚未完成,我們還需努力啊。首先檢查/etc/sysconfig/network文件和網卡配置文件中是否設置了默認網關,若設置了應在配置文件中將其刪除,讓ADSL撥號成功後自動獲得,然後使用service network restart命令重啟網路服務

使用adsl-start開始撥號,當出現..Connected!提示時ADSL連接成功。
若ADSL沒有撥號成功,可通過查看/var/log/messages文件來了解失敗的原因。

·測試

使用ifconfig ppp0命令來查看ppp0網路介面的信息,在ADSL撥號成功後會增加PPP0介面,而系統就自動將其作為默認網關地址,這樣才能訪問Internet網。

使用adsl-stop命令來斷開撥號連接。

㈧ CentOS7網路怎麼設置自動啟動

讓Centos7網路自動啟動抄,有兩種方法,一種襲是界面操作法,別一種是修改配置文件法。Centos7網路自動啟動,我們採用修改文件法。這是網卡的配置文件:

Centos7網路自動啟動,我們首先用vi打開該文件,

Centos7網路自動啟動,編輯上面的文件,將onboot選項設置為yes.

:wq!
保存退出。重啟電腦後,發現Centos7網路自動啟動了。

㈨ 如何設置設置centos 7撥號上網

CentOS 7撥號上網(ADSL & PPPoE)

步驟概述:

1、搜尋PPPoE相關軟體,本人使用的是rp-pppoe

yum search pppoe

2、使用yum安裝rp-pppoe

yum install rp-pppoe -y

3、開始配置PPPoE連接

pppoe-setup

4、輸入ISP提供的賬戶

5、輸入乙太網卡代號,默認是eth0(註:CentOS 7已不是默認eth0,自行使用ifconfig命令即可找到)

6、配置:若長時間連線,連線會被自動中斷(我不幹,選no)

7、配置主DNS伺服器

8、配置次DNS伺服器

9、兩次輸入賬戶密碼以確認

10、配置普通賬戶是否有網路連接許可權

11、配置防火牆(沒有特殊需求選0就OK)

12、配置是否開機自動撥號連接

13、確認剛填寫的配置信息

14、連接網路盡情享受吧!

相關命令@ 連接網路:/sbin/ifup ppp0,斷開連接:/sbin/ifdown ppp0,查看網路狀態:/sbin/pppoe-status

................. 這是華麗麗的分割線 ......................

獲取乙太網卡代號

[plain] view plain
[dsp@dsp Desktop]$ ifconfig
enp9s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 # 有線網卡
ether 20:1b:06:3d:22:05 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 2297 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 2 bytes 110 (110.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 110 (110.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:36:45:23 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 # 無線網卡
inet 192.168.0.151 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::4ad2:24ff:fee8:f962 prefixlen 64 scopeid 0x20<link>
ether 48:d2:24:e8:f9:62 txqueuelen 1000 (Ethernet)
RX packets 20017 bytes 16100210 (15.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18263 bytes 2641746 (2.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

配置rp-pppoe客戶端
[plain] view plain
[root@dsp Desktop]# pppoe-setup
Welcome to the PPPoE client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...

LOGIN NAME

Enter your Login Name (default dsp): 12345 # 網路服務提供商提供的賬戶

INTERFACE

Enter the Ethernet interface connected to the PPPoE modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): enp9s0 # 選擇乙太網卡,有線網卡

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): no # 輸入no,否則若長時間連線,連線會被自動中斷

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic 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: 8.8.8.8 # 主DNS伺服器IP,本人使用Google Public DNS
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 8.8.4.4 # 二級DNS伺服器IP

PASSWORD# 賬戶對應的密碼,需兩次輸入以確認無誤

Please enter your Password:
Please re-enter your Password:

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes # 普通用戶是否可以啟動停止網路連接

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): 0# 選 0 吧

Start this connection at boot time

Do you want to start this connection at boot time?
Please enter no or yes (default no):yes# 是否系統啟動是就連接網路

** Summary of what you entered **

Ethernet Interface: enp9s0
User name: 12345
Activate-on-demand: No
Primary DNS: 8.8.8.8
Secondary DNS: 8.8.4.4
Firewalling: NONE
User Control: yes
Accept these settings and adjust configuration files (y/n)? y# 確認剛才輸入的網路配置信息
Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/resolv.conf
(But first backing it up to /etc/resolv.conf.bak)
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)

Congratulations, it should be all set up!

Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'# rp-pppoe的操作命令
to bring it down.
Type '/sbin/pppoe-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.

[root@dsp Desktop]# /sbin/ifup ppp0# 啟動網路連接
[root@dsp Desktop]# /sbin/pppoe-status# 查看網路連接狀態
pppoe-status: Link is up and running on interface ppp0
6: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN qlen 3
link/ppp
inet 10.198.0.17 peer 10.198.1.1/32 scope global ppp0
valid_lft forever preferred_lft forever

㈩ 我想實現centos撥號上網,使用pppoe-setup,配置後pppoe-start後出現TIMED OUT ,我ifconfig後出現了ppp1

pppoe-setup 只需要運行一次,這個是設置用戶名和密碼的,設置好後會保存在一個文件里。以後需要撥號上網了,只需要運行 pppoe-start,需要斷線的話則運行 pppoe-stop。

你這里 ppp 一直累加是因為沒有運行 pppoe-stop 以斷線。pppoe-start 和 pppoe-stop 應該是一直配對的。

另外,撥號上網時,運行 pppoe-start 可能會出現莫名其妙的出錯提示,此時運行命令 ip link,若是結果中有出現 ppp0,則說明撥號其實已經成功了,就不需要管前面的出錯提示了。

若是出現了 ppp0,但還是不能上網,說明默認路由沒有設置成功。此時運行命令 ip route 查看路由,其中應該有 default via ppp0 這一行。若是沒有的話,則運行命令 sudo ip route add default via ppp0,以設置默認路由。這樣應該可以上網了。

熱點內容
網卡了的原因 發布:2021-03-16 21:18:20 瀏覽:602
聯通客服工作怎麼樣 發布:2021-03-16 21:17:49 瀏覽:218
路由器畫圖 發布:2021-03-16 21:17:21 瀏覽:403
大網卡收費 發布:2021-03-16 21:16:50 瀏覽:113
路由器免費送 發布:2021-03-16 21:16:19 瀏覽:985
孝昌營業廳 發布:2021-03-16 21:15:54 瀏覽:861
網速增速代碼 發布:2021-03-16 21:15:29 瀏覽:194
怎麼黑光纖 發布:2021-03-16 21:14:54 瀏覽:901
埠增大 發布:2021-03-16 21:14:20 瀏覽:709
開機沒信號是什麼原因 發布:2021-03-16 21:13:45 瀏覽:645