Most guide to adding multiple IP addresses on Linux starts with the Microsoft-like solution of using ifconfig. اضافة الى توجيه معظم عناوين بروتوكول الإنترنت المتعددة حول لينكس يبدأ مع مايكروسوفت - حل مثل استخدام ifconfig. While the solution is correct it doesn’t survive a reboot or even a network restart. وفي حين ان الحل الصحيح هو انه لا بقاء على قيد الحياة او حتى اعادة تشغيل الكمبيوتر لاعادة تشغيل شبكة. Here’s how you can easily and permanently add multiple IP addresses to the same (or different) network interface on your Linux machine. اليك الطريقة يمكنك بسهولة وبشكل دائم إضافة إلى عناوين بروتوكول الإنترنت المتعددة نفسه (او مختلفة) واجهة الشبكه على جهاز خادم لينكس. I just successfully configured dozens of IP addresses on our new dedicated server using this method. انا فقط بنجاح تهيئتها العشرات من عناوين بروتوكول الإنترنت على الجديد وتقديم خدمة جادة باستخدام هذه الطريقة. First I will explain how you can add using the Fedora user interface and then from the Linux command line. اولا سأشرح كيف يمكنك اضافة فيدورا باستخدام واجهة المستخدم و من ثم لينكس سطر الاوامر.


How to set multiple IP addresses using the Fedora user interface كيف يمكن وضع عدة عناوين بروتوكول الإنترنت باستخدام واجهة المستخدم فيدورا

Linux supports multiple IP adresses on the same network interface. وتدعم لينكس متعددة adresses الملكيه الفكريه على نفس واجهة الشبكه. Adding multiple IP addresses from the user interface in Fedora is simple. اضافة عناوين متعددة من واجهة المستخدم في فيدورا بسيط.
1. Select menu item System->Administration->Network. اختر فهرس النظام -> ادارة -> شبكة.
2. Click on New to add a new IP address انقر على اضافة جديدة لمعالجة الملكيه الفكريه الجديد
3. Select Ethernet connection اختر الصدد إيثرنت
4. Select the Ethernet card (in my case it is Intel Corp 82566DC Gigabit Network Connection) اختر بطاقات إيثرنت (بلادي في هذه الحاله يكون من انتل كورب 82566dc جيجابت اتصال الشبكه)
5. Specify your chosen IP address تحدد الطريقة التي اخترتها معالجة الملكيه الفكريه
6. Specify subnet mask (if in doubt use 255.255.255.0; better yet ask your system admin) يحدد قناع الشبكه الفرعية (اذا شك في استخدام 255.255.255.0 ؛ والافضل من ذلك اسأل نظام الادارة)
7. Specify your gateway, if you have one configured تحدد المدخل الخاص بك ، واذا كان لديك واحد تهيئتها
8. Click Next and then click on Apply. انقر فوق التالي ، ثم انقر على تطبيق.

Repeat the procedure for all your IP addresses. تكرار اجراء كل ما تبذلونه من عناوين بروتوكول الإنترنت.

Restart the network: اعادة تشغيل الشبكه :
/sbin/service network restart / sbin / اعادة تشغيل شبكة خدمات

You are done! انت القيام به!

How to set multiple IP addresses using Linux command line كيف يمكن وضع عدة عناوين بروتوكول الإنترنت باستخدام سطر الاوامر لينكس

Go to /etc/sysconfig/network-scripts اذهب الى / الخ / sysconfig / شبكة - مخطوطات
Make multiple copies of ifcfg-eth0 and name them as ifcfg-eth0:0, ifcfg-eth0:1 etc. تقديم نسخ متعددة من ifcfg - eth0 وعليها اسم ifcfg - eth0 : 0 ، ifcfg - eth0 : 1 الخ.
Open each of them and at least change the IPADDR to your chosen IP address and the NETMASK to the subnet mask for that IP address. مفتوحة لكل منهم وعلى الاقل تغيير ipaddr التي اخترتها لمعالجة الملكيه الفكريه وnetmask الى قناع شبكة فرعية لان معالجة الملكيه الفكريه.
A sample entry would look like this: عينة من شأنه ان دخول مثل هذا :

DEVICE=eth0:0 جهاز = eth0 : 0
BOOTPROTO=static Bootproto = ساكنة
IPADDR=34.123.111.21 Ipaddr = 34.123.111.21
NETMASK=255.255.255.0 Netmask = 255.255.255.0
ONBOOT=yes = نعم onboot

Restart the network: اعادة تشغيل الشبكه :
/sbin/service network restart / sbin / اعادة تشغيل شبكة خدمات

You are done! انت القيام به!