服务器安装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/

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

发表评论

要发表评论,您必须先登录

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

      whats better cialis viagra or levitra <a href="http://buycialisxz.com/ ">http://buycialisxz.com/ </a> cialis

    • Kndnboop

      where can i buy viagra online <a href="http://viagratx.com/ ">where to get viagra</a> viagra onset

    • Fjjuprest

      viagra vs levitra <a href="http://viagraonlinejc.com/ ">does medicare cover viagra </a> how long is viagra effective

    • canadian online pharmacy for viagra mvzmaf

      usa pharmacy online <a href="http://edpharmacystore.com/">my sources</a> my canadian pharmacies
      <a href=http://edpharmacystore.com/>he said</a>

    • buy generic viagra online chqric

      cialis canadian pharmacy <a href="http://edpharmacystore.com/">navigate to these guys</a> brand viagra online canada pharmacy
      <a href=http://edpharmacystore.com/>http://edpharmacystore.com/ Canadian Pharmacy Online</a>

    • KbbfIdovE

      viagra online pay by paypal <a href="https://kloviagrli.com/ ">http://kloviagrli.com/ </a> viagra sales in australia

    • Maurice Pennewell

      im starting a blog and i need a way to prove the content is mine so i think when i write a post i will record it on camtasia studio, will it prove 100 it is mine?. . i dont want to pay 30 $ each post to copyright them..

    • FqbbAniny

      nottingham payday loans <a href="http://ascashapply.com/ ">cash advance stores in michigan</a> top credit cards for cash advances

    • JbbnAniny

      splitting cialis 20mg <a href="http://ljcialishe.com/ ">como comprar cialis en gibraltar</a> will cialis help with performance anxiety

    • LabxAniny

      everyday cialis reviews <a href="https://jecialisbn.com/ ">effetti collaterali viagra cialis levitra</a> harga cialis indonesia

    • Jbnvblafe

      payday loans houston tx 77004 <a href="http://samcash21.com/ ">fast cash loans tauranga</a> payday loans in brookhaven pa

    • drugs-med.com stfmdn

      canadian online pharmacy for viagra <a href=http://www.canada1drugstore.com/tadalafil/>generic viagra buy</a> online canadian pharmacies
      <a href="http://www.canada1drugstore.com/tadalafil/">viagra soft tabs</a> generic cialis

    • viagra samples free lxveud

      generic viagra from india <a href=http://www.canada1drugstore.com/tadalafil/>canadian cheap viagra</a> cialis online canada pharmacy
      <a href="http://www.canada1drugstore.com/tadalafil/">cialis - canada</a> viagra-canada

    • Nbnhprest

      how to get viagra prescription <a href="https://vigedon.com/ ">http://vigedon.com/ </a> sildenafil 50 mg

    • taking viagra zzxhnk

      cheap cialis online canadian pharmacy <a href="http://edpharmacystore.com/">good</a> cialis online canadian pharmacy
      <a href=http://edpharmacystore.com/>like this</a>

    • Kvaxboop

      kosters cash loans hours <a href="http://rirocash.com/ ">payday loan and more</a> payday advance 5000

    • Fbsgprest

      cialis tablets in australia <a href="https://llecialisjaw.com/ ">http://llecialisjaw.com/ </a> sell cialis

    • AhbzAniny

      money loan kitchener <a href="http://daymoneygo.com/ ">ga payday loan lenders</a> discount payday loans no faxing

    • Aqcfbopinnots

      cialis or viagra ? <a href="http://cialisvja.com/ ">where do you inject liquid cialis</a> cialis&dapoxetine

    • KuikIdovE

      viagra/ mastercard accepted <a href="http://viagerkr.com/ ">free viagra trials</a> viagra in hamburg

    • FqhhAniny

      prescription drugs without doctor approval <a href="http://happyrxpharmacy21.com/ ">meds online</a> most reliable canadian pharmacies

    • JbbvAniny

      canada pharmaceuticals online <a href="http://canadianpharmnorx.com/ ">canada drugs online</a> pharmacy uk

    • LbsxAniny

      canadian drugstore online <a href="https://ssviagriia.com/ ">viagragold</a> best canadian online pharmacy

    • Jbnbblafe

      online canadian pharmacy <a href="http://online21rxon.com/ ">canadian pharcharmy onlinecanadian online pharmacy</a> cheap pharmacy online

    • Nncsprest

      online viagra australia paypal <a href="http://lightvigra.com/ ">dapoextine viagra</a> prescription prices comparison

    • Kbcxboop

      prescription drugs online without doctor <a href="http://xuypharmacyonline.com/">pharmeasy</a> cheap prescription drugs

    • AhkdAniny

      canada medication pharmacy <a href="http://storerxpharmcanada.com/ ">walmart pharmacy online</a> reputable canadian mail order pharmacies

    • Fvfcprest

      viagra online reviews <a href="http://hopeviagrin.com/ ">india pharmacy viagra</a> where to bye viagra

    • free local dating sites

      free dating online

    • buying prescription drugs from canada vozqxt

      viagra dose <a href="http://tvtv16.com/home.php?mod=space&uid=302737">cheap cialis from canada</a> drugstore of canada <a href=https://king-wifi.win/wiki/Take_Control_Of_Your_Health_With_These_Great_Acid_Reflux_Tips>viagra.com canada</a> viagra from canadian pharmacy
      buying cialis in canada <a href="https://www.ultimate-guitar.com/u/abernathy44timmermann">canadian online pharmacy for cialis</a> cheap canadian drugs <a href=https://valetinowiki.racing/wiki/Guide_On_How_To_Overcome_Diabetes_Easily>canada.viagra</a> how viagra works
      viagra and alcohol <a href="https://historyhub.history.gov/external-link.jspa?url=https://www.inventables.com/users/bossenmyers2509">generic viagra cheap</a> canadian drugs viagra <a href=http://www.magcloud.com/user/andersendickens4>canadian pharmacy cialis generic</a> northwestpharmacy
      canadianpharmacymeds.com

    • Kbbgboop

      viagra 20mg <a href="http://erectilejyzd.com/#">Tofranil</a> brand viagra no prescription http://erectilejyzd.com/ - canadian prescriptions online ’

    • AhmdAniny

      cialis shop online <a href="https://impotencecdny.com/">online pharmacies in usa</a> do have to have a prescription for cialis? https://impotencecdny.com/ - Nootropil ’

    • Fhnhprest

      canada pharmacy online no script <a href="https://canadianpharmacy-yy.com/">cialis online pharmacy</a> Kamagra Oral Jelly https://canadianpharmacy-yy.com/ - cialis professional ’

    • Ngscprest

      where to purchase viagra online <a href="http://canadianpharmacy-yy.com/Fitness/how-to-get-a-six-pack.html">generic viagra free shipping</a> viagra capsule price http://canadianpharmacy-yy.com/Fitness/how-to-get-a-six-pack.html - can you buy female viagra ’