77.10. 서브넷 세트
서브넷 속성 설정
사용법:
openstack subnet set [-h] [--name <name>] [--dhcp | --no-dhcp]
[--gateway <gateway>]
[--network-segment <network-segment>]
[--description <description>] [--tag <tag>]
[--no-tag]
[--allocation-pool start=<ip-address>,end=<ip-address>]
[--no-allocation-pool]
[--dns-nameserver <dns-nameserver>]
[--no-dns-nameservers]
[--host-route destination=<subnet>,gateway=<ip-address>]
[--no-host-route] [--service-type <service-type>]
<subnet>
표 77.37. 위치 인수
| 현재의 | 요약 |
|---|---|
| <subnet> | 수정할 서브넷 (이름 또는 id) |
표 77.38. 선택적 인수
| 현재의 | 요약 |
|---|---|
| -h, --help | 도움말 표시 및 종료 |
| --name <name> | 서브넷의 업데이트된 이름 |
| --dhcp | dhcp 활성화 |
| --no-dhcp | dhcp 비활성화 |
| --gateway <gateway> | 서브넷의 게이트웨이를 지정합니다. 옵션은 <ip-address>입니다. 게이트웨이로 사용할 특정 IP 주소, none: 이 서브넷은 게이트웨이를 사용하지 않습니다(예: --gateway 192.168.9.1, --gateway none). |
| --network-segment <network-segment> |
이 서브넷(이름 또는 ID)과 연결할 네트워크 세그먼트입니다. 현재 값이 |
| --description <description> | 서브넷 설명 설정 |
| --tag <tag> | 서브넷에 추가할 태그 (여러 태그를 설정하려면repeat 옵션) |
| --no-tag | 서브넷과 연결된 태그를 지웁니다. --tag 및 --no-tag를 둘 다 지정하여 현재 태그를 덮어씁니다. |
| --allocation-pool start=<ip-address>,end=<ip-address> | 이 서브넷의 할당 풀 ip 주소 (예: start=192.168.199.2,end=192.168.199.254 (여러 IP 주소 추가를 위한 repeat 옵션) |
| --no-allocation-pool | 서브넷에서 연결된 할당 풀을 지웁니다. 현재 할당 풀 정보를 덮어쓰려면 --allocation-pool 및 --no-allocation- 풀을 둘 다 지정합니다. |
| --dns-nameserver <dns-nameserver> | 이 서브넷의 DNS 서버 (여러 DNS 서버를 설정하는repeat 옵션) |
| --no-dns-nameservers | dns 이름 서버의 기존 정보를 지웁니다. --dns-nameserver 및 --no-dns-nameserver를 둘 다 지정하여 현재 DNS Nameserver 정보를 덮어씁니다. |
| --host-route destination=<subnet>,gateway=<ip-address> | 이 서브넷의 추가 경로(예: destination=10.10.0.0/16,gateway=192.168.71.254 대상: 대상 서브넷(CIDR 표기법) 게이트웨이: nexthop IP 주소 (여러 경로 추가를 위한 repeat 옵션) |
| --no-host-route | 서브넷에서 연결된 host-routes를 지웁니다. --host-route 및 --no-host-route를 둘 다 지정하여 현재 호스트 경로 정보를 덮어씁니다. |
| --service-type <service-type> | 이 서브넷의 서비스 유형(예: network:floatingip_agent_gateway). 네트워크 포트에 유효한 장치 소유자 값이어야 합니다(여러 서비스 유형을 설정하려면repeat 옵션) |