Openstack命令大全·neutron命令

本专题整理openstack服务keystone、neutron、nova、glance、cinder、swift的全部命令,本文介绍neutron命令。

neutron参数

neutron --version
neutron [ -v | --verbose | --debug ]
neutron [ -q | --quiet ]
neutron [ -h | --help ]
neutron [ -r NUM | --retries NUM ]
neutron --os-service-type <os-service-type>
neutron --os-endpoint-type <os-endpoint-type>
neutron --service-type <service-type>
neutron --endpoint-type <endpoint-type>
neutron --os-auth-strategy <auth-strategy>
neutron --os-auth-url <auth-url>
neutron --os-tenant-name <auth-tenant-name>
neutron --os-project-name <auth-project-name>
neutron --os-tenant-id <auth-tenant-id>
neutron --os-project-id <auth-project-id>
neutron --os-username <auth-username>
neutron --os-user-id <auth-user-id>
neutron --os-user-domain-id <auth-user-domain-id>
neutron --os-user-domain-name <auth-user-domain-name>
neutron --os-project-domain-id <auth-project-domain-id>
neutron --os-project-domain-name <auth-project-domain-name>
neutron --os-cert <certificate>
neutron --os-cacert <ca-certificate>
neutron --os-key <key>
neutron --os-password <auth-password>
neutron --os-region-name <auth-region-name>
neutron --os-token <token>
neutron --http-timeout <seconds>
neutron --os-url <url>
neutron --insecure

neutron命令

可通过 neutron help 查看具体操作方法。

neutron ext-list
neutron ext-show

#-- 网络 --#

#列出当前租户的网络
neutron net-list

#列出所有网络(管理员)
neutron net-list --all-tenants
neutron net-show {NET_NAME | NET_ID}
neutron net-delete {NET_NAME | NET_ID}

#创建网络(示例)
neutron net-create {NET_NAME}
\ --shared
\ --provider:network_type vlan
\ --provider:physical_network {PHYSICAL_NET_NAME}
[\ --provider:segmentation_id {SEGMENTATION_ID}]
[\ --tenant-id <TENANT_ID>]
#share表示共享网络
#network_type为vlan或flat
#segmentation_id和tenant_id为可选项

#-- 子网 --#

neutron subnet-create
neutron subnet-delete
neutron subnet-list
neutron subnet-show
neutron subnet-update
neutron subnetpool-create
neutron subnetpool-delete
neutron subnetpool-list
neutron subnetpool-show
neutron subnetpool-update

#创建子网(实例)
neutron subnet-create public 10.10.2.0/24
\ --name {SUBNET_NAME}
\ --allocation-pool start =10.10.2.1,end=10.10.2.100
\ --gateway 10.10.2.254
\ --dns_nameserver 114.114.114.114

#端口
neutron port-create
neutron port-list
neutron port-delete
neutron port-show
neutron port-update

#创建端口(实例)
neutron port-create public (--fixed-ip ip_address=10.0.2.251)

#打印bash完成的所有命令和选项
neutron bash-completion

neutron address-scope-create
neutron address-scope-delete
neutron address-scope-list
neutron address-scope-show
neutron address-scope-update

neutron agent-list
neutron agent-show
neutron agent-update
neutron agent-delete

neutron l3-agent-list-hosting-router
neutron l3-agent-router-add
neutron l3-agent-router-remove

#-- 路由 --#

neutron router-create
neutron router-delete
neutron router-update
neutron router-show
neutron router-list

#列出L3上的路由
neutron router-list-on-l3-agent

#列出路由中的端口
neutron router-port-list

#-- 网关 --#

neutron router-gateway-clear
neutron router-gateway-set

#-- 接口 --#

neutron router-interface-add
neutron router-interface-delete

#-- 防火墙 --#

neutron firewall-create
neutron firewall-show
neutron firewall-update
neutron firewall-delete
neutron firewall-list
neutron firewall-policy-create
neutron firewall-policy-delete
neutron firewall-policy-insert-rule
neutron firewall-policy-list
neutron firewall-policy-show
neutron firewall-policy-update
neutron firewall-policy-remove-rule
neutron firewall-rule-create
neutron firewall-rule-delete
neutron firewall-rule-list
neutron firewall-rule-show
neutron firewall-rule-update

#-- 负载均衡 --#

neutron lb-agent-hosting-pool
neutron lb-healthmonitor-associate
neutron lb-healthmonitor-create
neutron lb-healthmonitor-delete
neutron lb-healthmonitor-disassociate
neutron lb-healthmonitor-list
neutron lb-healthmonitor-show
neutron lb-healthmonitor-update
neutron lb-member-create
neutron lb-member-delete
neutron lb-member-list
neutron lb-member-show
neutron lb-member-update
neutron lb-pool-create
neutron lb-pool-delete
neutron lb-pool-list
neutron lb-pool-list-on-agent
neutron lb-pool-show
neutron lb-pool-stats
neutron lb-pool-update
neutron lb-vip-create
neutron lb-vip-delete
neutron lb-vip-list
neutron lb-vip-show
neutron lb-vip-update

neutron lbaas-agent-hosting-loadbalancer
neutron lbaas-healthmonitor-create
neutron lbaas-healthmonitor-delete
neutron lbaas-healthmonitor-list
neutron lbaas-healthmonitor-show
neutron lbaas-healthmonitor-update
neutron lbaas-listener-create
neutron lbaas-listener-delete
neutron lbaas-listener-list
neutron lbaas-listener-show
neutron lbaas-listener-update
neutron lbaas-loadbalancer-create
neutron lbaas-loadbalancer-delete
neutron lbaas-loadbalancer-list
neutron lbaas-loadbalancer-list-on-agent
neutron lbaas-loadbalancer-show
neutron lbaas-loadbalancer-update
neutron lbaas-member-create
neutron lbaas-member-delete
neutron lbaas-member-list
neutron lbaas-member-show
neutron lbaas-member-update
neutron lbaas-pool-create
neutron lbaas-pool-delete
neutron lbaas-pool-list
neutron lbaas-pool-show
neutron lbaas-pool-update

#-- CISCO --#

neutron cisco-credential-create
neutron cisco-credential-delete
neutron cisco-credential-list
neutron cisco-credential-show
neutron cisco-network-profile-create
neutron cisco-network-profile-delete
neutron cisco-network-profile-list
neutron cisco-network-profile-show
neutron cisco-network-profile-update
neutron cisco-policy-profile-list
neutron cisco-policy-profile-show
neutron cisco-policy-profile-update

#-- DHCP --#

neutron dhcp-agent-list-hosting-net
neutron dhcp-agent-network-add
neutron dhcp-agent-network-remove

#-- IPSEC --#

neutron ipsec-site-connection-create
neutron ipsec-site-connection-delete
neutron ipsec-site-connection-list
neutron ipsec-site-connection-show
neutron ipsec-site-connection-update

neutron meter-label-create
neutron meter-label-delete
neutron meter-label-list
neutron meter-label-rule-create
neutron meter-label-rule-delete
neutron meter-label-rule-list
neutron meter-label-rule-show
neutron meter-label-show

neutron nuage-netpartition-create
neutron nuage-netpartition-delete
neutron nuage-netpartition-list
neutron nuage-netpartition-show

#-- QoS --#

neutron qos-available-rule-types
neutron qos-bandwidth-limit-rule-create
neutron qos-bandwidth-limit-rule-delete
neutron qos-bandwidth-limit-rule-list
neutron qos-bandwidth-limit-rule-show
neutron qos-bandwidth-limit-rule-update
neutron qos-policy-create
neutron qos-policy-delete
neutron qos-policy-list
neutron qos-policy-show
neutron qos-policy-update

neutron queue-create
neutron queue-delete
neutron queue-list
neutron queue-show

neutron quota-delete
neutron quota-list
neutron quota-show
neutron quota-update

#-- RBAC --#

neutron rbac-create
neutron rbac-delete
neutron rbac-list
neutron rbac-show
neutron rbac-update

neutron security-group-create
neutron security-group-delete
neutron security-group-list
neutron security-group-rule-create
neutron security-group-rule-delete
neutron security-group-rule-list
neutron security-group-rule-show
neutron security-group-show
neutron security-group-update
neutron service-provider-list

#-- VPN --#

neutron vpn-ikepolicy-create
neutron vpn-ikepolicy-delete
neutron vpn-ikepolicy-list
neutron vpn-ikepolicy-show
neutron vpn-ikepolicy-update
neutron vpn-ipsecpolicy-create
neutron vpn-ipsecpolicy-delete
neutron vpn-ipsecpolicy-list
neutron vpn-ipsecpolicy-show
neutron vpn-ipsecpolicy-update
neutron vpn-service-create
neutron vpn-service-delete
neutron vpn-service-list
neutron vpn-service-show
neutron vpn-service-update

原创文章禁止转载:技术学堂 » Openstack命令大全·neutron命令

精彩评论

4+7=

感谢您的支持与鼓励

支付宝扫一扫打赏

微信扫一扫打赏