KVM: Configure libvirt Network
You can update the network configuration for your KVM installation using the command line using the virsh command.
To list all of the available network enter the following command. The --all will is used to include the inactive networks:
# virsh net-list --allName State Autostart-----------------------------------------default active yesNattedNetwork active yes
Find Your External IP Address
It’s easy to find your internal IP address my using tools like ifconfig or ip a but to find your external IP address (the one that connects you to the outside world) you must use other means. Here are 3 simple commands that you can use to do just that:
$ curl ifcfg.me72.76.yyy.xxx$ curl icanhazip.com72.76.yyy.xxx$ nslookup myip.opendns.com. resolver1.opendns.comServer: resolver1.opendns.comAddress: 208.67.222.222#53Non-authoritative answer:Name: myip.opendns.comAddress: 72.76.yyy.xxx