[AIX 네트워크 관리 22] TCP/IP (16) 데몬과 inetd, 라우팅, 게이트웨이, routed·gated 구성

핵심 정리

  • SRC가 제어하는 데몬이 subsystem, subsystem이 제어하는 데몬이 subserver입니다. TCP/IP에서 다른 데몬을 제어하는 subsystem은 inetd뿐이며, /etc/inetd.conf를 고친 뒤 refresh -s inetd(또는 kill -1)로 알립니다.
  • 서비스는 /etc/services의 잘 알려진 포트로 식별합니다(01024는 시스템용). pty는 기본 BSD식 링크 16개이며 chdev -l pty0 -P -a num=X(064)로 바꿉니다.
  • 경로 종류: 호스트, 네트워크, 기본, 루프백(127.0.0.1), 브로드캐스트. 같은 목적지에 경로가 여럿이면 거리 메트릭이 가장 낮은 것, 같으면 가장 구체적인 것, 그것도 같으면 번갈아 씁니다.
  • 정적 라우팅은 route 명령으로, 동적 라우팅은 routed(RIP만)나 gated(RIP·RIPng·EGP·BGP·BGP4+·HELLO·OSPF·IS-IS·Router Discovery, SNMP)로 합니다. 게이트웨이가 아닌 호스트는 수동(quiet) 모드로 돌리고, routed와 gated를 함께 돌리지 않습니다.
  • 게이트웨이로 쓰려면 no -o ipforwarding=1(IPv6는 ip6forwarding=1, ndpd-router). 죽은 게이트웨이 감지는 수동(passive_dgd, dgd_packets_lost, dgd_retry_time)과 경로별 능동(route … -active_dgd, dgd_ping_time)이 있으며 routed·gated와 함께 쓰지 않습니다. 복제 경로(W 플래그)는 route_expire분 동안 쓰지 않으면 지워집니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 dgd_flush_cached_route가 더해짐)
원문 Networks and communication management — 5.3판 241254쪽, 6.1판 343356쪽
파일 /etc/inetd.conf, /etc/services, /etc/rc.tcpip, /etc/networks, /etc/gateways, /etc/gated.conf, /usr/samples/tcpip
관련 명령어 startsrc, stopsrc, refresh, route, netstat, no, ifconfig, chdev, routed, gated, ndpd-router, ndpd-host, autoconf6

데몬(서버라고도 함)은 백그라운드에서 계속 실행되며 다른 프로세스에 필요한 기능을 하는 프로세스입니다. TCP/IP는 운영 체제에서 특정 기능을 구현하는 데몬을 제공합니다.

이 데몬들은 (그것이 데몬 기능의 일부가 아니라면) 다른 프로세스를 방해하지 않고 실행되는 백그라운드 프로세스입니다.

데몬은 시스템 관리 수준의 명령, 다른 데몬, 셸 스크립트로 호출됩니다. inetd 데몬, rc.tcpip 셸 스크립트, SRC(System Resource Controller)로 데몬을 제어할 수도 있습니다.

영어 원문

TCP/IP daemons

Daemons (also known as servers) are processes that run continuously in the background and perform functions required by other processes. Transmission Control Protocol/Internet Protocol (TCP/IP) provides daemons for implementing certain functions in the operating system.

These daemons are background processes that run without interrupting other processes (unless that is part of the daemon function).

Daemons are invoked by commands at the system management level, by other daemons, or by shell scripts. You can also control daemons with the inetd daemon, the rc.tcpip shell script, and the System Resource Controller (SRC).

subsystem과 subserver

subsystem은 SRC가 제어하는 데몬(서버)입니다. subserver는 subsystem이 제어하는 데몬입니다. (데몬 명령과 데몬 이름은 보통 이름 끝에 d가 붙습니다.)

subsystem과 subserver 범주는 서로 배타적입니다. 곧 한 데몬이 subsystem이면서 subserver로 나열되지는 않습니다. 다른 데몬을 제어하는 TCP/IP subsystem은 inetd 데몬뿐입니다. 모든 TCP/IP subserver는 inetd의 subserver이기도 합니다.

TCP/IP 데몬 목록은 TCP/IP daemons 절을 봅니다.

영어 원문

Subsystems and subservers

A subsystem is a daemon, or server, that is controlled by the SRC. A subserver is a daemon that is controlled by a subsystem. (Daemon commands and daemon names are usually denoted by a d at the end of the name.)

The categories of subsystem and subserver are mutually exclusive. That is, daemons are not listed as both a subsystem and as a subserver. The only TCP/IP subsystem that controls other daemons is the inetd daemon. All TCP/IP subservers are also inetd subservers.

For a list of the TCP/IP daemons, see TCP/IP daemons.

SRC(System Resource Control)

SRC로는 여러 기능 가운데 데몬을 시작하고, 멈추고, 활동을 추적할 수 있습니다. 또 데몬을 subsystem과 subserver로 묶을 수 있습니다.

SRC는 데몬 제어를 돕도록 설계된 도구입니다. 각 데몬 명령에 있는 플래그와 매개변수를 넘어서는 제어를 할 수 있습니다.

SRC에 관한 자세한 정보는 Operating system and device management의 System Resource Controller를 봅니다.

SRC 명령 목록은 SRC commands를 봅니다.

영어 원문

System Resource Control

Among other functions, SRC allows you to start daemons, stop them, and trace their activity. In addition, SRC provides the ability to group daemons into subsystems and subservers.

System Resource Control is a tool designed to aid you in controlling daemons. SRC allows control beyond the flags and parameters available with each daemon command.

See the System Resource Controller in Operating system and device management for more information concerning the System Resource Controller.

For a list of the SRC commands, see SRC commands.

inetd 데몬 구성

TCP/IP inetd 데몬은 다음 단계로 구성합니다.

  1. inetd 데몬을 더해, 어떤 subserver를 호출할지 지정합니다.
  2. inetd 데몬의 재시작 특성을 바꿔 재시작 특성을 지정합니다.

표 77. inetd 데몬 구성 작업

작업 SMIT 빠른 경로 명령이나 파일 Web-based System Manager
inetd 데몬 시작 smit mkinetd startsrc -s inetd Software → Network → TCPIP (IPv4 and IPv6) → Subsystems. 비활성 subsystem을 오른쪽 클릭하고 Activate 선택
inetd 데몬의 재시작 특성 변경 smit chinetd 또는 smit lsinetd Software → Network → TCPIP (IPv4 and IPv6) → Subsystems → Selected → Properties
inetd 데몬 정지 smit rminetd stopsrc -s inetd Software → Network → TCPIP (IPv4 and IPv6) → Subsystems. 활성 subsystem을 오른쪽 클릭하고 Deactivate 선택
모든 inetd subserver 나열 smit inetdconf Software → Network → TCPIP (IPv4 and IPv6) → Subsystems
inetd subserver 추가(주 1) smit mkinetdconf /etc/inetd.conf를 고친 뒤 refresh -s inetd나 kill -1 inetdPID 실행(주 2) Software → Network → TCPIP (IPv4 and IPv6) → Subsystems → Subsystems(드롭다운) → New inetd Subserver
inetd subserver 특성 변경·보기 smit inetdconf /etc/inetd.conf를 고친 뒤 refresh -s inetd나 kill -1 inetdPID 실행(주 2) Software → Network → TCPIP (IPv4 and IPv6) → Subsystems → Selected → Properties
inetd subserver 제거 smit rminetd /etc/inetd.conf를 고친 뒤 refresh -s inetd나 kill -1 inetdPID 실행(주 2) Software → Network → TCPIP (IPv4 and IPv6) → Subsystems → Selected → Deactivate

주:

  1. inetd subserver를 더하면 필요할 때 그 subserver를 호출하도록 inetd 데몬이 구성됩니다.
  2. refresh와 kill 명령 모두 inetd 데몬에 구성 파일이 바뀌었음을 알립니다.
영어 원문

Configuring the inetd daemon

Use these steps to configure the TCP/IP inetd daemon.

To configure the inetd daemon:

  1. Specify which subservers it will be invoked by adding an inetd daemon.

  2. Specify the restart characteristics by changing the restart characteristics of the inetd daemon.

Table 77. Configuring the inetd daemon tasks

Task SMIT fast path Command or file
Web-based System Manager Management Environment
Starting the inetd Daemon smit mkinetd startsrc -s inetd Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems. Right-click on an inactive subsystem, and select Activate.
Changing Restart
Characteristics of the inetd
Daemon smit chinetd or smit lsinetd Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems —> Selected —> Properties.
Stopping the inetd Daemon smit rminetd stopsrc -s inetd Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems. Right-click on an active subsystem, and select —> Deactivate.
Listing All inetd Subservers smit inetdconf Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems.
Adding an inetd Subserver1 smit mkinetdconf edit /etc/inetd.conf then run refresh -s inetd or kill -1 inetdPID2 Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems —> Subsystems (drop-down menu) —> New inetd Subserver.
Change/Show Characteristics
of an inetd Subserver smit inetdconf edit /etc/inetd.conf then run refresh -s inetd or kill -1 inetdPID2 Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems —> Selected —> Properties.
Removing an inetd Subserver smit rminetd edit /etc/inetd.conf then run refresh -s inetd or kill -1 inetdPID2 Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems —> Selected —> Deactivate.

Note

  1. Adding an inetd subserver configures the inetd daemon so that it invokes the subserver when it is needed.

  2. Both the refresh and the kill commands inform the inetd daemon of changes to its configuration file.

클라이언트 네트워크 서비스

클라이언트 네트워크 서비스(Web-based System Manager wsm이나 SMIT 빠른 경로 smit clientnet으로 접근)는 이 운영 체제에서 쓸 수 있는 TCP/IP 프로토콜을 가리킵니다.

각 프로토콜(서비스)은 네트워크에서 쓰는 포트 번호로 알려지며, 그래서 잘 알려진 포트(well-known port)라는 말이 나왔습니다. 프로그래머의 편의를 위해 포트 번호는 숫자뿐 아니라 이름으로도 가리킬 수 있습니다. 예를 들어 TCP/IP 메일 프로토콜은 포트 25를 쓰며 smtp라는 이름으로 알려져 있습니다. 프로토콜이 /etc/services 파일에 (주석 처리되지 않고) 나열되어 있으면 호스트가 그 프로토콜을 쓸 수 있습니다.

기본으로 모든 TCP/IP 프로토콜이 /etc/services 파일에 정의되어 있습니다. 이 파일을 구성할 필요는 없습니다. 클라이언트/서버 프로그램을 직접 작성한다면 서비스를 /etc/services 파일에 더해 서비스용 포트 번호와 이름을 예약하고 싶을 수 있습니다. 서비스를 /etc/services에 더하기로 했다면 포트 번호 0~1024는 시스템용으로 예약되어 있음에 유의합니다.

표 78. 클라이언트 네트워크 서비스 작업

작업 SMIT 빠른 경로 명령이나 파일 Web-based System Manager
모든 서비스 나열 smit lsservices /etc/services 보기 Software → Network → TCPIP (IPv4 and IPv6) → Services
서비스 추가 smit mkservices /etc/services 편집 Software → Network → TCPIP (IPv4 and IPv6) → Services → New Service
서비스 특성 변경·보기 smit chservices /etc/services 편집 Software → Network → TCPIP (IPv4 and IPv6) → Services. 서비스를 고르고 Selected → Properties
서비스 제거 smit rmservices /etc/services 편집 Software → Network → TCPIP (IPv4 and IPv6) → Services. 서비스를 고르고 Selected → Delete
영어 원문

Client network services

Client Network Services (accessible using the Web-based System Manager wsm, or the SMIT fast path, smit clientnet) refers to the TCP/IP protocols available for use by this operating system.

Each protocol (or service) is known by the port number that it uses on the network, hence the term well-known port. As a convenience to programmers, the port numbers can be referred to by names as well as numbers. For example, the TCP/IP mail protocol uses port 25 and is known by the name smtp. If a protocol is listed (uncommented) in the /etc/services file, then a host can use that protocol.

By default, all the TCP/IP protocols are defined in the /etc/services file. You do not have to configure this file. If you write your own client/server programs, you might want to add your service to the

/etc/services file, and reserve a specific port number and name for your service. If you do decide to add your service to /etc/services, note that port numbers 0 through 1024 are reserved for system use.

Table 78. Client network services tasks

Task SMIT fast path Command or file
Web-based System Manager Management Environment
Listing All Services smit lsservices view /etc/services Software —> Network —> TCPIP (IPv4 and IPv6) —> Services.
Adding a Service smit mkservices edit /etc/services Software —> Network —> TCPIP (IPv4 and IPv6) —> Services —> New Service.
Change/Show Characteristics
of a Service smit chservices edit /etc/services Software —> Network —> TCPIP (IPv4 and IPv6) —> Services. Select a service, then click Selected —> Properties.
Removing a Service smit rmservices edit /etc/services Software —> Network —> TCPIP (IPv4 and IPv6) —> Services. Select a service, then click Selected —> Delete.

서버 네트워크 서비스

서버 네트워크 서비스에는 표에 나온 것처럼 원격 접근 제어, TCP/IP 시작과 정지, pty 장치 드라이버 관리가 있습니다.

pty 장치 드라이버는 시스템과 함께 자동으로 설치됩니다. 기본으로 BSD식 심볼릭 링크 16개를 지원하도록 구성되며 부팅 때 시스템이 쓸 수 있습니다.

표 79. 서버 네트워크 서비스 작업

작업 SMIT 빠른 경로 명령이나 파일 Web-based System Manager
원격 접근 제어 Security의 "Remote Command Execution Access"와 "Restricted File Transfer Program Users" 참고 같은 곳 참고 Software → Network → TCPIP (IPv4 and IPv6) → Access Control. Remote Access를 오른쪽 클릭하고 Properties 선택
TCP/IP subsystem 시작·재시작·정지 smit otherserv System Resource Control 절 참고 Software → Network → TCPIP (IPv4 and IPv6) → Subsystems. subsystem을 오른쪽 클릭하고 Properties 선택
pty 장치 드라이버 특성 변경·보기 smit chgpty chdev -l pty0 -P -a num=X(X는 0~64) 없음
pty 장치 드라이버를 쓸 수 없게 하기 smit pty 뒤 Remove the PTY; Keep Definition 선택 없음 없음
pty 장치 드라이버를 쓸 수 있게 하기 smit pty 뒤 Configure the Defined PTY 선택 없음 없음
오류 보고서 만들기 smit errpt 없음 없음
pty 추적 smit trace 없음 없음
영어 원문

Server network services

Server network services include controlling remote access, starting or stopping TCP/IP, and managing the pty device driver, as shown in this table.

The pty device driver is installed automatically with the system. By default, it is configured to support 16 BSD-style symbolic links, and it is available for use by the system at boot time.

Table 79. Server network services tasks

Task SMIT fast path Command or file
Web-based System Manager Management Environment
Controlling remote access See "Remote Command Execution Access" and "Restricted File Transfer Program Users" in Security. See "Remote Command Execution Access" and "Restricted File Transfer Program Users" in Security. Software —> Network —> TCPIP (IPv4 and IPv6) —> Access Control. Right-click on Remote Access and select Properties.
Start, restart, or stop TCP/IP
subsystems smit otherserv See “System Resource Control” on page 343. Software —> Network —> TCPIP (IPv4 and IPv6) —> Subsystems. Right-click on a subsystem, and select Properties.
Change/show characteristics of
the pty device driver smit chgpty chdev -l pty0 -P -a num=X where X ranges from 0 to 64 Not available in Web-based System Manager.
Make the pty device driver
unavailable for use smit pty then select Remove the PTY; Keep Definition No related command or file. Not available in Web-based System Manager.
Make the pty device driver
available for use smit pty then select Configure the Defined PTY No related command or file. Not available in Web-based System Manager.
Generate an error report smit errpt No related command or file. Not available in Web-based System Manager.
Trace the pty smit trace No related command or file. Not available in Web-based System Manager.

TCP/IP 라우팅

경로(route)는 인터넷 네트워크를 거쳐 다른 네트워크의 주소로 패킷을 보내는 경로를 정의합니다.

경로는 전체 경로를 정의하지 않고, 한 호스트에서 목적지로 패킷을 전달할 수 있는 게이트웨이까지의(또는 게이트웨이에서 다른 게이트웨이까지의) 경로 구간만 정의합니다. 경로에는 다섯 가지 종류가 있습니다.

  • 호스트 경로: 다른 네트워크의 특정 호스트로 패킷을 전달할 수 있는 게이트웨이를 정의합니다.
  • 네트워크 경로: 특정 네트워크의 어느 호스트로든 패킷을 전달할 수 있는 게이트웨이를 정의합니다.
  • 기본 경로: 목적지로 가는 호스트 경로나 네트워크 경로가 따로 정의되어 있지 않을 때 쓸 게이트웨이를 정의합니다.
  • 루프백 경로: 로컬 네트워크 주소로 보내는 모든 패킷의 기본 경로. 루프백 경로 IP는 언제나 127.0.0.1입니다.
  • 브로드캐스트 경로: 모든 브로드캐스트 패킷의 기본 경로. 네트워크에 IP가 있는 각 서브넷마다 브로드캐스트 경로 두 개(서브넷 주소로 하나, 서브넷의 브로드캐스트 주소로 하나)가 자동으로 할당됩니다.

경로는 커널 라우팅 테이블에 정의됩니다. 경로 정의에는 로컬 호스트에서 닿을 수 있는 네트워크와, 원격 네트워크에 닿는 데 쓸 수 있는 게이트웨이의 정보가 들어 있습니다. 게이트웨이는 데이터그램을 받으면 라우팅 테이블을 확인해 목적지까지의 경로에서 다음에 어디로 보낼지 찾습니다.

커널 라우팅 테이블에는 같은 목적지로 가는 경로를 여럿 더할 수 있습니다. 라우팅 조회는 요청에 맞는 경로를 모두 평가한 뒤 거리 메트릭이 가장 낮은 경로를 고릅니다. 맞는 경로 여럿의 거리가 같으면 가장 구체적인 경로를 고릅니다. 두 기준이 모두 같은 경로가 여럿이면 라우팅 조회는 맞는 경로를 번갈아 고릅니다.

영어 원문

TCP/IP routing

A route defines a path for sending packets through the Internet network to an address on another network.

A route does not define the complete path, only the path segment from one host to a gateway that can forward packets to a destination (or from one gateway to another). There are five types of routes:

  • host route — Defines a gateway that can forward packets to a specific host on another network.
  • network route — Defines a gateway that can forward packets to any of the hosts on a specific network.
  • default route — Defines a gateway to use when a host or network route to a destination is not otherwise defined.
  • loopback route — Default route for all packets sent to local network addresses. The loopback route IP is always 127.0.0.1.
  • broadcast route — Default route for all broadcast packets. Two broadcast routes are automatically assigned to each subnet on which the network has an IP (one to the subnet address and one to the broadcast address of the subnet).

Routes are defined in the kernel routing table. The route definitions include information on networks reachable from the local host and on gateways that can be used to reach remote networks. When a gateway receives a datagram, it checks the routing tables to find out where next to send the datagram along the path to its destination.

You can add multiple routes for the same destination in the kernel routing table. A routing lookup evaluates all routes that match the request then chooses the route with the lowest distance metric. If multiple matching routes have equal distance, a lookup chooses the most specific route. If both criteria are equal for multiple routes, routing lookups alternate choices of matching routes.

정적 라우팅과 동적 라우팅

TCP/IP에서 라우팅은 정적과 동적 두 종류 가운데 하나입니다.

정적 라우팅에서는 route 명령으로 라우팅 테이블을 직접 관리합니다. 정적 라우팅은 네트워크 하나가 다른 네트워크 한두 개와 통신할 때 실용적입니다. 그러나 네트워크가 더 많은 네트워크와 통신하기 시작하면 게이트웨이 수가 늘고, 라우팅 테이블을 직접 관리하는 데 드는 시간과 노력도 늡니다.

동적 라우팅에서는 데몬이 라우팅 테이블을 자동으로 갱신합니다. 라우팅 데몬은 다른 라우팅 데몬이 브로드캐스트하는 정보를 계속 받아 라우팅 테이블을 계속 갱신합니다.

TCP/IP는 동적 라우팅에 쓸 데몬으로 routed와 gated 두 가지를 제공합니다. gated 데몬은 RIP(Routing Information Protocol), RIPng(RIP Next Generation), EGP(Exterior Gateway Protocol), BGP(Border Gateway Protocol)와 BGP4+, HELLO(Defense Communications Network Local-Network Protocol), OSPF(Open Shortest Path First), IS-IS(Intermediate System to Intermediate System), ICMP와 ICMPv6 Router Discovery 라우팅 프로토콜을 동시에 지원합니다. 또 gated 데몬은 SNMP(Simple Network Management Protocol)를 지원합니다. routed 데몬은 RIP만 지원합니다.

라우팅 데몬은 시작할 때 쓰는 옵션에 따라 수동(passive)과 능동(active) 두 모드 가운데 하나로 동작합니다. 능동 모드에서 라우팅 데몬은 로컬 네트워크의 라우팅 정보를 게이트웨이와 호스트에 주기적으로 브로드캐스트하고, 호스트와 게이트웨이에서 라우팅 정보를 받기도 합니다. 수동 모드에서 라우팅 데몬은 호스트와 게이트웨이에서 라우팅 정보를 받지만 원격 게이트웨이를 갱신하려 하지 않습니다(자기 라우팅 정보를 광고하지 않습니다).

이 두 종류의 라우팅은 게이트웨이뿐 아니라 네트워크의 다른 호스트에도 쓸 수 있습니다. 정적 라우팅은 게이트웨이와 다른 호스트에서 똑같이 동작합니다. 그러나 동적 라우팅 데몬은 게이트웨이가 아닌 호스트에서 실행할 때 반드시 수동(quiet) 모드로 실행해야 합니다.

영어 원문

Static and dynamic routing

In TCP/IP, routing can be one of two types: static or dynamic.

With static routing, you maintain the routing table manually using the route command. Static routing is practical for a single network communicating with one or two other networks. However, as your network begins to communicate with more networks, the number of gateways increases, and so does the amount of time and effort required to maintain the routing table manually.

With dynamic routing, daemons update the routing table automatically. Routing daemons continuously receive information broadcast by other routing daemons, and so continuously update the routing table.

TCP/IP provides two daemons for use in dynamic routing, the routed and gated daemons. The gated daemon supports Routing Information Protocol (RIP), Routing Information Protocol Next Generation (RIPng), Exterior Gateway Protocol (EGP), Border Gateway Protocol (BGP) and BGP4+, Defense Communications Network Local-Network Protocol (HELLO), Open Shortest Path First (OSPF), Intermediate System to Intermediate System (IS-IS), and Internet Control Message Protocol (ICMP and ICMPv6)/Router Discovery routing protocols simultaneously. In addition, the gated daemon supports the Simple Network Management Protocol (SNMP). The routed daemon only supports Routing Information Protocol.

Routing daemons can operate in one of two modes, passive or active, depending upon the options you use when starting the daemons. In active mode, routing daemons both broadcast routing information periodically about their local network to gateways and hosts, and receive routing information from hosts and gateways. In passive mode, routing daemons receive routing information from hosts and gateways, but do not attempt to keep remote gateways updated (they do not advertise their own routing information).

These two types of routing can be used not only for gateways, but for other hosts on a network as well. Static routing works the same for gateways as for other hosts. Dynamic routing daemons, however, must be run in the passive (quiet) mode when run on a host that is not a gateway.

TCP/IP 라우팅 게이트웨이

게이트웨이는 라우터의 한 종류입니다. 라우터는 둘 이상의 네트워크를 잇고 라우팅 기능을 합니다. 예를 들어 어떤 라우터는 네트워크 인터페이스 수준이나 물리 수준에서 라우팅합니다. 그러나 게이트웨이는 네트워크 수준에서 라우팅합니다.

게이트웨이는 다른 게이트웨이나 호스트에서 로컬 네트워크의 호스트로 전달할 IP 데이터그램을 받고, 한 네트워크에서 다른 네트워크로 IP 데이터그램을 라우팅합니다. 예를 들어 Token-Ring 네트워크 두 개를 잇는 게이트웨이에는 Token-Ring 어댑터 카드가 두 장 있고, 각각 자기 Token-Ring 네트워크 인터페이스가 있습니다. 정보를 넘기려고 게이트웨이는 한 네트워크 인터페이스로 데이터그램을 받아 다른 네트워크 인터페이스로 내보냅니다. 게이트웨이는 인터페이스 상태 메시지로 네트워크 연결을 주기적으로 확인합니다.

게이트웨이는 목적지 호스트가 아니라 목적지 네트워크에 따라 패킷을 라우팅합니다. 곧 게이트웨이 기계는 패킷이 갈 수 있는 모든 호스트 목적지를 추적할 필요가 없습니다. 대신 목적지 호스트의 네트워크에 따라 패킷을 라우팅합니다. 그러면 목적지 네트워크가 패킷을 목적지 호스트로 보내는 일을 맡습니다. 그래서 보통의 게이트웨이 기계는 (필요하다면) 제한된 디스크 저장 용량과 제한된 주 메모리 용량만 있으면 됩니다.

메시지가 출발 호스트에서 목적지 호스트까지 이동해야 하는 거리는 거쳐야 하는 게이트웨이 홉 수에 따라 다릅니다. 게이트웨이는 직접 붙은 네트워크에서 0홉, 게이트웨이 하나를 거쳐 닿는 네트워크에서 1홉 하는 식으로 떨어져 있습니다. 메시지 거리는 보통 필요한 게이트웨이 홉 수, 곧 홉 카운트(메트릭이라고도 함)로 나타냅니다.

내부와 외부 라우팅 게이트웨이

내부 게이트웨이는 같은 자율 시스템에 속한 게이트웨이입니다. 이들은 RIP, RIPng, IS-IS 프로토콜, OSPF 프로토콜, HELLO 프로토콜로 서로 통신합니다. 외부 게이트웨이는 서로 다른 자율 시스템에 속합니다. 이들은 EGP, BGP, BGP4+를 씁니다.

예를 들어 자율 시스템 두 개를 생각해 봅니다. 첫째는 Widget Company가 관리하는 모든 네트워크입니다. 둘째는 Gadget Company가 관리하는 모든 네트워크입니다. Widget Company에는 인터넷으로 가는 Widget의 게이트웨이인 apple이라는 기계가 하나 있습니다. Gadget Company에는 인터넷으로 가는 Gadget의 게이트웨이인 orange라는 기계가 하나 있습니다. 두 회사 모두 회사 안에 서로 다른 네트워크가 여럿 있습니다. 내부 네트워크를 잇는 게이트웨이는 내부 게이트웨이입니다. 그러나 apple과 orange는 외부 게이트웨이입니다.

각 외부 게이트웨이가 다른 모든 외부 게이트웨이와 통신하지는 않습니다. 대신 외부 게이트웨이는 통신할 이웃(다른 외부 게이트웨이) 묶음을 얻습니다. 이 이웃은 지리적 가까움이 아니라 서로 맺은 통신으로 정해집니다. 이웃 게이트웨이에도 다시 다른 외부 게이트웨이 이웃이 있습니다. 이런 식으로 외부 게이트웨이 라우팅 테이블이 갱신되고 라우팅 정보가 외부 게이트웨이 사이로 퍼집니다.

라우팅 정보는 (N,D) 쌍으로 보내며, N은 네트워크이고 D는 그 네트워크에 닿는 비용을 나타내는 거리입니다. 각 게이트웨이는 닿을 수 있는 네트워크와 그 비용을 광고합니다. 받는 게이트웨이는 다른 네트워크까지의 최단 경로를 계산해 그 정보를 이웃에 넘깁니다. 그래서 각 외부 게이트웨이는 라우팅 정보를 계속 받아 라우팅 테이블을 갱신하고, 그 정보를 외부 이웃에 넘깁니다.

게이트웨이 프로토콜

내부든 외부든 모든 게이트웨이는 프로토콜로 서로 통신합니다. 많이 쓰는 TCP/IP 게이트웨이 프로토콜을 간단히 설명합니다.

  • HELLO 프로토콜(HELLO): 내부 게이트웨이가 서로 통신하는 데 쓰는 프로토콜 하나입니다. 지연 시간이 가장 적은 경로를 찾아 다른 네트워크까지의 최단 경로를 계산합니다.
  • RIP(Routing Information Protocol): 내부 게이트웨이가 서로 통신하는 데 쓰는 프로토콜입니다. HELLO처럼 다른 네트워크까지의 최단 경로를 계산합니다. HELLO와 달리 거리를 지연 시간이 아니라 홉 카운트로 추정합니다. gated 데몬은 모든 메트릭을 내부적으로 지연 시간으로 저장하므로 RIP 홉 카운트를 지연 시간으로 바꿉니다.
  • RIPng(Routing Information Protocol Next Generation): IPv6를 지원하도록 강화한 RIP 프로토콜입니다.
  • OSPF(Open Shortest Path First): 내부 게이트웨이가 서로 통신하는 데 쓰는 프로토콜입니다. 라우터가 많은 복잡한 네트워크에 RIP보다 알맞은 링크 상태 프로토콜입니다. 같은 비용의 다중 경로 라우팅을 제공합니다.
  • EGP(Exterior Gateway Protocol): 외부 게이트웨이가 서로 통신하는 데 쓸 수 있습니다. 다른 네트워크까지의 최단 경로를 계산하지 않습니다. 대신 특정 네트워크에 닿을 수 있는지 없는지만 알립니다.
  • BGP(Border Gateway Protocol): 외부 게이트웨이가 서로 통신하는 데 쓸 수 있습니다. 자율 시스템 사이에 도달 가능성 정보를 교환하지만 EGP보다 기능이 많습니다. 경로 속성으로 각 경로에 관한 정보를 더 주어 가장 좋은 경로를 고르는 데 돕습니다.
  • BGP4+: IPv6를 지원하고 이전 버전보다 여러 개선이 있는 BGP 버전 4입니다.
  • IS-IS(Intermediate System to Intermediate System): 내부 게이트웨이가 서로 통신하는 데 씁니다. IP와 ISO/CLNP 패킷을 라우팅할 수 있는 링크 상태 프로토콜이며, OSPF처럼 "shorter path first" 알고리즘으로 경로를 정합니다.
영어 원문

TCP/IP routing gateways

Gateways are a type of router. Routers connect two or more networks and provide the routing function. Some routers, for example, route at the network interface level or at the physical level. Gateways, however, route at the network level.

Gateways receive IP datagrams from other gateways or hosts for delivery to hosts on the local network, and route IP datagrams from one network to another. For example, a gateway connecting two Token-Ring networks has two Token-Ring adapter cards, each with its own Token-Ring network interface. To pass on information, the gateway receives datagrams through one network interface and sends them out through the other network interface. Gateways periodically verify their network connections through interface status messages.

Gateways route packets according to the destination network, not according to the destination host. That is, a gateway machine is not required to keep track of every possible host destination for a packet. Instead, a gateway routes packets according to the network of the destination host. The destination network then takes care of sending the packet to the destination host. Thus, a typical gateway machine requires only limited disk storage capacity (if any) and limited main memory capacity.

The distance a message must travel from originating host to destination host depends upon the number of gateway hops it must make. A gateway is zero hops from a network to which it is directly attached, one hop from a network that is reachable through one gateway, and so on. Message distance is usually expressed in the number of gateway hops required, or hop counts (also called the metric).

Interior and exterior routing gateways

Interior gateways are gateways that belong to the same autonomous system. They communicate with each other using the Routing Information Protocol (RIP), Routing Information Protocol Next Generation (RIPng), Intermediate System to Intermediate System protocol, Open Shortest Path First (OSPF) protocol, or the HELLO Protocol (HELLO). Exterior gateways belong to different autonomous systems. They use the Exterior Gateway Protocol (EGP), the Border Gateway Protocol (BGP), or BGP4+.

For example, consider two autonomous systems. The first is all the networks administered by the Widget Company. The second is all the networks administered by the Gadget Company. The Widget Company has one machine, called apple, which is Widget's gateway to the Internet. The Gadget Company has one machine, called orange, which is Gadget's gateway to the Internet. Both companies have several different networks internal to the companies. The gateways connecting the internal networks are interior gateways. But apple and orange are exterior gateways.

Each exterior gateway does not communicate with every other exterior gateway. Instead, the exterior gateway acquires a set of neighbors (other exterior gateways) with which it communicates. These neighbors are not defined by geographic proximity, but rather by their established communications with each other. The neighboring gateways, in turn, have other exterior gateway neighbors. In this way, the exterior gateway routing tables are updated and routing information is propagated among the exterior gateways.

The routing information is sent in a pair, (N,D), where N is a network and D is a distance reflecting the cost of reaching the specified network. Each gateway advertises the networks it can reach and the costs of reaching them. The receiving gateway calculates the shortest paths to other networks and passes this information along to its neighbors. Thus, each exterior gateway is continually receiving routing information, updating its routing table and then passing that information to its exterior neighbors.

Gateway protocols

All gateways, whether interior or exterior, use protocols to communicate with each other. Here are brief descriptions of the more commonly used TCP/IP gateway protocols:

HELLO Protocol (HELLO)

HELLO is one protocol that the interior gateways use to communicate among themselves. HELLO calculates the shortest path to other networks by determining the path that has the least delay time.

Routing Information Protocol (RIP)

Routing Information Protocol is a protocol that the interior gateways use to communicate among themselves. Like the HELLO Protocol, RIP calculates the shortest path to other networks. Unlike HELLO, RIP estimates distance not by delay time, but by hop counts. Because the gated daemon stores all metrics internally as time delays, it converts RIP hop counts into time delays.

Routing Information Protocol Next Generation

RIPng is the RIP protocol that is enhanced to support IPv6.

Open Shortest Path First (OSPF)

OPSF is a protocol that the interior gateways use to communicate among themselves. It is a link-state protocol that is better suited than RIP for complex networks with many routers. It provides equal cost multipath routing.

Exterior Gateway Protocol (EGP)

The exterior gateways can use the Exterior Gateway Protocol to communicate among themselves. The EGP does not calculate the shortest path to other networks. Instead, it merely indicates whether a particular network is reachable or not.

Border Gateway Protocol (BGP)

The exterior gateways can use this protocol to communicate among themselves. It exchanges reachability information between autonomous systems, but provides more capabilities than EGP. BGP uses path attributes to provide more information about each route as an aid in selecting the best route.

Border Gateway Protocol 4+

BGP4+ is the BGP protocol version 4, which supports IPv6 and has other enhancements over past versions of the protocol.

Intermediate System to Intermediate System (IS-IS)

Interior gateways use IS-IS protocol to communicate among themselves. It is a link-state protocol that can route IP and ISO/CLNP packets and, like OSPF, uses a "shorter path first" algorithm to determine routes.

게이트웨이 고려 사항

게이트웨이를 구성하기 전에 할 일입니다.

네트워크의 게이트웨이를 구성하기 전에 먼저 다음을 해야 합니다.

  1. 쓸 게이트웨이 수를 생각합니다. 구성해야 할 게이트웨이 수는 다음에 따라 다릅니다.

    • 잇고 싶은 네트워크 수
    • 네트워크를 잇는 방법
    • 이어진 네트워크의 활동 수준. 예를 들어 Network 1, Network 2, Network 3의 사용자가 모두 서로 통신해야 한다고 해 봅니다.

    (그림) 네트워크 구름 세 개에 1, 2, 3 번호가 붙어 있습니다. 네트워크 1과 2는 게이트웨이 A로, 네트워크 2와 3은 게이트웨이 B로 이어져 있습니다.

text
[Network 1] --- (Gateway A) --- [Network 2] --- (Gateway B) --- [Network 3]

Network 1을 Network 2에 직접 이으려면 게이트웨이 하나(Gateway A)를 씁니다. Network 2를 Network 3에 직접 이으려면 다른 게이트웨이(Gateway B)를 씁니다. 이제 알맞은 경로가 정의되어 있다면 세 네트워크의 모든 사용자가 통신할 수 있습니다. 그러나 Network 2가 아주 바쁘면 Network 1과 Network 3 사이의 통신이 받아들일 수 없을 만큼 늦어질 수 있습니다. 또 네트워크 사이 통신 대부분이 Network 1과 Network 3 사이에서 일어난다면 Network 1을 Network 3에 직접 잇고 싶을 수 있습니다. 그러려면 게이트웨이 한 쌍, 곧 Gateway C(Network 1에)와 Gateway D(Network 3에)를 더하고 이 두 게이트웨이를 직접 이을 수 있습니다. 그러나 게이트웨이 하나가 둘보다 많은 네트워크를 이을 수 있으므로 이는 비효율적일 수 있습니다. 더 효율적인 방법은 Gateway A를 Network 2뿐 아니라 Gateway B에도 직접 잇는 것입니다. 그러려면 Gateway A와 Gateway B 모두에 두 번째 네트워크 어댑터가 필요합니다. 대체로 게이트웨이 하나로 이을 수 있는 네트워크 수는 게이트웨이 기계가 지원할 수 있는 네트워크 어댑터 카드 수로 제한됩니다. 2. 쓸 라우팅 종류를 정합니다. 네트워크가 작고 구성이 거의 바뀌지 않으면 정적 라우팅을 쓰는 것이 좋습니다. 그러나 구성이 자주 바뀌는 큰 네트워크라면 동적 라우팅을 쓰는 것이 좋습니다. 정적과 동적 라우팅을 섞어 쓰기로 할 수도 있습니다. 곧 특정 경로 몇 개는 정적으로 정의하고 다른 경로는 데몬이 갱신하게 둘 수 있습니다. 직접 만든 정적 경로는 다른 게이트웨이에 광고되지 않으며 라우팅 데몬이 갱신하지도 않습니다. 3. 동적 라우팅을 쓴다면 필요한 게이트웨이 종류와 게이트웨이가 지원해야 할 프로토콜에 따라 라우팅 데몬을 고릅니다. 게이트웨이가 내부 게이트웨이이고 RIP만 지원하면 되면 routed 데몬을 고릅니다. 다른 프로토콜을 지원해야 하거나 외부 게이트웨이라면 gated 데몬을 고릅니다.

참고: gated와 routed 데몬을 한 호스트에서 동시에 실행하면 예측할 수 없는 결과가 생길 수 있습니다.

영어 원문

Gateway considerations

Take these actions before configuring your gateway.

Before you configure the gateways for your network, you must first do the following:

  1. Consider the number of gateways to use. The number of gateways you need to configure will depend upon:
  • The number of networks you want to connect.

  • How you want to connect the networks.

  • The level of activity on the connected networks. For example, suppose users on Network 1, Network 2, and Network 3 all need to communicate with each other.

This illustration contains three network clouds numbered one, two, and three. Networks one and two are connected with gateway A. Networks two and three are connected with gateway B. To connect Network 1 directly to Network 2, you would use a single gateway (Gateway A). To connect Network 2 directly to Network 3, you would use another gateway (Gateway B). Now, assuming the proper routes are defined, all the users on all three networks can communicate. However, if Network 2 is very busy, communication between Network 1 and Network 3 might suffer unacceptable delays. Furthermore, if most of the inter-network communication occurs between Network 1 and Network 3, you might want to connect Network 1 directly to Network 3. To do this, you could use an additional pair of gateways, Gateway C (on Network 1) and Gateway D (on Network 3), with a direct connection between these two additional gateways. This may be an inefficient solution, however, because one gateway can connect more than two networks. A more efficient solution would be to connect Gateway A to Gateway B directly, as well as to Network 2. This would require a second network adapter in both Gateway A and Gateway B. In general, the number of networks you connect through a single gateway is limited by the number of network adapter cards the gateway machine can support.

  1. Decide on the type of routing to use. If your network is small, and its configuration rarely changes, you probably want to use static routing. But if you have a large network whose configuration changes frequently, you probably want to use dynamic routing. You might decide to use a combination of static and dynamic routing. That is, you might want to give static definitions to a few specific routes, while allowing other routes to be updated by the daemons. The static routes you create are not advertised to other gateways and are not updated by the routing daemons.

  2. If you are using dynamic routing, choose the routing daemon according to the type of gateway you need and the protocols your gateway must support. If the gateway is an interior gateway, and only needs to support RIP, choose the routed daemon. If the gateway must support any other protocol, or is an exterior gateway, choose the gated daemon.

Note: Unpredictable results can occur if the gated and routed daemons run on the same host at the same time.

게이트웨이 구성

기계가 게이트웨이로 동작하도록 구성하려면 다음 지시를 따릅니다.

분명하게 하려고, 이 절차는 게이트웨이 기계가 네트워크 두 개를 잇고 그 가운데 한 네트워크에서 이미 최소한으로 구성되어 있다고 가정합니다.

  1. 아직 하지 않았다면 두 번째 네트워크 어댑터를 설치하고 구성합니다(Installing a network adapter와 Adapter management and configuration 참고).
  2. 두 번째 네트워크 인터페이스의 IP 주소를 고른 뒤 Network interface management의 지시에 따라 네트워크 인터페이스를 구성합니다.
  3. 두 번째 네트워크로 가는 경로를 더합니다.
  4. TCP/IP 네트워크 사이의 라우터로 기계를 쓰려면 다음을 입력합니다.
text
no -o ipforwarding=1

이제 게이트웨이 기계는 직접 붙은 두 네트워크 모두에 접근할 수 있습니다.

그림 26. 간단한 게이트웨이 구성

text
[네트워크 A] --- (게이트웨이: 어댑터 두 장) --- [네트워크 B]
  1. 이 두 네트워크 너머의 호스트나 네트워크와 정적 라우팅으로 통신하려면 원하는 다른 경로를 더합니다.
  2. 동적 라우팅을 쓰려면 routed 데몬 구성이나 gated 데몬 구성의 지시를 따릅니다. 인터네트워크가 인터넷에 합류한다면 자율 시스템 번호 절의 지시도 따라야 합니다.

표 80. 게이트웨이 구성 작업

작업 SMIT 빠른 경로 명령이나 파일 Web-based System Manager
라우팅 테이블 표시 smit lsroute netstat -rn(주 1) Software → Network → TCPIP (IPv4 and IPv6) → TCPIP Protocol Configuration → TCP/IP → Configure TCP/IP → Advanced Methods → Static Routes → Statistics
정적 경로 추가 smit mkroute route add destination gateway(주 2) Software → Network → TCPIP (IPv4 and IPv6) → TCPIP Protocol Configuration → TCP/IP → Configure TCP/IP → Advanced Methods → Static Routes. Add/Change a static route에서 Destination Type, Gateway address, Network interface name(드롭다운), Subnet mask, Metric (Cost), Enable active dead gateway detection 확인란을 채우고 Add/Change Route 클릭
정적 경로 제거 smit rmroute route delete destination gateway(주 2) Software → Network → TCPIP (IPv4 and IPv6) → … → Static Routes. 경로를 고르고 Delete Route 클릭
라우팅 테이블 비우기 smit fshrttbl route flush Software → Network → TCPIP (IPv4 and IPv6) → … → Static Routes → Delete All

주:

  1. 표는 목적지 주소, 게이트웨이 주소, 플래그, 참조 횟수(홉 카운트), 네트워크 인터페이스 열로 나뉩니다. (각 열의 자세한 설명은 Commands Reference, Volume 4의 netstat 명령을 봅니다.) 프레임이 목적지에 닿지 않는데 라우팅 테이블에 올바른 경로가 있다면 다음 가운데 하나 이상일 수 있습니다.
    • 네트워크가 고장 나고 있습니다.
    • 원격 호스트나 게이트웨이가 고장 나고 있습니다.
    • 원격 호스트나 게이트웨이가 꺼져 있거나 프레임을 받을 준비가 되어 있지 않습니다.
    • 원격 호스트에 출발지 네트워크로 돌아오는 경로가 없습니다.
  2. destination 값은 목적지 호스트나 네트워크의 점 십진 주소나 기호 이름이고, gateway 값은 게이트웨이의 점 십진 주소나 기호 이름입니다. (기본 경로는 목적지로 0을 지정합니다.)
영어 원문

Configuring a gateway

To configure a machine to act as a gateway, use these instructions.

For clarity, this procedure assumes that the gateway machine connects two networks, and that the gateway machine has already been minimally configured on one of the networks.

  1. Install and configure the second network adapter, if you have not done so already. (See Installing a network adapter and Adapter management and configuration.)

  2. Choose an IP address for the second network interface, and then configure the network interface by following the instructions in Network interface management.

  3. Add a route to the second network.

  4. To use a machine as an internetwork router over TCP/IP networks, type:

text
no -o ipforwarding=1

The gateway machine can now access both of the networks to which it is directly attached. Figure 26. Simple gateway configuration

  1. If you want to use static routing to communicate with hosts or networks beyond these two networks, add any other routes you want.

  2. If you want to use dynamic routing, follow the instructions in either Configuring the routed daemon or Configuring the gated daemon. If your internetwork is to join the Internet, you should also follow the instructions in Autonomous system numbers.

Table 80. Configuring gateway tasks

Task SMIT fast path Command file
Web-based System Manager Management Environment
Displaying the Routing Table smit lsroute netstat -rn1 Software —> Network —> TCPIP (IPv4 and IPv6) —> TCPIP Protocol Configuration —> TCP/IP —> Configure TCP/IP —> Advanced Methods —> Static Routes —> Statistics.
Adding a Static Route smit mkroute route add destination gateway2 Software —> Network —> TCPIP (IPv4 and IPv6) —> TCPIP Protocol Configuration —> TCP/IP —> Configure TCP/IP —> Advanced Methods —> Static Routes. Complete the following in Add/Change a static route: Destination Type, Gateway address, Network interface name (drop-down menu), Subnet mask, Metric (Cost), and the Enable active dead gateway detection check box. Click Add/Change Route.
Removing a Static Route smit rmroute route delete destination gateway2 Software —> Network —> TCPIP (IPv4 and IPv6) —> TCPIP Protocol Configuration —> TCP/IP —> Configure TCP/IP —> Advanced Methods —> Static Routes. Select a route, and click Delete Route.
Flushing the Routing Table smit fshrttbl route flush Software —> Network —> TCPIP (IPv4 and IPv6) —> TCPIP Protocol Configuration —> TCP/IP —> Configure TCP/IP —> Advanced Methods —> Static Routes —> Delete All.

Note

  1. The table is divided into columns for destination address, gateway address, flags, reference count (hop count), and network interface. (For a detailed discussion of each of these columns, see the netstat command in the Commands Reference, Volume 4.) If frames are not reaching their destination and the routing tables indicate the correct route, one or more of the following conditions might exist:
  • Network is failing.

  • Remote host or gateway is failing.

  • Remote host or gateway is down or not ready to receive frames.

  • Remote host does not have a route back to the source network.

  1. The destination value is the dotted decimal address or symbolic name of the destination host or network, and the gateway value is the dotted decimal address or symbolic name of the gateway. (A default route specifies 0 as the destination.)

경로 사용 제한

경로를 일부 사용자만 쓸 수 있도록 제한할 수 있습니다. 제한은 사용자의 기본 그룹 ID를 바탕으로 합니다.

route 명령으로 경로를 쓸 수 있거나 쓸 수 없는 그룹 ID를 32개까지 목록으로 지정할 수 있습니다. 허용 그룹 목록이면 목록의 어느 그룹에든 속한 사용자는 그 경로를 쓸 수 있습니다. 불허 그룹 목록이면 목록의 어느 그룹에도 속하지 않은 사용자만 그 경로를 쓸 수 있습니다. root 사용자는 어떤 경로든 쓸 수 있습니다.

ifconfig 명령으로 그룹을 인터페이스에 연결할 수도 있습니다. 이 경우 전달할 패킷은 들어온 인터페이스에 연결된 그룹에 허용된 어떤 경로든 쓸 수 있습니다.

같은 목적지로 가는 경로가 둘 이상이면 그 목적지에 대해 받은 ICMP 리디렉트는 무시되며 그 경로들에서는 경로 MTU 발견을 하지 않습니다.

영어 원문

Route use restrictions

Routes can be restricted so they can be used only by some users. The restrictions are based on the primary group IDs of users.

Using the route command, you can specify a list of up to 32 group IDs that are allowed or not allowed to use a route. If the list is of allowed groups, any user that belongs to any group on the list can use the route. If the list is of disallowed groups, only users that do not belong to any of the groups on the list can use the route. The root user can use any route.

Groups can also be associated with an interface using the ifconfig command. In this case, a forwardable packet can use any route allowed for the groups associated with its incoming interface.

If there are two or more routes to the same destination, any ICMP redirects that are received for that destination will be ignored and path MTU discovery will not be done on those routes.

죽은 게이트웨이 감지

호스트가 쓰고 있는 게이트웨이가 꺼졌는지 감지하고 그에 따라 라우팅 테이블을 조정하도록 구성할 수 있습니다.

네트워크 옵션 passive_dgd가 1이면 시스템 전체에 수동 죽은 게이트웨이 감지가 켜집니다. 게이트웨이로 보낸 ARP 요청 dgd_packets_lost개 연속으로 응답이 없으면 그 게이트웨이가 꺼졌다고 보고, 그 게이트웨이를 쓰는 모든 경로의 거리 메트릭(홉 카운트나 비용이라고도 함)을 가능한 최댓값으로 올립니다. dgd_retry_time분이 지나면 경로 비용을 사용자가 구성한 값으로 되돌립니다. 호스트는 실패하는 TCP 연결을 바탕으로도 조치합니다. TCP 패킷 dgd_packets_lost개가 연속으로 사라지면 쓰고 있는 게이트웨이의 ARP 항목을 지우고 TCP 연결은 다음으로 좋은 경로를 시도합니다. 다음에 그 게이트웨이를 쓸 때, 게이트웨이가 실제로 꺼져 있으면 위 조치가 일어납니다. passive_dgd, dgd_packets_lost, dgd_retry_time 매개변수는 모두 no 명령으로 구성할 수 있습니다.

route 명령의 -active_dgd 플래그로 경로별 능동 죽은 게이트웨이 감지를 쓰도록 호스트를 구성할 수도 있습니다. 능동 죽은 게이트웨이 감지는 이 기능이 켜진 경로가 쓰는 모든 게이트웨이에 dgd_ping_time초마다 ping을 보냅니다. 게이트웨이에서 응답이 없으면 dgd_packets_lost번까지 더 빠르게 ping합니다. 그래도 응답이 없으면 그 게이트웨이를 쓰는 모든 경로의 비용을 올립니다. 게이트웨이에는 계속 ping을 보내며, 결국 응답을 받으면 경로 비용을 사용자가 구성한 값으로 되돌립니다. dgd_ping_time 매개변수는 no 명령으로 구성할 수 있습니다.

죽은 게이트웨이 감지는 동적이 아니라 정적 라우팅을 쓰는 호스트에 가장 유용합니다. 수동 죽은 게이트웨이 감지는 성능 문제가 적으며, 중복 게이트웨이가 있는 모든 네트워크에서 쓰기를 권합니다. 그러나 수동 감지는 최선 노력(best-effort)으로만 합니다. UDP 같은 일부 프로토콜은 데이터 전송이 실패해도 호스트에 아무 피드백을 주지 않으며, 이때 수동 감지는 아무 조치도 할 수 없습니다.

능동 죽은 게이트웨이 감지는 게이트웨이가 꺼진 것을 호스트가 바로 알아야 할 때 가장 유용합니다. 켜진 게이트웨이마다 몇 초마다 질의하므로 쓰는 데 따른 추가 네트워크 사용이 있습니다. 능동 감지는 중요한 서비스를 제공하는 호스트와, 호스트 수가 제한된 네트워크에서만 쓰기를 권합니다.

참고: 죽은 게이트웨이 감지와 gated·routed 데몬이 쓰는 라우팅 프로토콜은 네트워크 구성의 변화를 발견해 라우팅 테이블을 조정한다는 비슷한 일을 합니다. 그러나 다른 방식을 쓰며, 동시에 실행하면 서로 충돌할 수 있습니다. 그래서 gated나 routed 데몬을 실행하는 시스템에서는 죽은 게이트웨이 감지를 쓰면 안 됩니다.

(6.1) 죽은 게이트웨이 감지가 기본 경로가 다시 살아난 것을 감지하고 dgd_flush_cached_route 매개변수가 켜져 있으면, 모든 활성 연결의 현재 캐시된 경로를 비웁니다. 모든 현재 활성 연결의 경로를 다시 검증해 데이터를 보낼 가장 좋은 경로를 찾습니다. dgd_flush_cached_route 매개변수는 no 명령으로 구성할 수 있습니다. 기본으로 dgd_flush_cached_route는 꺼져 있습니다.

참고: dgd_flush_cached_route 매개변수는 안정된 네트워크 환경에서만 켜야 합니다. 그렇지 않으면 하드웨어 라우터가 나쁘거나 불안정해 죽은 게이트웨이 감지가 라우팅 테이블을 자주 갱신하면서 성능 문제가 더 커질 수 있습니다. 캐시된 경로를 자주 비우는 일도 비용이 클 수 있습니다.

영어 원문

Dead gateway detection

A host can be configured to detect whether a gateway it is using is down, and can adjust its routing table accordingly.

If the network option -passive_dgd is 1, passive dead gateway detection is enabled for the entire system. If no response is received for consecutive dgd_packets_lost ARP requests to a gateway, that gateway is assumed to be down and the distance metrics (also known as hopcount or cost) for all routes that use that gateway are raised to the maximum possible value. After dgd_retry_time minutes have passed, the route's costs are restored to their user-configured values. The host also takes action based on failing TCP connections. If consecutive dgd_packets_lost TCP packets are lost, the ARP entry for the gateway in use is deleted and the TCP connection tries the next-best route. The next time the gateway is used, the above actions take place if the gateway is actually down. The passive_dgd, dgd_packets_lost, and dgd_retry_time parameters can all be configured by using the no command.

Hosts can also be configured to use active dead gateway detection on a per-route basis with the -active_dgd flag of the route command. Active dead gateway detection pings all gateways used by routes for which it is enabled every dgd_ping_time second. If no response is received from a gateway, it is pinged more rapidly up to dgd_packets_lost times. If still no response is received, the costs of all routes that use that gateway are raised. The gateway continues to be pinged, and if a response is eventually received, the costs on the routes are restored to their user-configured values. The dgd_ping_time parameter can be configured by using the no command.

Dead gateway detection is most useful for hosts that use static rather than dynamic routing. Passive dead gateway detection results in less performance issues and is recommended for use on any network that has redundant gateways. However, passive dead gateway detection is done on a best-effort basis only. Some protocols, such as UDP, do not provide any feedback to the host if a data transmission is failing, and in this case no action can be taken by passive dead gateway detection.

Active dead gateway detection is most useful when a host must discover immediately when a gateway goes down. Since it queries each gateway for which it is enabled every few seconds, there is some excess network usage that is associated with its use. Active dead gateway detection is recommended only for hosts that provide critical services and on networks with a limited number of hosts.

Note: Dead gateway detection and the routing protocols that are used by the gated and routed daemons perform a similar function by discovering changes in the network configuration and adjusting the routing table accordingly. However, they use different mechanisms to do this, and if they are run at the same time, they might conflict with one another. For this reason, dead gateway detection must not be used on systems that run the gated or routed daemons.

When dead gateway detection detects that the primary route is back online and the dgd_flush_cached_route parameter is enabled, the current cached routes of all active connections are

flushed. The routes of all the current active connections are validated again, to find the best route for sending data. The dgd_flush_cached_route parameter can be configured, by using the no command. By default, the dgd_flush_cached_route parameter is disabled.

Note: The dgd_flush_cached_route parameter must be enabled only in a stable network environment. Otherwise, there might be greater performance issues due to bad or unstable hardware routers, causing dead gateway detection to frequently update the routing table. Frequent flushing of the cached routes can also be expensive.

경로 복제

경로 복제(route cloning)는 시스템이 통신하는 모든 호스트마다 호스트 경로가 만들어지게 합니다.

네트워크 트래픽을 보내려 할 때 라우팅 테이블을 검색해 그 호스트로 가는 경로를 찾습니다. 특정 호스트 경로가 있으면 그것을 씁니다. 없으면 네트워크 경로나 기본 경로를 찾을 수 있습니다. 찾은 경로에 복제 플래그 'c'가 설정되어 있으면, 복제되는 경로의 게이트웨이로 목적지의 호스트 경로를 만듭니다. 그 뒤 그 목적지에 대한 라우팅 테이블 검색은 복제된 호스트 경로를 찾습니다. 복제된 경로에는 'W' 플래그가 설정됩니다. 이 경로는 route_expire분 동안 쓰이지 않으면 시간이 다 되어 라우팅 테이블에서 지워집니다. route_expire는 no 명령으로 바꿀 수 있습니다.

경로 복제 기능은 주로 AIX 운영 체제의 경로 MTU 발견 프로토콜이 통신하는 모든 목적지의 경로 MTU 정보를 추적하는 데 씁니다. 네트워크 옵션 tcp_pmtu_discover나 udp_pmtu_discover(no 명령으로 설정)가 1이면 시스템의 모든 네트워크 경로에 복제 플래그가 켜집니다. 경로 MTU 발견 프로토콜은 기본으로 켜져 있습니다.

(6.1) 참고: 복제 경로 항목을 직접 더하려면 route 명령으로 라우팅 테이블을 다룰 수 있습니다.

관련 정보: route 명령

영어 원문

Route cloning

Route cloning allows a host route to be created for every host that a system communicates with.

When network traffic is about to be sent, a search is done of the routing table to find a route to that host. If a specific host route is found, it will be used. If a specific host route is not found, a network route or the default route may be found. If the route that is found has the cloning flag, 'c', set, a host route for the destination will be created using the gateway from the route that is being cloned. Subsequent routing table searches for that destination will find the cloned host route. Cloned routes have the 'W' flag set. These routes will time out and be deleted from the routing table if they are unused for route_expire minutes. You can modify route_expire by using the no command.

The route cloning feature is used mainly by the path MTU discovery protocol within AIX operating system, to allow it to keep track of path MTU information for every destination it communicates with. If the network options tcp_pmtu_discover or udp_pmtu_discover (settable with the no command) are 1, the cloning flag is turned on for all network routes on the system. The path MTU discovery protocol is on by default.

Note: To manually add a cloning route entry, you can manipulate the routing table through the route command.

Related information

route command

동적 경로 제거

routed 데몬을 쓰면, 직접 지운 경로는 (ioctl을 쓰기 때문에) 들어오는 RIP 정보로 다시 채워지지 않습니다.

gated 데몬을 쓰고 -n 플래그를 쓰지 않으면, 직접 지운 경로는 들어오는 RIP 정보에서 발견한 경로로 다시 채워집니다.

영어 원문

Dynamic route removal

If you are using the routed daemon, a manually deleted route is not replaced by incoming RIP information (because ioctl's are used).

If you are using the gated daemon, and the -n flag is not used, the manually deleted route is replaced by the route as discovered in incoming RIP information.

routed 데몬 구성

routed 데몬은 다음 단계로 구성합니다.

  1. /etc/rc.tcpip 셸 스크립트의 routed 절에서 주석 기호(#)를 지우고 고칩니다. 그러면 시스템이 시작할 때마다 routed 데몬이 자동으로 시작합니다.

    • 게이트웨이를 능동(-s 플래그)으로 돌릴지 수동(-q 플래그)으로 돌릴지 지정합니다.
    • 패킷 추적을 켤지 끌지(-t 플래그) 지정합니다. routed 데몬이 이미 시작된 뒤에도 kill 명령으로 SIGUSR1 신호를 보내 패킷 추적을 켤 수 있습니다. 이 신호로 추적 수준을 네 단계까지 올릴 수도 있습니다. 또 routed 데몬이 실행 중일 때 kill 명령으로 SIGUSR2 신호를 보내 패킷 추적을 끌 수 있습니다. 자세한 정보는 routed 데몬과 kill 명령을 봅니다.
    • 디버깅을 켤지 끌지(-d 플래그) 지정합니다. 이 플래그를 쓰면 디버깅 정보를 저장할 로그 파일을 지정하거나 콘솔 화면으로 보내도록 고릅니다.
    • routed 데몬을 게이트웨이에서 실행하는지(-g 플래그) 지정합니다.

    참고: 게이트웨이가 아닌 호스트도 routed 데몬을 실행할 수 있지만 수동 모드로 실행해야 합니다.

  2. 알려진 네트워크를 /etc/networks 파일에 나열해 식별합니다. 자세한 정보는 Files Reference의 Networks File Format for TCP/IP를 봅니다. 예제 networks 파일은 /usr/samples/tcpip 디렉터리에 있습니다.

  3. 네트워크에 직접 연결되지 않은 알려진 게이트웨이로 가는 경로를 /etc/gateways 파일에 설정합니다. /etc/gateways 파일 항목의 자세한 예는 Files Reference의 Gateways File Format for TCP/IP를 봅니다. 예제 gateways 파일은 /usr/samples/tcpip 디렉터리에 있습니다.

주의: routed 데몬과 gated 데몬을 한 기계에서 실행하지 않습니다. 예측할 수 없는 결과가 생길 수 있습니다.

영어 원문

Configuring the routed daemon

Follow these steps to configure the routed daemon.

To configure the routed daemon:

  1. Remove the comment symbol (#) and modify the routed clause in the /etc/rc.tcpip shell script. This automatically starts the routed daemon with each system startup.
  • Specify whether you want the gateway to run in active (-s flag) or passive (-q flag) mode.

  • Specify whether you want packet tracing on or off (-t flag). Packet tracing can also be turned on after the routed daemon is already started by using the kill command to send a SIGUSR1 signal to the daemon. This signal can also be used to increment the level of tracing through four levels. In addition, packet tracing can be turned off while the routed daemon is running by using the kill command to send a SIGUSR2 signal to the daemon. For more information, see the routed daemon and the kill command.

  • Specify whether you want debugging turned on or off (-d flag). If you use this flag, specify which log file you want debugging information stored in, or choose for it to be directed to the console display.

  • Specify whether you are running the routed daemon on a gateway (-g flag).

Note: A host that is not a gateway can run the routed daemon, but it must be run in passive mode.

  1. Identify any known networks by listing them in the /etc/networks file. See Networks File Format for TCP/IP in the Files Reference for more information. A sample networks file is located in the /usr/samples/tcpip directory.

  2. Set up routes in the /etc/gateways file to any known gateways that are not directly connected to your network. Refer to Gateways File Format for TCP/IP in Files Reference for detailed examples of entries in the /etc/gateways file. A sample gateways file is located in the /usr/samples/tcpip directory.

Attention: Do not run the routed daemon and the gated daemon on the same machine. Unpredictable results can occur.

gated 데몬 구성

gated 데몬을 구성할 때는 시스템에 가장 알맞은 게이트웨이 프로토콜을 정해야 합니다.

gated 데몬을 구성하려면 다음과 같이 합니다.

  1. 시스템에 가장 알맞은 게이트웨이 프로토콜을 정합니다. 라우팅 프로토콜은 EGP, BGP, RIP, RIPng, HELLO, OSPF, ICMP/Router Discovery, IS-IS 가운데 고릅니다. 원격 호스트에서 네트워크 요소의 관리 정보를 바꾸거나 볼 수 있게 하는 SNMP 프로토콜도 쓸 수 있습니다.

    참고: 자율 시스템의 네트워크 주소를 다른 자율 시스템의 게이트웨이에 광고하려면 EGP, BGP, BGP4+를 씁니다. 인터넷에 있다면 코어 게이트웨이 시스템에 네트워크 도달 가능성을 광고하는 데 EGP, BGP, BGP4+를 써야 합니다. 자율 시스템 안에서 도달 가능성 정보를 광고하려면 내부 라우팅 프로토콜을 씁니다.

  2. 알려진 네트워크를 /etc/networks 파일에 나열해 식별합니다. 자세한 정보는 Files Reference의 Networks File Format for TCP/IP를 봅니다. 예제 networks 파일은 /usr/samples/tcpip 디렉터리에 있습니다.

  3. 원하는 gated 데몬 구성을 반영하도록 /etc/gated.conf 파일을 편집합니다.

    참고: AIX 4.3.2 이상의 gated 버전은 3.5.9입니다. /etc/gated.conf 파일의 구문이 바뀌었습니다. 아래 예는 gated 3.5.9용입니다. AIX 4.3.2 이전 버전의 /etc/gated.conf를 구성하려면 /etc/gated.conf 파일 안에 있는 구문을 씁니다.

    1. 원하는 추적 출력 수준을 지정합니다. gated.conf 파일을 해석하기 전부터 추적이 필요하면 데몬을 시작할 때 -t 플래그로 추적을 켭니다. 자세한 정보는 Commands Reference, Volume 2의 gated Daemon을 봅니다.

    2. 쓸 라우팅 프로토콜을 지정합니다. 프로토콜마다 자기 protocol 문이 있습니다. 쓰려는 프로토콜에 해당하는 문의 주석 기호(#)를 지우고 고칩니다.

EGP를 쓸 때

  • EGP autonomoussystem 절을 설정합니다. 인터넷에 있다면 인터넷 기관에서 자율 시스템 번호를 받고, 아니라면 네트워크의 다른 시스템의 자율 시스템 번호를 고려해 번호를 정합니다.
  • EGP 문을 yes로 설정합니다.
  • 자율 시스템마다 group 절을 설정합니다.
  • 그 자율 시스템의 이웃마다 neighbor 절을 설정합니다. 예:
text
autonomoussystem 283 ;
egp yes {
        group maxup 1 {
             neighbor nogendefault 192.9.201.1 ;
             neighbor nogendefault 192.9.201.2 ;
       } ;
       group {
             neighbor 192.10.201.1 ;
             neighbor 192.10.201.2 ;
       } ;
} ;

RIP이나 HELLO를 쓸 때

  • RIP이나 HELLO 문을 yes로 설정합니다.
  • 게이트웨이가 라우팅 정보를 받기만 하고 브로드캐스트하지 않게 하려면 RIP이나 HELLO 문에 nobroadcast를 지정합니다. 라우팅 정보를 받기도 하고 브로드캐스트하기도 하게 하려면 broadcast를 지정합니다.
  • 게이트웨이가 출발지 게이트웨이로 직접 보내게 하려면 sourcegateways 문을 씁니다. sourcegateways 절에 게이트웨이 이름이나 점 십진 인터넷 주소를 지정합니다. 예:
text
# Send directly to specific gateways
rip/hello yes {
          sourcegateways
                101.25.32.1
                101.25.32.2 ;
} ;

다음 예는 RIP 패킷을 보내지 않고, tr0 인터페이스에서 RIP 패킷을 받지 않는 기계의 gated.conf 파일에 있는 RIP/HELLO 스탠자입니다.

text
rip/hello nobroadcast {
         interface tr0 noripin ;
} ;

BGP를 쓸 때

  • BGP autonomoussystem 절을 설정합니다. 인터넷에 있다면 인터넷 기관에서 자율 시스템 번호를 받고, 아니라면 네트워크의 다른 시스템의 번호를 고려해 정합니다.
  • BGP 문을 yes로 설정합니다.
  • 그 자율 시스템의 이웃마다 peer 절을 설정합니다. 예:
text
# Perform all BGP operations
bgp yes {
        peer 192.9.201.1 ;
} ;

SNMP를 쓸 때

  • SNMP 문을 yes로 설정합니다.
text
snmp yes ;

IPv6로 gated 데몬 실행 구성

IPv6로 gated 데몬을 실행하도록 구성하는 절차입니다.

gated 데몬을 IPv6에서 실행하도록 구성하려면 먼저 시스템이 IPv6와 IPv6 라우팅용으로 구성되어 있는지 확인합니다.

  1. autoconf6을 실행해 인터페이스를 IPv6용으로 자동 구성합니다.
  2. IPv6 라우팅을 쓰려는 각 IPv6 인터페이스에 다음 명령으로 사이트 로컬 주소를 구성합니다.
text
ifconfig interface inet6 fec0: n :: address /64 alias

여기서

  • interface: tr0이나 en0 같은 인터페이스 이름입니다.
  • n: 아무 10진수, 예를 들어 11.
  • address: IPv6 인터페이스 주소에서 두 콜론 뒤 부분. 예를 들어 IPv6 주소가 fe80::204:acff:fe86:298d이면 address 항목은 204:acff:fe86:298d입니다.

참고: 구성된 각 인터페이스의 IPv6 주소는 netstat -i 명령으로 볼 수 있습니다. 토큰링 tr0의 IPv6 주소가 fe80::204:acff:fe86:298d이면 다음 명령을 실행합니다.

text
ifconfig tr0 inet6 fec0:13::204:acff:fe86:298d/64 alias
  1. 다음 명령으로 IPv6 포워딩을 켭니다.
text
no -o ip6forwarding=1
  1. 다음 명령으로 ndpd-router를 시작합니다.
text
ndpd-router -g

네트워크 구성에 어떤 플래그를 쓸지는 Commands Reference, Volume 4의 ndpd-router를 봅니다. ndpd-router를 시작하면 시스템이 Neighbor Discovery Protocol의 라우터로 동작합니다. Neighbor Discovery Protocol 라우터는 Neighbor Discovery 호스트에 라우팅 정보를 알려 호스트가 IPv6 패킷을 라우팅하게 합니다. IPv6 네트워크에 넣으려는 네트워크의 모든 호스트는 ndpd-host를 실행해야 합니다. ndpd-host를 실행하는 호스트는 자기가 IPv6 네트워크의 일부임을 알고 Neighbor Discovery Protocol을 써서, 이웃 라우팅을 위해서와 패킷을 전달할 이웃 라우터를 찾기 위해 링크 계층 주소를 알아내고 감시합니다. 자세한 정보는 Commands Reference, Volume 4의 ndpd-router와 ndpd-host, 또는 RFC 1970 Neighbor Discovery를 봅니다.

  1. 다음으로 gated 데몬을 구성합니다.

    1. 시스템에 가장 알맞은 IPv6 게이트웨이 프로토콜을 정합니다. IPv6 라우팅 프로토콜은 IPv6용으로 강화한 BGP4+와 RIPng 가운데 고릅니다.

    2. 원하는 gated 데몬 구성을 반영하도록 /etc/gated.conf 파일을 편집합니다.

참고: AIX 4.3.2 이후는 gated 버전 3.5.9를 실행합니다. gated.conf 파일의 구문이 이전 버전에서 조금 바뀌었습니다. 올바른 구문은 Files Reference의 gated.conf 문서를 읽거나 /usr/sample/tcpip 디렉터리에 들어 있는 예제 파일을 씁니다. BGP4+나 RIPng를 구성할 때 구문에서 IP 주소를 지정하는 곳에는 IPv6 주소를 씁니다.

참고: 기본으로 RIPng는 패킷을 멀티캐스트합니다.

/etc/gated.conf 파일을 고친 뒤 gated 데몬을 시작할 수 있습니다.

영어 원문

Configuring the gated daemon

When configuring the gated daemon, you must decide which gateway protocols are most appropriate for your system.

To configure the gated daemon:

  1. Decide which gateway protocols are most appropriate for your system. The choices for routing protocols are EGP, BGP, RIP, RIPng, HELLO, OSPF, ICMP/Router Discovery, and IS-IS. You can also use SNMP, a protocol allowing you to change or show management information for a network element from a remote host.

Note: Use EGP, BGP, or BGP4+ to advertise addresses of networks in an autonomous system to gateways in other autonomous systems. If you are on the Internet, EGP, BGP, or BGP4+ must be used to advertise network reachability to the core gateway system. Use the interior routing protocols to advertise reachability information within an autonomous system.

  1. Identify any known networks by listing them in the /etc/networks file. See Networks File Format for TCP/IP in Files Reference for more information. A sample networks file is located in the /usr/samples/tcpip directory.

  2. Edit the /etc/gated.conf file to reflect the desired gated daemon configuration.

Note: The gated version on AIX 4.3.2 and higher is 3.5.9. The syntax of the /etc/gated.conf file has changed. The examples given below are for the 3.5.9 version of gated. To configure the /etc/gated.conf file for versions prior to AIX 4.3.2, use the syntax provided in the /etc/gated.conf file itself. a. Specify the level of trace output you want. If tracing is needed before the gated.conf file is parsed, use the -t flag to turn tracing on when the daemon starts. See gated Daemon in Commands Reference, Volume 2 for more information. b. Specify the routing protocols you want to use. Each protocol has its own protocol statement. Remove the comment symbols (#) and modify the statements corresponding to the protocols you want to use.

  • If using EGP: – Set up the EGP autonomoussystem clause. Obtain an autonomous system number from the Internet authority if you are on the Internet, or if not, assign an autonomous system number considering the autonomous system numbers of other systems on your network. – Set the EGP statement to yes. – Set up a group clause for each autonomous system. – Set up a neighbor clause for each neighbor in that autonomous system. For example:
text
autonomoussystem 283 ;
egp yes {
        group maxup 1 {
             neighbor nogendefault 192.9.201.1 ;
             neighbor nogendefault 192.9.201.2 ;
       } ;
       group {
             neighbor 192.10.201.1 ;
             neighbor 192.10.201.2 ;
       } ;
} ;
  • If using RIP or HELLO: – Set the RIP or HELLO statement to yes. – Specify nobroadcast in the RIP or HELLO statement if you want the gateway only to accept routing information, not broadcast information. Or specify broadcast in the RIP or HELLO statement if you want the gateway to broadcast routing information as well as accept routing information. – If you want the gateway to send directly to source gateways, use the sourcegateways statement. Specify a gateway name or Internet address in dotted decimal in the sourcegateways clause. For example:
text
# Send directly to specific gateways
rip/hello yes {
          sourcegateways
                101.25.32.1
                101.25.32.2 ;
} ;

The following example shows the RIP/HELLO stanza in the gated.conf file of a machine that does not send RIP packets, and does not receive RIP packets on its tr0 interface.

text
rip/hello nobroadcast {
         interface tr0 noripin ;
} ;
  • If using BGP: – Set up the BGP autonomoussystem clause. Obtain an autonomous system number from the Internet authority if you are on the Internet, or if not, assign an autonomous system number considering the autonomous system numbers of other systems on your network. – Set the BGP statement to yes. – Set up a peer clause for each neighbor in that autonomous system. For example:
text
# Perform all BGP operations
bgp yes {
        peer 192.9.201.1 ;
} ;
  • If using SNMP: – Set the SNMP statement to yes.
text
snmp yes ;

Configuring the gated daemon to run IPv6

Use this procedure to configure the gated daemon to run Internet Protocol version 6 (IPv6).

To configure the gated daemon to run under Internet Protocol version 6 (IPv6), first ensure that your system has been configured for IPv6 and IPv6 routing:

  1. Run autoconf6 to automatically configure your interfaces for IPv6.

  2. Configure site local addresses for each IPv6 interface on which you want to use IPv6 routing using the following command:

text
ifconfig interface inet6 fec0: n :: address /64 alias

where

interface Is the name of the interface, such as tr0 or en0.

n Is any decimal number; for example, 11

address Is the portion of the IPv6 interface address that follows the double colons; for example, given the IPv6 address fe80::204:acff:fe86:298d, the address entry would be 204:acff:fe86:298d.

Note: You can use the command netstat -i to see what your IPv6 address is for each configured interface. If token ring tr0 has an IPv6 address of fe80::204:acff:fe86:298d, you issue the following command:

text
ifconfig tr0 inet6 fec0:13::204:acff:fe86:298d/64 alias
  1. Turn on IPv6 forwarding with the following command:
text
no -o ip6forwarding=1
  1. Start ndpd-router with the following command:
text
ndpd-router -g

See ndpd-router in Commands Reference, Volume 4 to determine which flags to use for your network configuration. Starting ndpd-router allows your system to act as a router for the Neighbor Discovery Protocol. Neighbor Discovery Protocol routers inform Neighbor Discovery hosts with routing information so hosts can route IPv6 packets. Any hosts on the network that you want to be part of the IPv6 network must run ndpd-host. Hosts on the network that run ndpd-host will recognize themselves as part of an IPv6 network and use Neighbor Discovery Protocol, which allows them to determine and monitor link-layer addresses both to allow neighbor routing and to find neighboring routers for forwarding packets. See ndpd-router and ndpd-host in Commands Reference, Volume 4, or read RFC 1970, Neighbor Discovery, for more information.

  1. Next, configure the gated daemon: a. Decide which IPv6 gateway protocols are most appropriate for your system. The choices for IPv6 routing protocols are Border Gateway Protocol enhanced for IPv6 (BGP4+) and Routing Information Protocol Next Generation (RIPng). b. Edit the /etc/gated.conf file to reflect the desired gated daemon configuration.

Note: AIX 4.3.2 and later run gated version 3.5.9. The syntax of the gated.conf file has changed slightly from earlier versions. Read the gated.conf documentation in in Files Reference, or use the sample file that is shipped in the /usr/sample/tcpip directory for correct syntax. When configuring BGP4+ or RIPng, use IPv6 addresses in which the syntax specifies an IP address.

Note: By default, RIPng multicasts its packets.

After the /etc/gated.conf file has been modified, the gated daemon can be started.

자율 시스템 번호

EGP나 BGP를 쓰면 게이트웨이의 공식 자율 시스템 번호를 받아야 합니다.

공식 자율 시스템 번호를 받으려면 다음 인터넷 주소로 NIC에 연락합니다.

(이 주소는 원문이 쓰인 당시의 것입니다. 지금은 대륙별 인터넷 레지스트리(아시아·태평양은 APNIC, 한국은 KISA)에서 AS 번호를 받습니다.)

영어 원문

Autonomous system numbers

If you use EGP or BGP, you should obtain an official autonomous system number for your gateway.

To obtain an official autonomous system number, contact the NIC at the following internet address: