Networking in AHV using aCLI -101

Unmanaged network is same as you create in ESXi where vSwitch does the VLAN tagging/untagging

net.create ProdNetwork annotation=ProdNet vlan=99

image


And this is how it looks at GUI, Network with ProdNetwork is created with annotation is ProdNet and VLAN ID = 99

image

If you wish to a create managed network (a.k.a. DHCP Pool), recreate it with the ip_config parameter as shown below.

net.create networkwithPool annotation=NetwithDHCPPool ip_config=192.168.4.1/24 vlan=108 mtu=9000 dhcp_address=192.168.4.5

image


net.add_dhcp_pool networkwithPool start=192.168.4.30 end=192.168.4.40

image


net.update_dhcp_dns networkwithPool servers=192.168.1.1,192.168.1.2 domains=vzare.com,in.vzare.com

image


Check which VMs are connected to Production network

below lists down the networks

net.list

image

Now we wish to know which VMs are listed against Production network

net.list_vms Production

image

How to check what is the configured in these networks?

net.get networkwithPool

image

Below you see the GUI screen pasted

image