服务器安装Centos 7 整段IP配置

文章目录

1.确认配置网卡名称


服务器有两块网卡,只有一块网卡接线连接了外网,使用ip add命令查看网卡状态,up状态表示连接了网线,是我们要配置的网卡

2.附加IP配置


#cd /etc/sysconfig/network-scripts/ 进入网卡配置文件目录
#ls 查看目录下有哪些文件

1)主网卡配置文件修改


#vi /etc/sysconfig/network-scripts/ifcfg-eno1 
网卡配置文件添加:NM_CONTROLLED=NO

————如对外发布要隐藏掉IP信息(可用x.x.x.x代替)—————–

服务器安装Centos 7 整段IP配置

2)附加IP配置


新创建配置文件 ifcfg-eno1-range0


#vi /etc/sysconfig/network-scripts/ifcfg-eno1-range0


IPADDR_START=108.186.199.1 起始IP
IPADDR_END=108.186.199.253 末尾IP
PREFIX=24 掩码
CLONENUM_START=0 子网起始数


保存退出,重启网卡


#systemctl restart network 重启网卡


或者使用
#service network restart

此教程来自固定链接:http://www.rakbuluo.com/p11/

原文链接:,转发请注明来源!

发表评论

  • 40 Responses to “服务器安装Centos 7 整段IP配置”
    • LcxAniny

      i want to order some viagra <a href="http://genqpviag.com/#">viagra no perscription</a> viagra free trial pack canadian http://genqpviag.com/ - gerneric viagra ’

      回复
    • Kbctboop

      no prescription female cialis <a href="http://mycialedst.com/#">cialis voucher</a> generic cialis 20mg tablets http://mycialedst.com/ - voucher cialis index ’

      回复
    • AqbvAniny

      prescription viagra <a href="http://acialaarx.com/#">i want to order some viagra</a> viagra http://acialaarx.com/ - how can i buy viagra online ’

      回复
    • Fbdhprest

      cialis one a day <a href="http://21cialismen.com/#">buy cialis generic</a> female cialis http://21cialismen.com/ - cialis 20 mg for sale ’

      回复
    • Nlbxprest

      order original cialis <a href="http://cialijomen.com/#">cialis southafrica</a> cialish http://cialijomen.com/ - next day delivery cialis ’

      回复
    • FsbxAniny

      use paypal to buy viagra <a href="http://genericrxxx.com/#">viagra canada no prescription</a> generic viagra 60 pills http://genericrxxx.com/ - viagra uk ’

      回复
    • JbdcAniny

      dapoxetine viagra <a href="http://llviabest.com/#">free viagra canada</a> viagra india http://llviabest.com/ - fastest delivery of mail order viagra ’

      回复
    • Jvcxblafe

      cipla viagra hong kong <a href="http://fmedrx.com/#">generic viagra and dapoxetine</a> viagra au buy viagra witout precription <a href="http://edabcrx.com/#">viagra in melbourne</a> samples viagra viagra without a rx <a href="http://abcrxmed.com/#">viagra purchase in melbourne</a> viagra paypal cialis, levetra, viagra for less <a href="http://cialedrx.com/#">viagra sale</a> viagra buy paypal viagra australia free <a href="http://hitrxmenvia.com/#">viagra for sale no prescipstion</a> viagra and paypal uk no prescription

      回复
    • Klioboop

      quick viagra <a href="http://bestviagrx.com/#">cheap brand viagra in usa</a> trusted store viagra generic viagra uk <a href="http://viarxhd.com/#">viagra overnight delivery</a> viagra professional generic discount viagra <a href="http://viagetpill.com/#">viagra gold</a> viagra no prescription original viagra <a href="http://pillexrx.com/#">taking cialis and viagra together</a> viagra for sela what does viagra cost in uk <a href="http://usggrxmed.com/#">what does viagra cost in uk</a> viagra 50mg

      回复
    • Fgnhprest

      what are the over the counter viagra <a href="http://ltdviagragogo.com/#">pfizer viagra 100g</a> where to get viagra online quick delivery viagra <a href="http://hdgenericviagraxk.com/#">viagra no presciption</a> generic viagras names viagra and dapoxetine160 mg <a href="http://buygenericviarga.com/#">buy viagra online australia</a> genuine viagra online australia viagra for sale ireland <a href="http://buyhdpillvia.com/#">viagra pills with mastercard</a> can you shoot viagra viagra and diopoxtamine <a href="http://genericviagrix.com/#">viagra/cheaper</a> viagra premature ejaculation

      回复
    • Nlbxprest

      viagra for 30 years old <a href="http://viashoprx.com/#">viagra usage</a> ordering generic viagra online brand viagra cheap 50 <a href="http://xviagarrx.com/#">reliable cheap viagra</a> viagra in melbourne buy viagra with paypal <a href="http://viagraviagria.com/#">viagra canada</a> viagra for sale viagra orange county ca <a href="http://asgenviagria.com/#">health care products,viagra toronto</a> viagra vs cialis buy viagra uk <a href="http://viagengen.com/#">where to buy viagra in us overnight delivery</a> is viagra a controlled substance

      回复
    • Fgsprest

      write my research paper reviews <a href="https://writemypaperbuyhrd.com/#">help with college statistics</a> essay writing

      回复
    • FnrhAniny

      viagra patent date <a href="https://genqpviag.com/#">where can i find the best and cheapest overnight viagra?</a> price comparison viagra cialis levitra

      回复
    • buy essays online cheap

      Buy an essay online <a href="https://buyessayhelpbtg.com/">https://buyessayhelpbtg.com</a> buy essay cheap

      回复
    • FsfAniny

      essays model <a href="https://essayhelpbgs.com/#">history essay help</a> essays letter from birmingham jail

      回复
    • FnsbAniny

      homework help geometry <a href="https://customessaywriterbyz.com/#">a good conclusion for a research paper</a> literature dissertation

      回复
    • FnrdAniny

      how much is viagra <a href="https://llviabest.com/#">indo viagral</a> taking cialis and viagra together

      回复
    • Jgscblafe

      essay writer cheap <a href="https://thesisbyd.com/#">plagiarism college essay</a> case study design

      回复
    • Kwgdboop

      the persuasive essay <a href="https://researchpaperssfk.com/#">essay writers uk</a> custom essay sites

      回复
    • FqfAniny

      write research papers <a href="https://essaywritingservicesjy.com/#">term papers for sale online</a> need help writing a literature review

      回复
    • FtghAniny

      pay to do homework affordable <a href="https://thesiswritinghelpsjj.com/#">writing articles for money online</a> essays to buy

      回复
    • Dvscprest

      write a compare and contrast essay <a href="https://dissertationhelpvfh.com/#">persuasive essay question</a> term paper essays

      回复
    • Fdbvprest

      online order viagra in india <a href="https://hopeviagrin.com/#">discount online viagra</a> viagra brand

      回复
    • FbsbAniny

      mua thuб»‘c viagra <a href="https://genericrxxx.com/#">buying viagra from tesco online</a> viagra per durare di piГ№

      回复
    • Jsweblafe

      sildenafil online prices <a href="https://mygoviagar.com/#">australia viagra price</a> viagra pills generic brand

      回复
    • FmsgAniny

      jovenes usan viagra <a href="https://siviagmen.com/#">have women taking viagra</a> daily dose viagra

      回复
    • Kbrgboop

      how to purchase viagra tablet <a href="https://miraclevigra.com/#">canadian pharmacy prescription viagra</a> viagra man

      回复
    • buy sildenafil in mexico

      Buy sildenafil without prescription <a href="https://mygoviagar.com/">https://mygoviagar.com</a> 100mg viagra canada

      回复
    • Dbsfprest

      best buy viagra online <a href="https://lightvigra.com/#">viagra uk cost</a> viagra by phone

      回复
    • Frbhprest

      trusted store viagra generic <a href="https://paradiseviagira.com/#">https://paradiseviagira.com/</a> chewable viagra soft tabs

      回复
    • FhsbAniny

      viagra einfuhr nach deutschland <a href="https://buybuyviamen.com/#">https://buybuyviamen.com/</a> viagra nach bypass op

      回复
    • Jivhblafe

      viagra et hiv <a href="https://purevigra.com/#">pink viagra for women</a> mark martin viagra jacket

      回复
    • FbsgAniny

      many grams viagra should take <a href="https://buybuyviamen.com/#">viagra a 70 anni</a> viagra stop stop stop mp3 free download

      回复
    • Kmrfboop

      viagra natural tribulus terrestris <a href="https://purevigra.com/#">https://purevigra.com/</a> viagra cmimi

      回复
    • Devkprest

      viagra <a href="https://paradiseviagira.com/#">buy viagra in canada</a> viagra usa online

      回复
    • KmrfAniny

      buy generic viagra online fast shipping http://usggrxmed.com/ <a href="http://usggrxmed.com/#">generic viagra review</a> legit viagra online

      回复
    • JildcAniny

      generic viagra approved by fda http://fmedrx.com/ <a href="http://fmedrx.com/#">best place to buy viagra online reviews</a> purchase viagra online

      回复
    • genqpviag.com

      Inhaling steam from a vaporizer or bowl of steaming water and
      using a humidifier may also make you more comfortable.
      <a href="http://genqpviag.com/">https://genqpviag.com</a> viagra pills generic

      回复
    • saleviabuy.com

      You could buy prescription pills for these problems,
      but our herbal supplements have several advantages: <a href="https://saleviabuy.com/">saleviabuy.com</a>
      viagra not working

      回复
    • Stephenpeaky

      online viagra prescription <a href=" http://sild100fast.com/# ">viagra for sale</a> viagra without a doctor prescription canada

      回复