نمایش نتایج: از شماره 1 تا 4 , از مجموع 4

موضوع: اضافه کردن یک آی پی جدید به سرور

  1. #1
    عضو انجمن P-CO آواتار ها
    تاریخ عضویت
    Mar 2009
    محل سکونت
    Tehran, Iran
    نوشته ها
    277
    تشکر تشکر کرده 
    460
    تشکر تشکر شده 
    1,642
    تشکر شده در
    1,202 پست

    پیش فرض اضافه کردن یک آی پی جدید به سرور

    Add an IP address for Non-SUSE distributions
    These are the steps to add the second IP address to your existing network adapter under non-SUSE distributions of Linux.

    Become root on your system, either by logging into that account or using the su command.
    Change your current directory to the /etc/sysconfig/network-scripts directory with the command:
    کد:
    cd /etc/sysconfig/network-scripts
    Check for existing network adapters with the command:
    کد:
    ls ifcfg-*
    In most instances, you will see the files ifcfg-eth0 and ifcfg-lo. If you see other files with any other names and are unfamiliar with configuring TCP/IP, you may want to consult with your system administrator before proceeding or contact support@oclc.org.
    Edit /etc/hosts and add a line for your new address and name such as:
    24.249.162.195 ezproxy.yourlib.org
    To create the new interface, you will copy ifcfg-eth0 to ifcfg-eth0:0 with the command:
    کد:
    cp ifcfg-eth0 ifcfg-eth0:0

    Next, edit icfg-eth0:0 and change the DEVICE line to be similar to:
    کد:
    DEVICE=eth0:0

    and change the IPADDR line to be similiar to:
    کد:
    IPADDR=24.249.162.195

    To activate the new IP address, issue a command similar to:
    کد:
    ./ifup eth0:0

    Add an IP address for SUSE distributions
    These are the steps to add the second IP address to your existing network adapter under SUSE distributions of Linux.

    Become root on your system, either by logging into that account or using the su command.
    Change your current directory to the /etc/sysconfig/network-scripts directory with the command:
    کد:
    cd /etc/sysconfig/network-scripts

    Check for existing network adapters with the command:

    کد:
    ls ifcfg-eth*

    and look for a file named similar to ifcfg-eth-id-12:3478:90:ab. The colon-delimited letters and digits at the end are the MAC address (hardware address) of the Ethernet adapter.

    Edit /etc/hosts and add a line for your new address and name such as:
    24.249.162.195 ezproxy.yourlib.org
    To create the new interface, you will edit ifcfg-eth-id-12:3478:90:ab. The file should contain lines similar to:

    کد:
    BOOTPROTO='static'
    BROADCAST='24.249.162.255'
    IPADDR='24.249.162.194'
    NETMASK='255.255.255.0'
    NETWORK='24.249.162.0'
    STARTMODE='onboot'
    USERCONTROL='no'
    _nm_name='bus-pci-0000:01:04.0'
    and will contain additional lines. At the bottom of this file, you should add lines similar to:

    کد:
    IPADDR1='24.249.162.195'
    NETMASK1='255.255.255.0'
    LABEL1='0'
    to add the extra address and then you should issue:

    کد:
    /etc/init.d/network restart
    to restart networking and activate the new IP address.

    Reconfigure EZproxy to use a specific IP address
    To tell EZproxy to use this name and address, edit config.txt/ezproxy.cfg and add lines similar to:

    Name ezproxy.yourlib.org
    Interface 24.249.162.195
    These lines should appear before any LoginPort, LoginPortSSL, or Title lines.

    Reconfigure Apache to use a specific IP address
    You will also need to configure your existing web server to tell it to use only its IP address. In Apache, you do this by editing httpd.conf and changing your Listen lines like:

    Listen 80
    to

    Listen 24.249.162.194:80

    where 24.249.162.194 would be replaced by the main IP address of your server.

    Ded24.com - Parnak LTD - Since 2009▌
    Email : sales[@]ded24.com▌
    Tell : 021 77246118 | 24x7 Support And Sales : 0912 197 8921▌
    ... ,ColoCrossing, Redstation, Gigepipe, HETZNER▌

  2. تعداد تشکر ها ازP-CO به دلیل پست مفید


  3. # ADS




     

  4. #2
    عضو انجمن P-CO آواتار ها
    تاریخ عضویت
    Mar 2009
    محل سکونت
    Tehran, Iran
    نوشته ها
    277
    تشکر تشکر کرده 
    460
    تشکر تشکر شده 
    1,642
    تشکر شده در
    1,202 پست

    پیش فرض پاسخ : اضافه کردن یک آی پی جدید به سرور

    باز هم اگر دوستان راه ساده تر و بهتری سراغ دارین، ما را در این تاپیک یاری فرمایند.

    ممنون.

    Ded24.com - Parnak LTD - Since 2009▌
    Email : sales[@]ded24.com▌
    Tell : 021 77246118 | 24x7 Support And Sales : 0912 197 8921▌
    ... ,ColoCrossing, Redstation, Gigepipe, HETZNER▌

  5. تعداد تشکر ها از P-CO به دلیل پست مفید


  6. #3
    عضو انجمن persian.developer آواتار ها
    تاریخ عضویت
    Oct 2008
    محل سکونت
    بوشهر
    نوشته ها
    910
    تشکر تشکر کرده 
    222
    تشکر تشکر شده 
    1,500
    تشکر شده در
    734 پست

    پیش فرض پاسخ : اضافه کردن یک آی پی جدید به سرور

    این کار فکر می کنم برای تغییر آی پی اصلی باشه نه برای اضافه کردن آی پی جدید
    درسته؟

  7. تعداد تشکر ها از persian.developer به دلیل پست مفید


  8. #4
    عضو انجمن P-CO آواتار ها
    تاریخ عضویت
    Mar 2009
    محل سکونت
    Tehran, Iran
    نوشته ها
    277
    تشکر تشکر کرده 
    460
    تشکر تشکر شده 
    1,642
    تشکر شده در
    1,202 پست

    پیش فرض پاسخ : اضافه کردن یک آی پی جدید به سرور

    درسته.

    ولی میشه به عنوان eth0:1 یدونه جدید ادد کرد دیگه...

    Ded24.com - Parnak LTD - Since 2009▌
    Email : sales[@]ded24.com▌
    Tell : 021 77246118 | 24x7 Support And Sales : 0912 197 8921▌
    ... ,ColoCrossing, Redstation, Gigepipe, HETZNER▌

  9. تعداد تشکر ها از P-CO به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 3
    آخرين نوشته: March 7th, 2015, 16:09
  2. پاسخ ها: 0
    آخرين نوشته: August 26th, 2013, 11:00
  3. پاسخ ها: 6
    آخرين نوشته: May 20th, 2013, 20:33
  4. پاسخ ها: 22
    آخرين نوشته: March 18th, 2013, 21:42
  5. پاسخ ها: 0
    آخرين نوشته: June 27th, 2012, 16:29

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •