Most guide to adding multiple IP addresses on Linux starts with the Microsoft-like solution of using ifconfig. 대부분의 가이드를 리눅스에서 여러 개의 주소를 추가로 시작 ifconfig microsoft - 같은 솔루션을 사용합니다. 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. 리눅스 지원하는 여러 개의 ip 주소를 동일한 네트워크 인터페이스를합니다. 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. 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. 6합니다. Specify subnet mask (if in doubt use 255.255.255.0; better yet ask your system admin) 서브넷 마스크를 지정합니다 (만약 의심을 사용 255.255.255.0; 좋은 방법은 시스템 관리자에게 문의하십시오)
7. 7합니다. Specify your gateway, if you have one configured 지정하는 게이트웨이, 1 구성된 경우에는
8. 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 그들과 최소한의 넷마 스크를 선택하신 주소와 서브넷 마스크를 해당 주소로합니다.
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 네트 마스크 = 255.255.255.0
ONBOOT=yes onboot = 예

Restart the network: 네트워크를 다시 시작합니다 :
/sbin/service network restart / sbin / 서비스 네트워크를 다시 시작

You are done! 당신이 끝났어!