过程:
- 安装Centos-7-Minimal
- 更换阿里云源
wget http://mirrors.aliyun.com/repo/Centos-7.repo #下载阿里云repo文件 cp ./Centos-7.repo /etc/yum.repo.d/Centos-Base.repo #复制阿里云repo到系统目录
-
安装quagga
yum install quagga
-
如果虚拟机作为路由器,那么需要多网卡,在宿主机中使用KVM添加网卡
#virsh attach-interface vm_name --type bridge --source network_card_name --config virsh attach-interface centos-01 --type bridge --source br0 --config #添加完成后 virsh edit vm_name即可看见已添加的网卡
-
ip a