RHEL7: nmcli网络连接管理

team;

看网卡设备

[root@rhel7-0 network-scripts]# nmcli dev status
DEVICE  TYPE      STATE         CONNECTION 
ens3    ethernet  connected     ens3       
ens6    ethernet  disconnected  --         
ens7    ethernet  disconnected  --         
lo      loopback  unmanaged     --   
[root@rhel7-0 ~]# nmcli device show ens3
GENERAL.DEVICE:                         ens3
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         52:54:00:28:5D:1A
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     ens3
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/1
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         ip = 192.168.122.179/24, gw = 192.168.122.1
IP4.DNS[1]:                             192.168.122.1
IP6.ADDRESS[1]:                         ip = fe80::5054:ff:fe28:5d1a/64, gw = ::

看网络连接的详细信息

[root@rhel7-0 ~]# nmcli con show ens3
connection.id:                          ens3
connection.uuid:                        c078b66a-de02-4165-8026-a7b6f8fe8048
connection.interface-name:              ens3
connection.type:                        802-3-ethernet
connection.autoconnect:                 yes

创建网络连接

[root@rhel7-0 ~]# nmcli connection add con-name ens6 type ethernet ifname ens6 
Connection 'ens6' (3cf83be9-7038-4061-87f9-2f58cf065240) successfully added.
[root@rhel7-0 ~]# 
[root@rhel7-0 ~]# nmcli connection add con-name ens7 type ethernet ifname ens7 
Connection 'ens7' (3e3776e3-fe5f-4f77-8f61-c47428eaf4d6) successfully added.

继续阅读“RHEL7: nmcli网络连接管理”

Android Studio: 用KVM加速模拟

如果是在Linux上进行开发,可以用KVM来加速Android模拟器。

参考文档

http://developer.android.com/tools/devices/emulator.html#accel-vm

How to Install KVM and Create Virtual Machines on Ubuntu

测试环境

Ubuntu 14.04
Android Studio 1.0

配置过程

1. 安装KVM

$ sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

继续阅读“Android Studio: 用KVM加速模拟”