{"id":7874,"date":"2024-05-27T11:49:08","date_gmt":"2024-05-27T08:49:08","guid":{"rendered":"https:\/\/sunucucozumleri.com\/?p=7874"},"modified":"2024-05-27T11:49:08","modified_gmt":"2024-05-27T08:49:08","slug":"077-centos-sunucu-ipv6-ipv4-nasil-eklenir","status":"publish","type":"post","link":"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/","title":{"rendered":"077 &#8211; Centos Sunucu IPV6 \/ IPV4 Nas\u0131l Eklenir ?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Makale \u0130\u00e7eri\u011fi<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"\u0130\u00e7indekiler Tablosunu A\u00e7\/Kapat\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/#Giris\" >Giri\u015f:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/#IPV4_Adresi_Ekleme\" >IPV4 Adresi Ekleme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/#IPV6_Adresi_Ekleme\" >IPV6 Adresi Ekleme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/#Guvenlik_ve_Diger_Ayarlar\" >G\u00fcvenlik ve Di\u011fer Ayarlar<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/#Guvenlik_Duvari_Yapilandirmasi\" >G\u00fcvenlik Duvar\u0131 Yap\u0131land\u0131rmas\u0131<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/#Fiziksel_Sunucular_ve_VDS_icin_IP_Ayarlari\" >Fiziksel Sunucular ve VDS i\u00e7in IP Ayarlar\u0131<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/sunucucozumleri.com\/blog\/077-centos-sunucu-ipv6-ipv4-nasil-eklenir\/#Sonuc\" >Sonu\u00e7<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Giris\"><\/span><strong>Giri\u015f:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>CentOS sunucular\u0131nda IP adresi eklemek, sunucunuzun a\u011f yap\u0131land\u0131rmas\u0131n\u0131 y\u00f6netmenin \u00f6nemli bir par\u00e7as\u0131d\u0131r. Bu i\u015flem, \u00f6zellikle sanal \u00f6zel sunucular (VDS) ve <a href=\"https:\/\/sunucucozumleri.com\/blog\/sunucu\/fiziksel-sunucu\/\">fiziksel sunucular<\/a> i\u00e7in gereklidir. Hem IPV4 hem de IPV6 adreslerini eklemek, sunucunuzun g\u00fcvenli\u011fini ve ula\u015f\u0131labilirli\u011fini art\u0131r\u0131r. Bu rehberde, CentOS sunucunuzda IPV4 ve IPV6 adreslerini nas\u0131l ekleyece\u011finizi ve yap\u0131land\u0131raca\u011f\u0131n\u0131z\u0131 ad\u0131m ad\u0131m anlataca\u011f\u0131m.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"IPV4_Adresi_Ekleme\"><\/span>IPV4 Adresi Ekleme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>1. <strong>IP Adresini Alma ve Kontrol Etme:<\/strong><br \/>\n\u00d6ncelikle, sunucunuza eklemek istedi\u011finiz IPV4 adresini alman\u0131z gerekmektedir. <a href=\"https:\/\/sunucucozumleri.com\/blog\/frontpage\/\">Sunucu<\/a> sa\u011flay\u0131c\u0131n\u0131zdan veya a\u011f y\u00f6neticinizden bu adresi edinebilirsiniz.<\/p>\n<p>2. <strong>A\u011f Yap\u0131land\u0131rma Dosyas\u0131n\u0131 D\u00fczenleme:<\/strong><br \/>\nA\u011f yap\u0131land\u0131rma dosyas\u0131n\u0131 a\u00e7arak IP adresini eklemelisiniz. A\u015fa\u011f\u0131daki komutu kullanarak a\u011f yap\u0131land\u0131rma dosyas\u0131n\u0131 d\u00fczenleyin:<\/p>\n<p>&#8220;`<br \/>\nsudo nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<br \/>\n&#8220;`<\/p>\n<p>Bu dosya i\u00e7inde, mevcut yap\u0131land\u0131rmaya a\u015fa\u011f\u0131daki sat\u0131rlar\u0131 ekleyin veya d\u00fczenleyin:<\/p>\n<p>&#8220;`<br \/>\nDEVICE=eth0<br \/>\nBOOTPROTO=none<br \/>\nONBOOT=yes<br \/>\nIPADDR=192.168.123.12<br \/>\nNETMASK=255.255.255.0<br \/>\nGATEWAY=192.168.123.1<br \/>\n&#8220;`<\/p>\n<p>Burada `IPADDR` k\u0131sm\u0131na sunucunuza eklemek istedi\u011finiz IPV4 adresini, `NETMASK` ve `GATEWAY` k\u0131s\u0131mlar\u0131na ise uygun de\u011ferleri girdi\u011finizden emin olun.<\/p>\n<p>3. <strong>A\u011f Hizmetlerini Yeniden Ba\u015flatma:<\/strong><br \/>\nYap\u0131land\u0131rma de\u011fi\u015fikliklerini uygulamak i\u00e7in a\u011f hizmetlerini yeniden ba\u015flatman\u0131z gerekmektedir:<\/p>\n<p>&#8220;`<br \/>\nsudo systemctl <a href=\"https:\/\/sunucucozumleri.com\/blog\/reboot-ve-restart-arasindaki-farklar-nedir\/\">restart<\/a> network<br \/>\n&#8220;`<\/p>\n<p>4. <strong>IP Adresini Do\u011frulama:<\/strong><br \/>\nYeni ekledi\u011finiz IPV4 adresinin etkin olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek i\u00e7in a\u015fa\u011f\u0131daki komutu kullanabilirsiniz:<\/p>\n<p>&#8220;`<br \/>\nip addr show eth0<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"IPV6_Adresi_Ekleme\"><\/span>IPV6 Adresi Ekleme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>1. <strong>IPV6 Adresini Alma ve Kontrol Etme:<\/strong><br \/>\nIPV6 adresinizi sa\u011flay\u0131c\u0131n\u0131zdan alarak do\u011frulu\u011funu kontrol edin.<\/p>\n<p>2. <strong>A\u011f Yap\u0131land\u0131rma Dosyas\u0131n\u0131 D\u00fczenleme:<\/strong><br \/>\nAyn\u0131 a\u011f yap\u0131land\u0131rma dosyas\u0131n\u0131 d\u00fczenleyerek IPV6 adresini ekleyin:<\/p>\n<p>&#8220;`<br \/>\nsudo nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<br \/>\n&#8220;`<\/p>\n<p>Dosyaya a\u015fa\u011f\u0131daki sat\u0131rlar\u0131 ekleyin veya mevcut olanlar\u0131 d\u00fczenleyin:<\/p>\n<p>&#8220;`<br \/>\nDEVICE=eth0<br \/>\nBOOTPROTO=none<br \/>\nONBOOT=yes<br \/>\nIPV6INIT=yes<br \/>\nIPV6ADDR=2001:db8::1234\/64<br \/>\nIPV6_DEFAULTGW=2001:db8::1<br \/>\n&#8220;`<\/p>\n<p>3. <strong>A\u011f Hizmetlerini Yeniden Ba\u015flatma:<\/strong><br \/>\nYap\u0131land\u0131rma de\u011fi\u015fikliklerini uygulamak i\u00e7in a\u011f hizmetlerini yeniden ba\u015flat\u0131n:<\/p>\n<p>&#8220;`<br \/>\nsudo systemctl restart network<br \/>\n&#8220;`<\/p>\n<p>4. <strong>IPV6 Adresini Do\u011frulama:<\/strong><br \/>\nYeni eklenen IPV6 adresini do\u011frulamak i\u00e7in \u015fu komutu kullan\u0131n:<\/p>\n<p>&#8220;`<br \/>\nip -6 addr show eth0<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Guvenlik_ve_Diger_Ayarlar\"><\/span>G\u00fcvenlik ve Di\u011fer Ayarlar<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Guvenlik_Duvari_Yapilandirmasi\"><\/span>G\u00fcvenlik Duvar\u0131 Yap\u0131land\u0131rmas\u0131<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>IPV4 ve IPV6 adreslerinin g\u00fcvenli\u011fini sa\u011flamak i\u00e7in g\u00fcvenlik duvar\u0131 kurallar\u0131 eklemelisiniz. CentOS&#8217;ta, `firewalld` kullanarak bu kurallar\u0131 yap\u0131land\u0131rabilirsiniz.<\/p>\n<p>1. <strong>Firewalld Kurallar\u0131 Ekleme:<\/strong><\/p>\n<p>IPV4 i\u00e7in:<\/p>\n<p>&#8220;`<br \/>\nsudo firewall-cmd &#8211;permanent &#8211;add-rich-rule=&#8217;rule family=&#8221;ipv4&#8243; source address=&#8221;192.168.1.10&#8243; accept&#8217;<br \/>\n&#8220;`<\/p>\n<p>IPV6 i\u00e7in:<\/p>\n<p>&#8220;`<br \/>\nsudo firewall-cmd &#8211;permanent &#8211;add-rich-rule=&#8217;rule family=&#8221;ipv6&#8243; source address=&#8221;2001:db8::1234&#8243; accept&#8217;<br \/>\n&#8220;`<\/p>\n<p>2. **<strong>De\u011fi\u015fiklikleri Uygulama:<\/strong>**<\/p>\n<p>&#8220;`<br \/>\nsudo firewall-cmd &#8211;reload<br \/>\n&#8220;`<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Fiziksel_Sunucular_ve_VDS_icin_IP_Ayarlari\"><\/span>Fiziksel Sunucular ve VDS i\u00e7in IP Ayarlar\u0131<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Fiziksel sunucular ve VDS&#8217;lerde IP adresi eklerken dikkat edilmesi gereken baz\u0131 ek fakt\u00f6rler vard\u0131r.<\/p>\n<p>&#8211; <strong>Fiziksel Sunucular:<\/strong><br \/>\n&#8211; Fiziksel sunucularda IP adresi eklerken, a\u011f kart\u0131 (NIC) konfig\u00fcrasyonunun do\u011fru yap\u0131ld\u0131\u011f\u0131ndan emin olun. Bu, \u00f6zellikle birden fazla NIC bulunan sunucularda \u00f6nemlidir.<br \/>\n&#8211; Ekledi\u011finiz IP adreslerinin <a href=\"https:\/\/sunucucozumleri.com\/blog\/router-nedir-router-ne-ise-yarar\/\">router<\/a> veya <a href=\"https:\/\/sunucucozumleri.com\/blog\/switch-nedir-switch-ne-ise-yarar\/\">switch<\/a> \u00fczerinde do\u011fru VLAN&#8217;lar ile e\u015fle\u015ftirildi\u011finden emin olun.<\/p>\n<p>&#8211; <strong>VDS (Sanal \u00d6zel Sunucular):<\/strong><br \/>\n&#8211; VDS&#8217;lerde IP adresi eklerken, sanal a\u011f adapt\u00f6rlerinin (vNIC) do\u011fru konfig\u00fcre edildi\u011fini kontrol edin.<br \/>\n&#8211; Sa\u011flay\u0131c\u0131n\u0131z\u0131n sundu\u011fu <a href=\"https:\/\/sunucucozumleri.com\/blog\/sunucu-sanallastirma-teknolojileri-avantajlari-ve-kullanim-alanlari\/\">sanalla\u015ft\u0131rma<\/a> platformunun (KVM, Xen, vs.) IP y\u00f6netim kurallar\u0131n\u0131 takip edin.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Sonuc\"><\/span><strong>Sonu\u00e7<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>CentOS sunucunuzda IPV4 ve IPV6 adresleri eklemek, a\u011f yap\u0131land\u0131rmas\u0131n\u0131 optimize etmenin ve g\u00fcvenli\u011fi art\u0131rman\u0131n \u00f6nemli bir par\u00e7as\u0131d\u0131r. Bu rehberde verilen ad\u0131mlar\u0131 izleyerek, hem fiziksel sunucular\u0131n\u0131zda hem de sanal \u00f6zel sunucular\u0131n\u0131zda IP adresi ekleme i\u015flemini ba\u015far\u0131l\u0131 bir \u015fekilde ger\u00e7ekle\u015ftirebilirsiniz. G\u00fcvenlik duvar\u0131 kurallar\u0131 eklemek de a\u011f trafi\u011finizi g\u00fcvenli hale getirmek i\u00e7in gereklidir. Sunucunuzun her iki protokolde de d\u00fczg\u00fcn \u00e7al\u0131\u015ft\u0131\u011f\u0131ndan emin olmak i\u00e7in d\u00fczenli olarak yap\u0131land\u0131rmalar\u0131n\u0131z\u0131 ve ba\u011flant\u0131lar\u0131n\u0131z\u0131 kontrol etmeyi unutmay\u0131n.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Giri\u015f: CentOS sunucular\u0131nda IP adresi eklemek, sunucunuzun a\u011f yap\u0131land\u0131rmas\u0131n\u0131 y\u00f6netmenin \u00f6nemli bir par\u00e7as\u0131d\u0131r. Bu i\u015flem, \u00f6zellikle sanal \u00f6zel sunucular (VDS) ve fiziksel sunucular i\u00e7in gereklidir. Hem IPV4 hem de IPV6 adreslerini eklemek, sunucunuzun g\u00fcvenli\u011fini ve ula\u015f\u0131labilirli\u011fini art\u0131r\u0131r. Bu rehberde, CentOS sunucunuzda IPV4 ve IPV6 adreslerini nas\u0131l ekleyece\u011finizi ve yap\u0131land\u0131raca\u011f\u0131n\u0131z\u0131 ad\u0131m ad\u0131m anlataca\u011f\u0131m. IPV4 Adresi Ekleme &hellip;<\/p>\n","protected":false},"author":12,"featured_media":7878,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[28,5],"tags":[],"class_list":["post-7874","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/7874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/comments?post=7874"}],"version-history":[{"count":0,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/7874\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media\/7878"}],"wp:attachment":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media?parent=7874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/categories?post=7874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/tags?post=7874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}