요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GPL-2.0
===========
IP-Aliasing
===========
IP-aliases are an obsolete way to manage multiple IP-addresses/masks
per interface. Newer tools such as iproute2 support multiple
address/prefixes per interface, but aliases are still supported
for backwards compatibility.
An alias is formed by adding a colon and a string when running ifconfig.
This string is usually numeric, but this is not a must.
Alias creation
==============
Alias creation is done by 'magic' interface naming: eg. to create a
200.1.1.1 alias for eth0 ...
::
# ifconfig eth0:0 200.1.1.1 etc,etc....
~~ -> request alias #0 creation (if not yet exists) for eth0
The corresponding route is also set up by this command. Please note:
The route always points to the base interface.
Alias deletion
==============
The alias is removed by shutting the alias down::
# ifconfig eth0:0 down
~~~~~~~~~~ -> will delete alias
Alias (re-)configuring
======================
Aliases are not real devices, but programs should be able to configure
and refer to them as usual (ifconfig, route, etc).
Relationship with main device
=============================
If the base device is shut down the added aliases will be deleted too.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
개요
1-14`.. SPDX-License-Identifier: GPL-2.0`
IP aliasing
IP alias는 interface 하나에서 여러 IP address와 mask를 관리하던 구식 방법입니다. `iproute2` 같은 최신 도구는 interface 하나에 여러 address·prefix를 지원하지만, alias도 하위 호환성을 위해 계속 지원합니다.
`ifconfig`를 실행할 때 interface 이름 뒤에 colon과 문자열을 붙여 alias를 만듭니다. 이 문자열은 보통 숫자이지만 반드시 숫자일 필요는 없습니다.
.. SPDX-License-Identifier: GPL-2.0
===========
IP-Aliasing
===========
IP-aliases are an obsolete way to manage multiple IP-addresses/masks
per interface. Newer tools such as iproute2 support multiple
address/prefixes per interface, but aliases are still supported
for backwards compatibility.
An alias is formed by adding a colon and a string when running ifconfig.
This string is usually numeric, but this is not a must.
Alias 생성
15-28Alias 생성
Alias는 특별한 interface 이름으로 만듭니다. 예를 들어 `eth0`에 address `200.1.1.1`을 사용하는 alias를 만들려면 다음 명령을 실행합니다.
# ifconfig eth0:0 200.1.1.1 etc,etc....
`eth0:0`의 `:0`은 `eth0`에 alias 번호 0이 아직 없다면 만들도록 요청합니다.
이 명령은 대응하는 route도 설정합니다. Route는 항상 base interface를 가리킨다는 점에 유의하십시오.
Alias creation
==============
Alias creation is done by 'magic' interface naming: eg. to create a
200.1.1.1 alias for eth0 ...
::
# ifconfig eth0:0 200.1.1.1 etc,etc....
~~ -> request alias #0 creation (if not yet exists) for eth0
The corresponding route is also set up by this command. Please note:
The route always points to the base interface.
Alias 삭제
29-37Alias 삭제
Alias를 down 상태로 만들어 제거합니다.
# ifconfig eth0:0 down
이 명령은 `eth0:0` alias를 삭제합니다.
Alias deletion
==============
The alias is removed by shutting the alias down::
# ifconfig eth0:0 down
~~~~~~~~~~ -> will delete alias
재구성과 base device 관계
38-49Alias 재구성
Alias는 실제 device가 아니지만 프로그램은 평소처럼 `ifconfig`, `route` 등으로 이를 구성하고 참조할 수 있어야 합니다.
Main device와의 관계
Base device를 down 상태로 만들면 추가된 alias도 함께 삭제됩니다.
Alias (re-)configuring
======================
Aliases are not real devices, but programs should be able to configure
and refer to them as usual (ifconfig, route, etc).
Relationship with main device
=============================
If the base device is shut down the added aliases will be deleted too.
요약·해설
alias.rst:1-49IP alias는 `eth0:0`처럼 base interface 이름에 suffix를 붙여 여러 주소를 관리하던 하위 호환 방식입니다. 오늘날에는 `iproute2`로 interface 하나에 여러 address·prefix를 직접 설정하는 방식이 일반적이며, alias 이름은 독립 device가 아닙니다.
생성과 삭제가 base interface에 종속됩니다.
프로그램 표기와 kernel 관계를 구분합니다.