差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
osprovision:kickstart:vmware_esxi:debug_commands [2020/02/20 15:06] tony |
osprovision:kickstart:vmware_esxi:debug_commands [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 2: | 行 2: | ||
====== VMWare ESXI Provision - Debug常用指令 ====== | ====== VMWare ESXI Provision - Debug常用指令 ====== | ||
===== Network Related Command ===== | ===== Network Related Command ===== | ||
+ | 在pure IPv6環境下,可以使用以下cmd去避免dhcp取不到而發生錯誤的情形: | ||
+ | <code bash> | ||
+ | esxcfg-vmknic -U V4 "Management Network" | ||
+ | </code> | ||
+ | List vmknic info: | ||
+ | <code bash> | ||
+ | localcli network vswitch standard list | ||
+ | localcli network ip interface list | ||
+ | </code> | ||
Add vmknic: | Add vmknic: | ||
<code bash> | <code bash> | ||
行 10: | 行 19: | ||
localcli network ip interface add --interface-name=vmk1 --portgroup-name=VMkernel1 | localcli network ip interface add --interface-name=vmk1 --portgroup-name=VMkernel1 | ||
localcli network ip interface ipv4 set --interface-name=vmk1 --type=dhcp | localcli network ip interface ipv4 set --interface-name=vmk1 --type=dhcp | ||
+ | # localcli network ip interface ipv6 set --interface-name=vmk1 -d true -r true | ||
+ | localcli network ip interface ipv6 set --interface-name=vmk1 --enable-dhcpv6=true --enable-router-adv=true | ||
</code> | </code> | ||
Remove vmknic: | Remove vmknic: | ||
行 49: | 行 60: | ||
localcli hardware pci list | localcli hardware pci list | ||
</code> | </code> | ||
+ | ===== Reference ===== | ||
+ | * [[https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vcli.ref.doc_50%2Fesxcli_network.html|esxcli network Commands]] | ||
+ | * [[https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vcli.migration.doc_50%2Fcos_upgrade_technote.1.7.html|Retrieving Networking Information]] | ||
===== ===== | ===== ===== | ||
---- | ---- | ||
\\ | \\ | ||
~~DISQUS~~ | ~~DISQUS~~ |