Phau Ntawv Qhia Kev Siv Internet Txuas Internet

Pin
Send
Share
Send

Vim tias qhov tseeb ntawm Ubuntu Server operating system tsis muaj lub graphical interface, cov neeg siv ntsib teeb meem thaum sim tsim kev txuas nrog Is Taws Nem. Kab lus no yuav qhia koj txog cov lus txib twg koj yuav tsum siv thiab cov ntaub ntawv twg kho kom raug thiaj li ua tiav qhov xav tau.

Saib ntxiv hauv: Ubuntu Internet Kev Sib Txuas Teeb Kev Qhia

Teeb lub network hauv Ubuntu Server

Ua ntej pib ua cov lus qhia ntawm cov kauj ruam-ib-qib, nws tsim nyog teev qee qhov xwm txheej uas yuav tsum ua.

  • Koj yuav tsum muaj txhua cov ntaub ntawv tau txais los ntawm tus muab kev pabcuam nrog koj. Tus ID nkag mus, tus lej zais, subnet daim npog qhov ncauj, lub rooj vag chaw nyob thiab cov nqi ntawm tus lej DNS yuav tsum muaj nyob rau ntawd.
  • Network daim npav tsav tsheb yuav tsum yog qhov hloov tshiab tshaj plaws.
  • Lub chaw pabcuam cable yuav tsum tau txuas nrog lub khoos phis tawm kom raug.
  • Cov tiv thaiv qa yuav tsum tsis txhob cuam tshuam nrog hauv lub network. Yog tias qhov no tsis yog qhov teeb meem, tshawb xyuas nws cov chaw thiab kho kho yog tias tsim nyog.

Tsis tas li, koj yuav tsis txuas rau Is Taws Nem yog tias koj tsis paub lub npe ntawm koj daim npav network. Txhawm rau kom paub qhov no yooj yim heev, koj yuav tsum khiav cov lus txib nram qab no:

sudo lshw -C kev network

Nyeem kuj: Cov lus nquag siv hauv Linux

Hauv kev tshwm sim, xyuam xim rau txoj kab "zajlus kom lub npe", tus nqi rov qab nws yuav yog lub npe ntawm koj lub network cuam tshuam.

Hauv qhov no, lub npe "eth0", tab sis nws kuj yuav txawv rau koj.

Nco tseg: koj yuav pom ntau lub npe npe hauv kab ntawv tso zis, qhov no txhais tau tias koj muaj ntau lub npav network nruab rau hauv koj lub computer. Thaum pib, txiav txim siab qhov twg koj yuav siv lub chaw mus rau thiab siv nws thoob plaws kev ua tiav ntawm cov lus qhia.

Wired network

Yog tias koj tus neeg zov me nyuam siv lub wired network txuas rau Is Taws Nem, koj yuav tsum hloov kho cov ntaub ntawv teeb tsa los tsim kev sib txuas "cuam tshuam"Cov. Tab sis cov ntaub ntawv uas yuav nkag rau hauv ncaj qha nyob ntawm hom ntawm IP muab kev pabcuam. Hauv qab no koj yuav pom cov lus qhia rau ob qho kev xaiv: rau IP dynamic thiab zoo li qub.

IP Dynamic

Teem lub txuas ntawm hom no yooj yim zoo nkauj, ntawm no yog qhov koj yuav tsum tau ua:

  1. Qhib cov ntaub ntawv teeb tsa "cuam tshuam" siv tus sau ntawv nano.

    sudo nano / thiab lwm yam / network / cuam tshuam

    Saib ntxiv: Cov Ntawv Hloov Cov Ntawv Muaj Suab rau Linux

    Yog tias koj tsis tau ua yav tas los hloov cov ntawv no, ces nws yuav tsum zoo li no:

    Txwv tsis pub, rho tawm tag nrho cov ntaub ntawv tsis tsim nyog ntawm daim ntawv.

  2. Hla ib kab, nkag mus rau hauv cov tsis muaj kev qhia hauv qab no:

    iface [network interface lub npe] inet dhcp
    auto [network interface lub npe]

  3. Txuag hloov pauv los ntawm nias ua ke nrog tseem ceeb Ctrl + O thiab tshawb nrog Sau.
  4. Tawm ntawm cov ntawv xov xwm kho ntawv los ntawm txhaj Ctrl + X.

Yog li ntawd, cov ntaub ntawv teeb tsa yuav tsum muaj cov qauv hauv qab no:

Qhov no ua tiav qhov kev teeb tsa ntawm lub wired network nrog IP dynamic. Yog tias Is Taws Nem tseem tsis tshwm sim, tom qab ntawd rov qab kho lub computer, qee zaum qhov no yuav pab tau.

Muaj lwm qhov, txoj hauv kev yooj yim los tsim kev txuas rau Is Taws Nem.

sudo ip addr ntxiv [network daim npav chaw nyob] / [tus lej ntawm lub npov ua ntej ntawm qhov chaw nyob] dev [network interface npe]

Nco tseg: cov ntaub ntawv hais txog qhov chaw nyob ntawm daim npav network tuaj yeem tau los ntawm kev khiav ifconfig cov lus txib. Hauv kev soj ntsuam, qhov xav tau tus nqi yog nyob tom qab "inet addr".

Tom qab kev ua tiav cov lus txib, Is Taws Nem yuav tsum tshwm sim tam sim ntawd ntawm lub khoos phis tawm, muab tag nrho cov ntaub ntawv nkag mus raug. Qhov tsis zoo ntawm qhov qauv no yog tias tom qab lub computer rov qab, nws yuav ploj, thiab ib zaug ntxiv koj yuav tsum khiav cov lus txib no.

Static IP

Teeb tus IP zoo li qub los ntawm tus IP sib txawv txav hauv qhov naj npawb ntawm cov ntaub ntawv uas yuav tsum tau nkag mus rau hauv cov ntaub ntawv "cuam tshuam"Cov. Txhawm rau ua kom muaj kev sib koom tes tsim nyog, koj yuav tsum paub:

  • lub npe ntawm koj daim npav network;
  • Qhov ncauj qhov ntswg IP IP;
  • Rooj vag chaw nyob
  • DNS neeg rau zaub mov chaw nyob

Raws li tau hais los saud, tag nrho cov ntaub ntawv no yuav tsum yog muab los ntawm koj tus kws kho mob. Yog tias koj muaj tag nrho cov ntaub ntawv tsim nyog, tom qab ntawd ua cov hauv qab no:

  1. Qhib cov ntawv configuration.

    sudo nano / thiab lwm yam / network / cuam tshuam

  2. Txhawm rau sau cov kab lus, sau tag nrho cov kev txwv hauv daim foos hauv qab no:

    iface [network interface lub npe] inet zoo li qub
    chaw nyob [chaw nyob] (chaw nyob hauv daim npav network)
    netmask [chaw nyob] (subnet mask)
    rooj vag [chaw nyob] (rooj vag chaw nyob)
    dns-nameservers [chaw nyob] (Qhov chaw nyob DNS neeg rau zaub mov)
    auto [network interface lub npe]

  3. Txuag cov kev hloov pauv.
  4. Kaw cov kab ntawv nyeem.

Yog li ntawd, tag nrho cov ntaub ntawv hauv cov ntawv yuav tsum zoo li no:

Tam sim no teeb tsa lub wired network nrog IP zoo li qub tuaj yeem suav ua tiav. Ib yam li nrog kev hloov kho, nws pom zoo kom koj rov qab kho koj lub khoos phis tawm rau kev hloov kom ua tiav.

PPPoE

Yog tias koj tus kws kho mob muab koj nrog PPPoE raws tu qauv, tom qab ntawd kev teeb tsa yuav tsum tau ua los ntawm cov nqi hluav taws xob tshwj xeeb uas tau npaj tseg hauv Ubuntu Server. Nws hu pppoeconfCov. Txhawm rau txuas koj lub khoos phis tawm rau Is Taws Nem, ua cov hauv qab no:

  1. Khiav qhov hais kom ua:

    sudo pppoeconf

  2. Hauv cov pseudographic interface ntawm cov nqi hluav taws xob uas tshwm sim, tos kom txog thaum lub scan ntawm lub network cov khoom tiav.
  3. Hauv daim ntawv teev npe, nyem Sau los ntawm lub network interface uas koj yuav mus kho.
  4. Nco tseg: yog tias koj muaj tib lub network interface, lub qhov rai no yuav hla.

  5. Nyob rau hauv lub qhov rai "YOOJ YIM HAIV NEEG" nyem "Yog".
  6. Hauv lub qhov rai tom ntej no koj yuav tau nug tus username thiab password - nkag mus rau lawv thiab paub meej los ntawm txhaj OKCov. Yog tias koj tsis muaj cov ntaub ntawv nrog koj, ces hu rau koj tus kws kho mob thiab nrhiav cov ntaub ntawv no ntawm nws.
  7. Nyob rau hauv lub qhov rai "SIV PEER DNS" nyem "Tsis muaj"yog tus IP chaw nyob zoo li qub, thiab "Yog"yog tias hloov kho. Hauv thawj kis, koj yuav raug hais kom nkag mus rau DNS server pabcuam ntawm tus kheej.
  8. Cov kauj ruam tom ntej yog txwv qhov loj ntawm MSS rau 1452 bytes. Koj yuav tsum tau muab kev tso cai, qhov no yuav tshem tawm qhov ua tau ntawm qhov yuam kev tseem ceeb thaum nkag mus rau qee qhov chaw.
  9. Tom ntej no, xaiv lo lus teb "Yog"yog tias koj xav kom lub khoos phis tawm los txuas rau lub network tom qab pib. "Tsis muaj" - yog tias koj tsis xav tau.
  10. Nyob rau hauv lub qhov rai "KHWV TAU KEV TSWJ LOS"los ntawm txhaj "Yog", koj yuav muab kev tso cai rau cov nqi hluav taws xob los tsim qhov txuas tam sim no.

Yog xaiv "Tsis muaj", tom qab ntawd koj tuaj yeem txuas rau Is Taws Nem tom qab los ntawm kev khiav cov lus txib:

sudo pon dsl-cov neeg zov me nyuam

Koj tseem tuaj yeem txiav tawm qhov kev sib txuas ntawm PPPoE txhua lub sijhawm los ntawm kev nkag mus rau cov lus txib nram qab no:

sudo poff dsl-tus muab kev pab

Dial-up

Muaj ob txoj hauv kev los teeb tsa DIAL-UP: siv tus nqi hluav taws xob pppconfig thiab ua nqis hauv cov ntawv configuration "wvdial.conf"Cov. Thawj txoj hauv kev hauv tsab xov xwm yuav tsis xav txog kev nthuav dav, vim cov lus qhia zoo ib yam li kab lus dhau los. Txhua yam koj yuav tsum paub yog yuav ua li cas khiav tus nqi hluav taws xob. Ua li no, ua:

sudo pppconfig

Tom qab ua tiav, ib pseudo-graphic interface yuav tshwm sim. Txhawm rau teb cov lus nug uas yuav nug hauv cov txheej txheem, koj tuaj yeem tsim qhov DIAL-UP txuas.

Nco tseg: yog tias koj tsis tau teb qee lo lus nug, nws raug nquahu kom hu rau koj tus kws khomob kom muab kev sab laj.

Nrog rau txoj kev thib ob, txhua yam yog me ntsis cuam tshuam ntxiv. Qhov tseeb yog tias cov ntawv teeb tsa "wvdial.conf" nws tsis nyob hauv qhov system, thiab rau nws cov kev tsim nws yuav tsim nyog los nruab ib lub zog tshwj xeeb, uas hauv cov txheej txheem ntawm kev ua haujlwm suav tias txhua yam ntaub ntawv tsim nyog los ntawm modem thiab nkag mus rau hauv cov ntaub ntawv no.

  1. Nruab qhov nqi hluav taws xob los ntawm kev ua haujlwm khiav cov lus txib:

    sudo Apt nruab wvdial

  2. Khiav cov ntaub ntawv executable nrog cov lus txib:

    sudo wvdialconf

    Nyob rau qib no, tus nqi hluav taws xob tsim teeb tsa cov ntaub ntawv teeb tsa thiab nkag mus rau txhua qhov tsim nyog hauv nws. Tam sim no koj yuav tsum sau cov ntaub ntawv los ntawm tus muab kev pab kom qhov kev sib txuas tau tsim.

  3. Qhib cov ntaub ntawv "wvdial.conf" los ntawm cov ntawv nyeem editor nano:

    sudo nano /etc/wvdial.conf

  4. Sau cov ntaub ntawv hauv kab Xovtooj, Lub npe neeg siv thiab Lo lus zaisCov. Koj tuaj yeem tau txais tag nrho cov ntaub ntawv los ntawm tus muab kev pabcuam.
  5. Txuag cov kev hloov pauv thiab tawm ntawm cov kab ntawv nyeem.

Tom qab ua qhov no, txuas rau Is Taws Nem, koj tsuas yog yuav tsum khiav cov lus txib nram qab no:

sudo wvdial

Raws li koj tuaj yeem pom, txoj hauv kev thib ob yog qhov nyuaj heev piv rau thawj zaug, tab sis nws yog nrog nws cov kev pab uas koj tuaj yeem tsim txhua qhov tsim nyog txuas nrog thiab ntxiv rau lawv nyob rau hauv tus txheej txheem ntawm kev siv Is Taws Nem.

Xaus

Ubuntu Server muaj tag nrho cov cuab yeej tsim nyog los hloov kho txhua hom kev sib txuas hauv Is Taws Nem. Qee qhov xwm txheej, txawm tias ntau txoj hau kev muaj nyob rau ib zaug. Qhov loj tshaj plaws yog kom paub txhua qhov tsim nyog cov lus txib thiab cov ntaub ntawv uas koj xav tau nkag mus rau hauv cov ntaub ntawv teeb tsa.

Pin
Send
Share
Send