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 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! 당신이 끝났어!
Filed under 밑에 Fedora 7 중절모 7 , Fedora Core 6 페도라 코어 6 , Headline News 헤드 라인 뉴스 , How To 하는 방법을 , Linux 리눅스 , Linux Migration 리눅스 마이 그 레이션 , Web 웹 , Web Hosting 웹 호스팅 , Web Services 웹 서비스 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |




November 14th, 2007 at 8:42 am 2007년 11월 14일에서 오전 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 2008년 4월 18일에서 오전 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. c. 나는 프로그래밍
Cheers, 환호,
Keith Moore 키스 무어
April 18th, 2008 at 11:19 am 2008년 4월 18일 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년 4월 21일에서 오전 10시 47분
Cool guide, but I need multi DNS (already know about the ip addresses tips) 차가운 안내서,하지만 난 다중이 필요 dns (이미 알고있는 주소에 대해서 팁)
thanks anyway 감사합니다 어쨌든