精华内容
下载资源
问答
  • openstack中neutron命令大全

    千次阅读 2018-06-29 14:20:42
    usage: neutron [--version] [-v] [-q] [-h] [-r NUM] [--os-service-type <os-service-type>] [--os-endpoint-type <os-endpoint-type>] [--service-type &...
    usage: neutron [--version] [-v] [-q] [-h] [-r NUM]
    
                   [--os-service-type <os-service-type>]
                   [--os-endpoint-type <os-endpoint-type>]
                   [--service-type <service-type>]
                   [--endpoint-type <endpoint-type>]
                   [--os-auth-strategy <auth-strategy>] [--os-auth-url <auth-url>]
                   [--os-tenant-name <auth-tenant-name> | --os-project-name <auth-project-name>]
                   [--os-tenant-id <auth-tenant-id> | --os-project-id <auth-project-id>]
                   [--os-username <auth-username>] [--os-user-id <auth-user-id>]
                   [--os-user-domain-id <auth-user-domain-id>]
                   [--os-user-domain-name <auth-user-domain-name>]
                   [--os-project-domain-id <auth-project-domain-id>]
                   [--os-project-domain-name <auth-project-domain-name>]
                   [--os-cert <certificate>] [--os-cacert <ca-certificate>]
                   [--os-key <key>] [--os-password <auth-password>]
                   [--os-region-name <auth-region-name>] [--os-token <token>]
                   [--http-timeout <seconds>] [--os-url <url>] [--insecure]


    Command-line interface to the Neutron APIs


    optional arguments:
      --version             show program's version number and exit
      -v, --verbose, --debug
                            Increase verbosity of output and show tracebacks on
                            errors. You can repeat this option.
      -q, --quiet           Suppress output except warnings and errors.
      -h, --help            Show this help message and exit.
      -r NUM, --retries NUM
                            How many times the request to the Neutron server
                            should be retried if it fails.
      --os-service-type <os-service-type>
                            Defaults to env[OS_NETWORK_SERVICE_TYPE] or network.
      --os-endpoint-type <os-endpoint-type>
                            Defaults to env[OS_ENDPOINT_TYPE] or publicURL.
      --service-type <service-type>
                            DEPRECATED! Use --os-service-type.
      --endpoint-type <endpoint-type>
                            DEPRECATED! Use --os-endpoint-type.
      --os-auth-strategy <auth-strategy>
                            DEPRECATED! Only keystone is supported.
      --os-auth-url <auth-url>
                            Authentication URL, defaults to env[OS_AUTH_URL].
      --os-tenant-name <auth-tenant-name>
                            Authentication tenant name, defaults to
                            env[OS_TENANT_NAME].
      --os-project-name <auth-project-name>
                            Another way to specify tenant name. This option is
                            mutually exclusive with --os-tenant-name. Defaults to
                            env[OS_PROJECT_NAME].
      --os-tenant-id <auth-tenant-id>
                            Authentication tenant ID, defaults to
                            env[OS_TENANT_ID].
      --os-project-id <auth-project-id>
                            Another way to specify tenant ID. This option is
                            mutually exclusive with --os-tenant-id. Defaults to
                            env[OS_PROJECT_ID].
      --os-username <auth-username>
                            Authentication username, defaults to env[OS_USERNAME].
      --os-user-id <auth-user-id>
                            Authentication user ID (Env: OS_USER_ID)
      --os-user-domain-id <auth-user-domain-id>
                            OpenStack user domain ID. Defaults to
                            env[OS_USER_DOMAIN_ID].
      --os-user-domain-name <auth-user-domain-name>
                            OpenStack user domain name. Defaults to
                            env[OS_USER_DOMAIN_NAME].
      --os-project-domain-id <auth-project-domain-id>
                            Defaults to env[OS_PROJECT_DOMAIN_ID].
      --os-project-domain-name <auth-project-domain-name>
                            Defaults to env[OS_PROJECT_DOMAIN_NAME].
      --os-cert <certificate>
                            Path of certificate file to use in SSL connection.
                            This file can optionally be prepended with the private
                            key. Defaults to env[OS_CERT].
      --os-cacert <ca-certificate>
                            Specify a CA bundle file to use in verifying a TLS
                            (https) server certificate. Defaults to
                            env[OS_CACERT].
      --os-key <key>        Path of client key to use in SSL connection. This
                            option is not necessary if your key is prepended to
                            your certificate file. Defaults to env[OS_KEY].
      --os-password <auth-password>
                            Authentication password, defaults to env[OS_PASSWORD].
      --os-region-name <auth-region-name>
                            Authentication region name, defaults to
                            env[OS_REGION_NAME].
      --os-token <token>    Authentication token, defaults to env[OS_TOKEN].
      --http-timeout <seconds>
                            Timeout in seconds to wait for an HTTP response.
                            Defaults to env[OS_NETWORK_TIMEOUT] or None if not
                            specified.
      --os-url <url>        Defaults to env[OS_URL].
      --insecure            Explicitly allow neutronclient to perform "insecure"
                            SSL (https) requests. The server's certificate will
                            not be verified against any certificate authorities.
                            This option should be used with caution.


    Commands for API v2.0:
      address-scope-create              Create an address scope for a given tenant.
      address-scope-delete              Delete an address scope.
      address-scope-list                List address scopes that belong to a given tenant.
      address-scope-show                Show information about an address scope.
      address-scope-update              Update an address scope.
      agent-delete                      Delete a given agent.
      agent-list                        List agents.
      agent-show                        Show information of a given agent.
      agent-update                      Updates the admin status and description for a specified agent.
      bash-completion                   Prints all of the commands and options for bash-completion.
      cisco-credential-create           Create a credential.
      cisco-credential-delete           Delete a given credential.
      cisco-credential-list             List credentials that belong to a given tenant.
      cisco-credential-show             Show information of a given credential.
      cisco-network-profile-create      Create a network profile.
      cisco-network-profile-delete      Delete a given network profile.
      cisco-network-profile-list        List network profiles that belong to a given tenant.
      cisco-network-profile-show        Show information of a given network profile.
      cisco-network-profile-update      Update network profile's information.
      cisco-policy-profile-list         List policy profiles that belong to a given tenant.
      cisco-policy-profile-show         Show information of a given policy profile.
      cisco-policy-profile-update       Update policy profile's information.
      dhcp-agent-list-hosting-net       List DHCP agents hosting a network.
      dhcp-agent-network-add            Add a network to a DHCP agent.
      dhcp-agent-network-remove         Remove a network from a DHCP agent.
      ext-list                          List all extensions.
      ext-show                          Show information of a given resource.
      firewall-create                   Create a firewall.
      firewall-delete                   Delete a given firewall.
      firewall-list                     List firewalls that belong to a given tenant.
      firewall-policy-create            Create a firewall policy.
      firewall-policy-delete            Delete a given firewall policy.
      firewall-policy-insert-rule       Insert a rule into a given firewall policy.
      firewall-policy-list              List firewall policies that belong to a given tenant.
      firewall-policy-remove-rule       Remove a rule from a given firewall policy.
      firewall-policy-show              Show information of a given firewall policy.
      firewall-policy-update            Update a given firewall policy.
      firewall-rule-create              Create a firewall rule.
      firewall-rule-delete              Delete a given firewall rule.
      firewall-rule-list                List firewall rules that belong to a given tenant.
      firewall-rule-show                Show information of a given firewall rule.
      firewall-rule-update              Update a given firewall rule.
      firewall-show                     Show information of a given firewall.
      firewall-update                   Update a given firewall.
      floatingip-associate              Create a mapping between a floating IP and a fixed IP.
      floatingip-create                 Create a floating IP for a given tenant.
      floatingip-delete                 Delete a given floating IP.
      floatingip-disassociate           Remove a mapping from a floating IP to a fixed IP.
      floatingip-list                   List floating IPs that belong to a given tenant.
      floatingip-show                   Show information of a given floating IP.
      gateway-device-create             Create a network gateway device.
      gateway-device-delete             Delete a given network gateway device.
      gateway-device-list               List network gateway devices for a given tenant.
      gateway-device-show               Show information for a given network gateway device.
      gateway-device-update             Update a network gateway device.
      help                              print detailed help for another command
      ipsec-site-connection-create      Create an IPsec site connection.
      ipsec-site-connection-delete      Delete a given IPsec site connection.
      ipsec-site-connection-list        List IPsec site connections that belong to a given tenant.
      ipsec-site-connection-show        Show information of a given IPsec site connection.
      ipsec-site-connection-update      Update a given IPsec site connection.
      l3-agent-list-hosting-router      List L3 agents hosting a router.
      l3-agent-router-add               Add a router to a L3 agent.
      l3-agent-router-remove            Remove a router from a L3 agent.
      lb-agent-hosting-pool             Get loadbalancer agent hosting a pool.
      lb-healthmonitor-associate        Create a mapping between a health monitor and a pool.
      lb-healthmonitor-create           Create a health monitor.
      lb-healthmonitor-delete           Delete a given health monitor.
      lb-healthmonitor-disassociate     Remove a mapping from a health monitor to a pool.
      lb-healthmonitor-list             List health monitors that belong to a given tenant.
      lb-healthmonitor-show             Show information of a given health monitor.
      lb-healthmonitor-update           Update a given health monitor.
      lb-member-create                  Create a member.
      lb-member-delete                  Delete a given member.
      lb-member-list                    List members that belong to a given tenant.
      lb-member-show                    Show information of a given member.
      lb-member-update                  Update a given member.
      lb-pool-create                    Create a pool.
      lb-pool-delete                    Delete a given pool.
      lb-pool-list                      List pools that belong to a given tenant.
      lb-pool-list-on-agent             List the pools on a loadbalancer agent.
      lb-pool-show                      Show information of a given pool.
      lb-pool-stats                     Retrieve stats for a given pool.
      lb-pool-update                    Update a given pool.
      lb-vip-create                     Create a vip.
      lb-vip-delete                     Delete a given vip.
      lb-vip-list                       List vips that belong to a given tenant.
      lb-vip-show                       Show information of a given vip.
      lb-vip-update                     Update a given vip.
      lbaas-agent-hosting-loadbalancer  Get lbaas v2 agent hosting a loadbalancer.
      lbaas-healthmonitor-create        LBaaS v2 Create a healthmonitor.
      lbaas-healthmonitor-delete        LBaaS v2 Delete a given healthmonitor.
      lbaas-healthmonitor-list          LBaaS v2 List healthmonitors that belong to a given tenant.
      lbaas-healthmonitor-show          LBaaS v2 Show information of a given healthmonitor.
      lbaas-healthmonitor-update        LBaaS v2 Update a given healthmonitor.
      lbaas-listener-create             LBaaS v2 Create a listener.
      lbaas-listener-delete             LBaaS v2 Delete a given listener.
      lbaas-listener-list               LBaaS v2 List listeners that belong to a given tenant.
      lbaas-listener-show               LBaaS v2 Show information of a given listener.
      lbaas-listener-update             LBaaS v2 Update a given listener.
      lbaas-loadbalancer-create         LBaaS v2 Create a loadbalancer.
      lbaas-loadbalancer-delete         LBaaS v2 Delete a given loadbalancer.
      lbaas-loadbalancer-list           LBaaS v2 List loadbalancers that belong to a given tenant.
      lbaas-loadbalancer-list-on-agent  List the loadbalancers on a loadbalancer v2 agent.
      lbaas-loadbalancer-show           LBaaS v2 Show information of a given loadbalancer.
      lbaas-loadbalancer-update         LBaaS v2 Update a given loadbalancer.
      lbaas-member-create               LBaaS v2 Create a member.
      lbaas-member-delete               LBaaS v2 Delete a given member.
      lbaas-member-list                 LBaaS v2 List members that belong to a given pool.
      lbaas-member-show                 LBaaS v2 Show information of a given member.
      lbaas-member-update               LBaaS v2 Update a given member.
      lbaas-pool-create                 LBaaS v2 Create a pool.
      lbaas-pool-delete                 LBaaS v2 Delete a given pool.
      lbaas-pool-list                   LBaaS v2 List pools that belong to a given tenant.
      lbaas-pool-show                   LBaaS v2 Show information of a given pool.
      lbaas-pool-update                 LBaaS v2 Update a given pool.
      meter-label-create                Create a metering label for a given tenant.
      meter-label-delete                Delete a given metering label.
      meter-label-list                  List metering labels that belong to a given tenant.
      meter-label-rule-create           Create a metering label rule for a given label.
      meter-label-rule-delete           Delete a given metering label.
      meter-label-rule-list             List metering labels that belong to a given label.
      meter-label-rule-show             Show information of a given metering label rule.
      meter-label-show                  Show information of a given metering label.
      net-create                        Create a network for a given tenant.
      net-delete                        Delete a given network.
      net-external-list                 List external networks that belong to a given tenant.
      net-gateway-connect               Add an internal network interface to a router.
      net-gateway-create                Create a network gateway.
      net-gateway-delete                Delete a given network gateway.
      net-gateway-disconnect            Remove a network from a network gateway.
      net-gateway-list                  List network gateways for a given tenant.
      net-gateway-show                  Show information of a given network gateway.
      net-gateway-update                Update the name for a network gateway.
      net-list                          List networks that belong to a given tenant.
      net-list-on-dhcp-agent            List the networks on a DHCP agent.
      net-show                          Show information of a given network.
      net-update                        Update network's information.
      nuage-netpartition-create         Create a netpartition for a given tenant.
      nuage-netpartition-delete         Delete a given netpartition.
      nuage-netpartition-list           List netpartitions that belong to a given tenant.
      nuage-netpartition-show           Show information of a given netpartition.
      port-create                       Create a port for a given tenant.
      port-delete                       Delete a given port.
      port-list                         List ports that belong to a given tenant.
      port-show                         Show information of a given port.
      port-update                       Update port's information.
      qos-available-rule-types          List available qos rule types.
      qos-bandwidth-limit-rule-create   Create a qos bandwidth limit rule.
      qos-bandwidth-limit-rule-delete   Delete a given qos bandwidth limit rule.
      qos-bandwidth-limit-rule-list     List all qos bandwidth limit rules belonging to the specified policy.
      qos-bandwidth-limit-rule-show     Show information about the given qos bandwidth limit rule.
      qos-bandwidth-limit-rule-update   Update the given qos bandwidth limit rule.
      qos-policy-create                 Create a qos policy.
      qos-policy-delete                 Delete a given qos policy.
      qos-policy-list                   List QoS policies that belong to a given tenant connection.
      qos-policy-show                   Show information of a given qos policy.
      qos-policy-update                 Update a given qos policy.
      queue-create                      Create a queue.
      queue-delete                      Delete a given queue.
      queue-list                        List queues that belong to a given tenant.
      queue-show                        Show information of a given queue.
      quota-delete                      Delete defined quotas of a given tenant.
      quota-list                        List quotas of all tenants who have non-default quota values.
      quota-show                        Show quotas of a given tenant.
      quota-update                      Define tenant's quotas not to use defaults.
      rbac-create                       Create a RBAC policy for a given tenant.
      rbac-delete                       Delete a RBAC policy.
      rbac-list                         List RBAC policies that belong to a given tenant.
      rbac-show                         Show information of a given RBAC policy.
      rbac-update                       Update RBAC policy for given tenant.
      router-create                     Create a router for a given tenant.
      router-delete                     Delete a given router.
      router-gateway-clear              Remove an external network gateway from a router.
      router-gateway-set                Set the external network gateway for a router.
      router-interface-add              Add an internal network interface to a router.
      router-interface-delete           Remove an internal network interface from a router.
      router-list                       List routers that belong to a given tenant.
      router-list-on-l3-agent           List the routers on a L3 agent.
      router-port-list                  List ports that belong to a given tenant, with specified router.
      router-show                       Show information of a given router.
      router-update                     Update router's information.
      security-group-create             Create a security group.
      security-group-delete             Delete a given security group.
      security-group-list               List security groups that belong to a given tenant.
      security-group-rule-create        Create a security group rule.
      security-group-rule-delete        Delete a given security group rule.
      security-group-rule-list          List security group rules that belong to a given tenant.
      security-group-rule-show          Show information of a given security group rule.
      security-group-show               Show information of a given security group.
      security-group-update             Update a given security group.
      service-provider-list             List service providers.
      subnet-create                     Create a subnet for a given tenant.
      subnet-delete                     Delete a given subnet.
      subnet-list                       List subnets that belong to a given tenant.
      subnet-show                       Show information of a given subnet.
      subnet-update                     Update subnet's information.
      subnetpool-create                 Create a subnetpool for a given tenant.
      subnetpool-delete                 Delete a given subnetpool.
      subnetpool-list                   List subnetpools that belong to a given tenant.
      subnetpool-show                   Show information of a given subnetpool.
      subnetpool-update                 Update subnetpool's information.
      vpn-ikepolicy-create              Create an IKE policy.
      vpn-ikepolicy-delete              Delete a given IKE policy.
      vpn-ikepolicy-list                List IKE policies that belong to a tenant.
      vpn-ikepolicy-show                Show information of a given IKE policy.
      vpn-ikepolicy-update              Update a given IKE policy.
      vpn-ipsecpolicy-create            Create an IPsec policy.
      vpn-ipsecpolicy-delete            Delete a given IPsec policy.
      vpn-ipsecpolicy-list              List IPsec policies that belong to a given tenant connection.
      vpn-ipsecpolicy-show              Show information of a given IPsec policy.
      vpn-ipsecpolicy-update            Update a given IPsec policy.
      vpn-service-create                Create a VPN service.
      vpn-service-delete                Delete a given VPN service.
      vpn-service-list                  List VPN service configurations that belong to a given tenant.
      vpn-service-show                  Show information of a given VPN service.
      vpn-service-update                Update a given VPN service.
    (neutron-server)[neutron@B-OPS-9-3 /]$ 
    展开全文
  • Neutron命令测试3

    2015-10-22 11:37:00
    1、打开Ubuntu的/etc/network/interfaces文件 。默认内容如下 auto lo iface lo inet loopback ... dhcp也可以在命令行下直接输入下面的命令来获取地址sudo dhclient eth0 3、如果你想配置静态IP地址,你...

    1、打开Ubuntu的/etc/network/interfaces文件 。默认内容如下

       auto lo iface lo inet loopback 

     

    2、如果以DHCP方式配置网卡,则改为:auto eth0 iface eth0 inet

       dhcp也可以在命令行下直接输入下面的命令来获取地址sudo dhclient eth0

     

    3、如果你想配置静态IP地址,你需要编辑/etc/network/interfaces,并输入以下几行(假设你的网卡是eth0)

    sudo vi /etc/network/interfaces

    # The primary network interface

    auto eth0

    iface eth0 inet static   //指定为static

    address 192.168.17.110   //IP地址

    gateway 192.168.17.1   //网关

    netmask 255.255.255.0   //子网掩码

    network 192.168.17.0   //这个广播网络 有没有匀可

    broadcast 192.168.17.255   //广播 有没有匀可

     

    4、编辑好以后步骤后退出,重新启动你的网络设备

      sudo /etc/init.d/networking restart

     

    5、设置Ubuntu网络配置系统的hostname使用以下命令格式来改系统的hostname,或者直接编辑/etc/hostname sudo hostname xchen 来设置DNS

    sudo vi /etc/resolv.conf  

    enter the following details  

    search test.com  

    nameserver 192.168.17.2

     

    * 重启网卡使用  

    sudo service network-manager restart

    sudo /etc/init.d/networking restart

    sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a

    http://askubuntu.com/questions/441619/how-to-successfully-restart-a-network-without-reboot-over-ssh/442333

    https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1301015

     

    sudo ovs-vsctl show

    sudo ovs-vsctl add-port br-ex eth0

    route -n

    route add default gw 192.168.98.1

    ifconfig br-ex

    ifconfig eth0

     

    iptables -I FORWARD 1 -j ACCEPT

    /proc/sys/net/ipv4/ip_forward=1

    sysctl -w net.ipv4.ip_forward=1
    或者
    echo 1 > /proc/sys/net/ipv4/ip_forward

     

    sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a

    转载于:https://www.cnblogs.com/edisonxiang/p/4900384.html

    展开全文
  • Neutron命令测试1

    2015-10-21 15:10:00
    Refer: http://wenku.baidu.com/link?url=DtrbhO0A393hg8kOWKX0XYuZtSC8Iu0occn8NF1pYcUwNzlaSq5qXCQoNEBDMP5yTakMepoP_ZFheNu9j0MRnlF138wWctprLyiWGGaVl__ 1.在/etc/network/interfaces中修改eth0网络配置信息 ...

    Refer: http://wenku.baidu.com/link?url=DtrbhO0A393hg8kOWKX0XYuZtSC8Iu0occn8NF1pYcUwNzlaSq5qXCQoNEBDMP5yTakMepoP_ZFheNu9j0MRnlF138wWctprLyiWGGaVl__

    1.在/etc/network/interfaces中修改eth0网络配置信息

    # interfaces(5) file used by ifup(8) and ifdown(8)
    # auto lo
    # iface lo inet loopback
    auto eth0
    iface eth0 inet manual
      up ifconfig $IFACE 0.0.0.0 up
      up ip link set $IFACE promiss on
      down ip link set $IFACE promiss off
      down ifconfig $IFACE down
    auto br-ex
      iface br-ex inet static
      address 192.168.98.118
      netmask 255.255.255.0
      gateway 192.168.98.1
      dns-nameservers 192.168.98.1

    2.br-ex挂物理网口

    sudo ovs-vsctl add-port br-ex eth0;sudo service networking restart;

     

    jay@jay:/$ ifconfig
    br-ex Link encap:Ethernet HWaddr de:3b:a6:1d:2b:48
    inet addr:172.24.4.1 Bcast:0.0.0.0 Mask:255.255.255.0
    inet6 addr: 2001:db8::2/64 Scope:Global
    inet6 addr: fe80::50db:a2ff:fe9b:dcb8/64 Scope:Link
    UP BROADCAST RUNNING MTU:1500 Metric:1
    RX packets:288 errors:0 dropped:0 overruns:0 frame:0
    TX packets:222 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:23953 (23.9 KB) TX bytes:18357 (18.3 KB)

    br-int Link encap:Ethernet HWaddr 52:74:74:73:8e:4f
    inet6 addr: fe80::34d3:cfff:fe03:bd99/64 Scope:Link
    UP BROADCAST RUNNING MTU:1500 Metric:1
    RX packets:363870 errors:0 dropped:0 overruns:0 frame:0
    TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:64479423 (64.4 MB) TX bytes:828 (828.0 B)

    br-tun Link encap:Ethernet HWaddr ba:34:3f:46:87:4a
    inet6 addr: fe80::e8d4:65ff:fe5b:f6af/64 Scope:Link
    UP BROADCAST RUNNING MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:828 (828.0 B)

    eth0 Link encap:Ethernet HWaddr 00:0c:29:77:37:03
    inet addr:192.168.98.118 Bcast:192.168.98.255 Mask:255.255.255.0
    inet6 addr: fe80::20c:29ff:fe77:3703/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1308967 errors:0 dropped:0 overruns:0 frame:0
    TX packets:422217 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1345478842 (1.3 GB) TX bytes:251807902 (251.8 MB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:17750721 errors:0 dropped:0 overruns:0 frame:0
    TX packets:17750721 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:10375495620 (10.3 GB) TX bytes:10375495620 (10.3 GB)

    qbrf1057be6-7b Link encap:Ethernet HWaddr 3a:ad:c4:60:b3:07
    inet6 addr: fe80::68cb:2fff:fe31:1fc5/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1655 errors:0 dropped:0 overruns:0 frame:0
    TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:240393 (240.3 KB) TX bytes:15036 (15.0 KB)

    qvbf1057be6-7b Link encap:Ethernet HWaddr 3a:ad:c4:60:b3:07
    inet6 addr: fe80::38ad:c4ff:fe60:b307/64 Scope:Link
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
    RX packets:1415 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1932 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:264744 (264.7 KB) TX bytes:295821 (295.8 KB)

    qvof1057be6-7b Link encap:Ethernet HWaddr 56:81:57:31:e8:64
    inet6 addr: fe80::5481:57ff:fe31:e864/64 Scope:Link
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
    RX packets:1932 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1415 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:295821 (295.8 KB) TX bytes:264744 (264.7 KB)

    tapf1057be6-7b Link encap:Ethernet HWaddr fe:16:3e:99:2f:29
    inet6 addr: fe80::fc16:3eff:fe99:2f29/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:570 errors:0 dropped:0 overruns:0 frame:0
    TX packets:322 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:500
    RX bytes:33526 (33.5 KB) TX bytes:39030 (39.0 KB)

    virbr0 Link encap:Ethernet HWaddr 9a:32:d4:22:82:bd
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

     

    jay@jay:/$ sudo ovs-vsctl show
    ffb10140-e5b7-4bcb-bdf2-01fda505c6e0
    Bridge br-ex
    Port "qg-c131f153-14"
    Interface "qg-c131f153-14"
    type: internal
    Port br-ex
    Interface br-ex
    type: internal
    Port "qg-1b3c8bb4-21"
    Interface "qg-1b3c8bb4-21"
    type: internal
    Bridge br-tun
    fail_mode: secure
    Port br-tun
    Interface br-tun
    type: internal
    Port patch-int
    Interface patch-int
    type: patch
    options: {peer=patch-tun}
    Bridge br-int
    fail_mode: secure
    Port "qr-62820738-62"
    tag: 1
    Interface "qr-62820738-62"
    type: internal
    Port br-int
    Interface br-int
    type: internal
    Port "qvof1057be6-7b"
    tag: 11
    Interface "qvof1057be6-7b"
    Port "tap6a6b3149-0f"
    tag: 11
    Interface "tap6a6b3149-0f"
    type: internal
    Port "qr-bbbfee1b-f7"
    tag: 1
    Interface "qr-bbbfee1b-f7"
    type: internal
    Port patch-tun
    Interface patch-tun
    type: patch
    options: {peer=patch-int}
    Port "tap623dc764-d1"
    tag: 1
    Interface "tap623dc764-d1"
    type: internal
    ovs_version: "2.0.2"

    转载于:https://www.cnblogs.com/edisonxiang/p/4897874.html

    展开全文
  • Neutron常用命令

    2021-04-12 20:06:35
    列出当前所有网络 neutron net-list Neutron命令参考

    列出当前所有网络

    neutron net-list
    

    Neutron命令参考

    展开全文
  • openstack常用命令-neutron

    千次阅读 2018-11-27 14:33:55
    neutron net-list 列出所有租户的所有网络(需要管理员权限) neutron net-list --all-tenants 创建一个网络(vlan/flat) neutron net-create public --shared --provider:network_type vlan --provider:...
  • 创建虚拟机使用命令创建一个名为test,ID为1234,内存为2048 MB,磁盘为20 GB,vCPU数量为2的云主机类型 # nova flavor-create test 1234 2048 20 2 查看云主机类型详细信息 # nova flavor-show test Neutron ...
  • 【转载】neutron创建network执行的那些命令原文地址:http://www.cnblogs.com/popsuper1982/p/3849822.html 当搭建完openstack之后,在创建instance之前,第一件事情就是创建network,一个经典的流程如下: ...
  • 在命令行里运行neutron命令 结果会出现这个这个错误,不知道别人有咩遇到过 从代码看了一段时间也没发现问题所在 后来在neutron.conf的配置文件中把api_config_file这个文件的注释取消 然后重启neutron 就好了  ...
  • neutron基础一(网络基本命令

    千次阅读 2016-01-18 20:35:16
    [b]基本命令,包括veth peer[/b] [code="java"]ip addr ip link tcpdump -i veth1 -e -v route -n ip route arp ethtool -S veth0 ip link add type veth ip link set dev veth0 up ip addr add...
  • neutron-server

    2020-02-22 15:27:41
    openstack kilo版本与H3C VCF对接中,当插件安装完成后service neutron-server restart无法重启neutron服务,使用此脚本冲洗,重启命令/etc/init.d/neutron-w start
  • neutron-----常用命令

    2019-02-21 18:05:00
    #查看子网 openstack subnet list #删除子网 openstack subnet delete name/id #查看网络 openstack network list #删除网络 openstack network delete name/id 转载于:...
  • 理解 neutron

    2018-01-03 18:55:00
    neutron 网络总览 (gitbook) 之前大师发个结构图. understanding_neutron.pdf 自己走读了代码: 1. get_extensions_path() # 在/opt/stack/neutron/neutron/api/extensions.py 中, get_extensions_path() ...
  • neutron的dvr

    2018-04-21 21:21:44
    作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujianchengOpenStack 用户可能会发现,按照 Neutron 原先的设计,所有网络服务都在网络节点上进行,这意味着大量的流量和处理,给网络节点带来了很大的压力。...
  • Openstack Neutron 专题

    2019-07-02 14:29:48
    1.构架 2.代码 3.cmd neutron net-list neutron router-list neutron security-group-list neutron security-group-show b4850001-security-group-id neutron security-group-rule...neutron security-group-ru...
  • neutron DVR

    2018-04-12 18:09:00
    DVR 简介 ...在 DVR 被提出之前, 由于 Neutron 的 legacy router 只会部署在网络节点上,因此会造成网络节点的流量过大,从而产生了两个问题,其一是网络节点将成为整个 Neutron 网络的瓶颈,其...
  • neutron

    2019-04-20 10:09:00
    第四篇neutron— 网络实践 一、虚拟机获取 ip: 用 namspace 隔离 DHCP 服务 Neutron 通过 dnsmasq 提供 DHCP 服务,而 dnsmasq通过 Linux Network Namespace独立的为每个 network 服务隔离 在二层网络上...
  • Neutron源码结构

    千次阅读 2018-04-08 20:39:39
    Neutron源码目录结构--bin -包括下面两个工具,基于oslo.rootwrap提供利用root权限执行命令的接口 |--neutron-rootwrap |--neutron-rootwrap-xen-dom0 --doc -用于文档生成 --etc -各种配置文件,基本上都会在...
  • neutron l3 agent

    千次阅读 2015-08-26 10:13:53
    neutron l3作为一种API扩展,向租户提供了路由和NAT功能。 l3扩展包含两种资源: router:在不同内部子网中转发数据包;通过指定内部网关做NAT。每一个子网对应router上的一个端口,这个端口的ip就是子网的...
  • Neutron升级规划

    2019-07-17 20:04:11
    本文档的大部分内容讨论通过Neutron agents实现的升级相关考虑。期望于每个Neutron插件提供其自身的特定于后端选择的升级讨论文档。例如,OVN不使用Neutron agent,但是确实有本地控制器运行在每个计算节点。OVS支持...
  • Neutron 基本概念

    2019-09-21 10:51:43
    Neutron中“网络”是一个可以被用户创建的对象,如果要和物理环境下的概念映射的话,这个对象相当于一个巨大的交换机,可以拥有无限多个动态可创建和销毁的虚拟端口 子网 子网是由一组IP地址组成的地址池。不同子网...
  • Neutron代码结构

    2017-12-26 10:41:37
    Neutron的代码交互稍显复杂,对于理解底层网络原理的同学可能比较容易理解;代码也在不断的被完善和添加新的feature中,所以neutron的代码结构在不断变化中,应该用不变的网络原理去理解上层可能千变万化的neutron...
  • Neutron dhcp实现

    千次阅读 2018-04-18 15:26:58
    概述Neutron dhcp实现了为虚机提供动态分配IP的服务,dhcp功能由neutron-server和dhcp-agent配合实现。其中server负责接收请求并向agent发送网络、子网、端口等数据;agent接收数据,创建、配置dhcp实例。社区的dhcp...
  • neutron server
  • opentack neutron环境

    2014-08-27 14:53:25
    Neutron是OpenStack核心项目之一,提供云计算环境下的虚拟网络功能。Neutron的功能日益强大,并在Horizon面板中已经集成该模块。作为Neutron的核心开发者之一,个人觉得Neutron完全代替Nova Network模块作为云计算...
  • 本文转载自:...学习 Neutron 系列文章: (1)Neutron 所实现的网络虚拟化 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)NeutronOpenvSwitch + GRE/VxLAN 虚拟网络 (4)Neut...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 5,158
精华内容 2,063
关键字:

neutron命令