7.176. NetworkAttachment struct


호스트가 네트워크에 연결하는 방법을 설명합니다.

호스트에서 네트워크 연결의 XML 표현입니다.

<network_attachment href="/ovirt-engine/api/hosts/123/nics/456/networkattachments/789" id="789">
  <network href="/ovirt-engine/api/networks/234" id="234"/>
  <host_nic href="/ovirt-engine/api/hosts/123/nics/123" id="123"/>
  <in_sync>true</in_sync>
  <ip_address_assignments>
    <ip_address_assignment>
      <assignment_method>static</assignment_method>
      <ip>
        <address>192.168.122.39</address>
        <gateway>192.168.122.1</gateway>
        <netmask>255.255.255.0</netmask>
        <version>v4</version>
      </ip>
    </ip_address_assignment>
  </ip_address_assignments>
  <reported_configurations>
    <reported_configuration>
      <name>mtu</name>
      <expected_value>1500</expected_value>
      <actual_value>1500</actual_value>
      <in_sync>true</in_sync>
    </reported_configuration>
    <reported_configuration>
      <name>bridged</name>
      <expected_value>true</expected_value>
      <actual_value>true</actual_value>
      <in_sync>true</in_sync>
    </reported_configuration>
    ...
  </reported_configurations>
</network_attachment>
Copy to Clipboard Toggle word wrap

네트워크 인터페이스 카드(NIC)에 네트워크를 연결하려면 이름 또는 ID 가 있는 네트워크 요소가 필요합니다.

예를 들어 네트워크를 호스트 네트워크 인터페이스 카드에 연결하려면 다음과 같은 요청을 보냅니다.

POST /ovirt-engine/api/hosts/123/nics/456/networkattachments
Copy to Clipboard Toggle word wrap

다음과 같이 요청 본문이 있는 경우:

<networkattachment>
  <network id="234"/>
</networkattachment>
Copy to Clipboard Toggle word wrap

네트워크를 호스트에 연결하려면 다음과 같은 요청을 보냅니다.

POST /ovirt-engine/api/hosts/123/networkattachments
Copy to Clipboard Toggle word wrap

다음과 같이 요청 본문이 있는 경우:

<network_attachment>
  <network id="234"/>
  <host_nic id="456"/>
</network_attachment>
Copy to Clipboard Toggle word wrap

ip_address_assignmentsproperties 요소는 백업 후 생성입니다.

예를 들어 네트워크 연결을 업데이트하려면 다음과 같은 요청을 보냅니다.

PUT /ovirt-engine/api/hosts/123/nics/456/networkattachments/789
Copy to Clipboard Toggle word wrap

다음과 같이 요청 본문이 있는 경우:

<network_attachment>
  <ip_address_assignments>
    <ip_address_assignment>
      <assignment_method>static</assignment_method>
      <ip>
        <address>7.1.1.1</address>
        <gateway>7.1.1.2</gateway>
        <netmask>255.255.255.0</netmask>
        <version>v4</version>
      </ip>
    </ip_address_assignment>
  </ip_address_assignments>
</network_attachment>
Copy to Clipboard Toggle word wrap

네트워크 인터페이스 카드에서 네트워크를 분리하려면 다음과 같은 요청을 보냅니다.

DELETE /ovirt-engine/api/hosts/123/nics/456/networkattachments/789
Copy to Clipboard Toggle word wrap
중요

네트워크 연결 구성 변경 사항을 명시적으로 커밋해야 합니다.

네트워크 연결 속성 하위 수집의 XML 표현:

<network_attachment>
  <properties>
    <property>
      <name>bridge_opts</name>
      <value>
        forward_delay=1500 group_fwd_mask=0x0 multicast_snooping=1
      </value>
    </property>
  </properties>
  ...
</network_attachment>
Copy to Clipboard Toggle word wrap
Expand
표 7.233. 특성 요약
이름유형요약

주석

문자열

이 오브젝트에 대한 주석이 포함된 자유 텍스트입니다.

description

문자열

일반 텍스트로 사람이 읽을 수 있는 설명입니다.

dns_resolver_configuration

DnsResolverConfiguration

GET을 사용하여 네트워크 연결을 검색할 때 DNS 확인자 구성이 보고됩니다.

id

문자열

고유 식별자입니다.

in_sync

부울

 

ip_address_assignments

IpAddressAssignment[]

네트워크의 IP 구성입니다.

name

문자열

일반 텍스트로 사람이 읽을 수 있는 이름입니다.

속성

property []

네트워크 구성에 대한 사용자 지정 속성을 정의합니다.

reported_configurations

ReportedConfiguration[]

구성 속성의 읽기 전용 목록입니다.

7.176.1. dns_resolver_configuration

GET을 사용하여 네트워크 연결을 검색할 때 DNS 확인자 구성이 보고됩니다. 새 네트워크 연결을 생성하거나 기존 네트워크를 업데이트할 때 선택 사항입니다.

7.176.2. 속성

네트워크 구성에 대한 사용자 지정 속성을 정의합니다.

브리지 옵션에는 bridge_opts의 설정 이름이 있습니다. 여러 항목을 공백 문자로 구분합니다. 다음 키는 bridge_opts 에 유효합니다.

Expand
이름기본값

forward_delay

1500

gc_timer

3765

group_addr

1:80:c2:0:0:0

group_fwd_mask

0x0

hash_elasticity

4

hash_max

512

hello_time

200

hello_timer

70

max_age

2000

multicast_last_member_count

2

multicast_last_member_interval

100

multicast_membership_interval

26000

multicast_querier

0

multicast_querier_interval

25500

multicast_query_interval

13000

multicast_query_response_interval

1000

multicast_query_use_ifaddr

0

multicast_router

1

multicast_snooping

1

multicast_startup_query_count

2

multicast_startup_query_interval

3125

Expand
표 7.234. 링크 요약
이름유형요약

host

호스트

 

host_nic

HostNic

호스트 네트워크 인터페이스에 대한 참조입니다.

network

네트워크

인터페이스가 연결된 네트워크에 대한 참조입니다.

QoS

QoS

 
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat