How To Add Multiple IP Addresses On Linux / Fedora Core / Fedora كيفية اضافة عدة عناوين بروتوكول الإنترنت على لينكس فيدورا الاساسية / فيدورا
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! انت القيام به!
Filed under المقدم بمقتضى Fedora 7 فيدورا 7 , ، Fedora Core 6 فيدورا الأساسية 6 , ، Headline News أهم الانباء , ، How To كيف , ، Linux لينكس , ، Linux Migration لينكس الهجره , ، Web شبكة , ، Web Hosting استضافة المواقع , ، Web Services خدمات الشبكه العالمية | |
| |
RSS 2.0 ار اس اس 2،0 | |
Trackback this Article | هذه المادة |
Email this Article ارسل هذه المادة
You may also like to read ويمكنك ايضا ان تقرأ |





































November 14th, 2007 at 8:42 am تشرين الثاني / نوفمبر 14th ، 2007 في الساعة 8:42
Don’t forget to add the :0, :1, etc as in the filename to the DEVICE= lines in each file! ولا تنس أن تضيف : 0 ، : 1 ، الخ كما هو الحال في الملف الى جهاز = خطوط في كل ملف!
April 18th, 2008 at 10:29 am نيسان / ابريل 18th ، 2008 في الساعة 10:29
Hi, اهلا ،
I have a problem setting up multiple IP addresses under Fedora 8: I can configure the addresses fine as detailed on this website, and I can ping them no trouble. عندي مشكلة انشاء متعددة تحت عناوين بروتوكول الإنترنت فيدورا 8 : استطيع ان يتناول تكوين الغرامه كما هو مفصل على هذا الموقع ، وانا لا يمكن ان بينغ لهم المتاعب. The problem is when I come to actually use them with a client-server program I am developing: والمشكلة هي انني عندما حان فعلا لاستخدامها مع أحد الزبائن - برنامج خادم انا الناميه :
The server program opens up a socket and binds it to one of the addresses, but when it tries to bind a second socket to one of the other address, I get the error “Address in use” - so it seems that I can’t actually set up concurrent servers on the different addresses. برنامج الخادم يفتح المقبس لانه يفرض على واحد من العناوين ، ولكن عندما تحاول ان تربط بين المقبس ثانية الى واحد من عنوان آخر ، احصل على الخطأ "في التصدي لاستخدام" -- ويبدو ان ذلك لا أستطيع فعلا انشاء مراكز خدمة متزامنة على عناوين مختلفة.
Further, when the client program tries to connect with the one open server socket, it will quite happily connect with the server irrespective of the address used by the server, so long as it is connecting to one of those I have configured, or is the primary address. وعلاوة على ذلك ، عندما يحاول العملاء برنامج لربط واحد مفتوح مع خادم المقبس ، وسوف يربط تماما لحسن الحظ مع الخادم بغض النظر عن العنوان الذي يستخدم من قبل خادم ، طالما انها لربط واحدة من تلك لقد تكوينها ، او هو العنوان الأولي.
I hope I have explained this clearly enough … آمل ان اكون قد اوضحت هذا واضح بما فيه الكفايه…
I am programming in C. وانا في البرمجه جيم
Cheers, ابتهاج ،
Keith Moore كيث مور
April 18th, 2008 at 11:19 am نيسان / ابريل 18th ، 2008 في الساعة 11:19
OK, panic over, found the problem - I was still binding with INADDR_ANY instead of the specific address, which had the dual effect of taking up all the IP addresses, and accepting incoming connections on all of them! طيب ، اكثر من الذعر والهلع ، وجدت مشكلة -- كنت ما زلت ملزم مع نوع INADDR_ANY بدلا من عنوان محدد ، التي كان لها تأثير مزدوج من تناول كل عناوين بروتوكول الإنترنت ، وقبول الوافدين وصلات لها جميعا!
D’oh! D' أوه!
April 21st, 2008 at 10:47 am الحادي والعشرين نيسان / ابريل ، 2008 في الساعة 10:47
Cool guide, but I need multi DNS (already know about the ip addresses tips) كوول الدليل ، ولكن انا بحاجة الى نظام أسماء النطاقات المتعددة (بالفعل معرفة عناوين بروتوكول الإنترنت نصائح)
thanks anyway شكرا على اي حال