nmcli(NetworkManager CLI)에서의 개념
- device(network interface): 물리 또는 가상의 네트워크 인터페이스
- connection : L2 및 L3 네트워크 설정 집합
(이해)
-> 하나의 device 는 여러개의 connection을 가질 수 있다.
-> 하나의 device 는 한 개의 활성 connection을 가질 수 있다.
-> 하나의 connection은 하나의 device에 설정된다.
네트워크 브릿지 관련 명령어
# nmcli connection add type bridge con-name br0 ifname br0
# nmcli c add type wifi slave-type bridge con-name br0-wifi ifname wlo1
# nmcli dev status
nmcli wifi 연결
# nmcli d wifi list
# nmcli d wifi connect {SSID} password {PASSWORD}
관련 설치
# apt install
qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils vertinst vert-manager
# apt install
qemu-kvm libvirt-daemon-system libvirt-daemon virtinst bridge-utils libosinfo-bin
virsh 관련 명령어
# virsh list [--all]
# virsh shutdown {vmName | Id}
# virsh console {vmName | Id}
# virsh undefine {vmName}
# virsh net-list
# virsh destroy {vmName | Id}
virt-install VM 생성 명령어
# virt-install --name mb-01 --memory 4096 --vcpus 2 --disk size=20 --graphics none --network network=default --console pty,target.type=virtio --autoconsole text --location /data/iso/Rocky-9.4-x86_64-minimal.iso
------------------------진행 간 문제
- Failed to add 'br0-wifi' connection: connection.controller: Slave connections need a valid 'controller' property
- nmcli로 브리지에 커넥션 추가하면 커넥션 disconnect되고 네트워크 안됨
- brctl로 브리지에 addif하면
"can't add wlo1 to bridge br0: Operation not supported" 라고 뜸