br0ken rlz

Welcome to my w0rld interesting Networks , Wireless , Linux , Hacking , Security

ارشيف لـأكتوبر 2009

Solved~ Static IP Address problem on Debian amd64

without comments

واجهت مشكلة في تثبيت IP Address  على جهازي في العمل نسختي Debian am64 , ياخذه من DHCP Server وأنا أريد الاي بي الي وضعته , دعونا نشوف مشكلة تثبيت الايي بي ادرس على الدبيان وحل المشكلة الي واجهتني

أولاً /نفتح ملف interfaces بأي محرر نصوص أنا اعشق vi

root@lenny#vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
root@lenny#

ثانياً /قمت بالتعديل على كلمة dhcp وضعها static ثم كتابة البيانات التالية :

address 10.16.x.x
netmask 255.255.255.0
network 10.16.x.0
broadcast 10.16.x.255
gateway 10.16.x.254

ثالثاً/عمل ريستارت لخدمة networking

root@lenny#/etc/init.d/networking restart

رابعاً/ تفعيل الانترفيس بالأمر

root@lenny#ifup eth0

لكن لم تنجح  بعد البحث فيه عدة مواقع وجدت حل المشكلة

الحل هوه نضع السطر التالي

auto eth0

قبل allow-hotplug eth0

ويكون الملف النهائي بالشكل التالي

root@lenny#cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.16.x.x
netmask 255.255.255.0
network 10.16.x.0
broadcast 10.16.x.255
gateway 10.16.x.254
root@lenny#

ثم نقوم بعمل ريستارت للخدمة لتنشيط التعديل

root@lenny#/etc/init.d/networking restart

ثم تفعيل الانترفيس بالأمر

root@lenny#ifup eth0

وبكذا المشكلة نحلت اعتقد هناك bugs في النسخة لاني مجرب نسخة 32bit وماواجهت المشكلة فيها

ومكن تعرض إعدادات الانترفيس بالأمر

root@lenny#ifconfig eth0

متعب ,,,,

Written by br0ken

أكتوبر 3, 2009 في 4:35 ص

أرسلت فى Linux