-
1. Re: How to Disable or enable vmnic in esx4.1
RAJ_RAJ Sep 4, 2012 1:22 AM (in response to RAJ_RAJ)Any ideas .........
RAJESH RADHAKRISHNAN
VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA
https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335
Mark my post as "helpful" or "correct" if I've helped resolve or answered your query! -
2. Re: How to Disable or enable vmnic in esx4.1
spravtek Sep 4, 2012 1:41 AM (in response to RAJ_RAJ)Did you try
i tired vmkchdev -v 000:001:00.1
or rather vmkchdev -v 000:001:00.01 ?
Besides that ... I can't check on a test system at the moment ... so ...
-
3. Re: How to Disable or enable vmnic in esx4.1
RAJ_RAJ Sep 4, 2012 1:46 AM (in response to spravtek)Both ahving same out put
vmkchdev failed with 0xbad0004
RAJESH RADHAKRISHNAN
VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA
https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335
Mark my post as "helpful" or "correct" if I've helped resolve or answered your query! -
4. Re: How to Disable or enable vmnic in esx4.1
spravtek Sep 4, 2012 1:52 AM (in response to RAJ_RAJ)After the vmkchdev -v did you do a vim-cmd hostsvc/net/refresh ?
-
5. Re: How to Disable or enable vmnic in esx4.1
RAJ_RAJ Sep 4, 2012 1:54 AM (in response to spravtek)yes ,
but vmnic1 is not showing .
RAJESH RADHAKRISHNAN
VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA
https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335
Mark my post as "helpful" or "correct" if I've helped resolve or answered your query! -
6. Re: How to Disable or enable vmnic in esx4.1
spravtek Sep 4, 2012 1:59 AM (in response to RAJ_RAJ)I think a reboot is needed to get the functionality back ... Unless you configured it to be persistent?
-
7. Re: How to Disable or enable vmnic in esx4.1
LuigiC Sep 4, 2012 1:43 PM (in response to spravtek)I'm not sure if this applies to 4.1 but ..on 5.0 we can run :
# esxcfg-vswitch -l
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch0 128 4 128 1500 vmnic0PortGroup Name VLAN ID Used Ports Uplinks
VM Network 0 1 vmnic0
Management Network 0 1 vmnic0Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch1 128 6 128 1500 vmnic2,vmnic3PortGroup Name VLAN ID Used Ports Uplinks
VSANET/vMotion 0 1 vmnic2,vmnic3
VMkernel for iSCSI/vMotion II 0 1 vmnic3
VMkernel for iSCSI/vMotion I 0 1 vmnic2and
# esxcfg-vmknic -l
Interface Port Group/DVPort IP Family IP Address Netmask Broadcast MAC Address MTU TSO MSS Enabled Type
vmk0 Management Network IPv4 16.87.157.68 255.255.252.0 16.87.159.255 00:17:a4:77:0c:1c 1500 65535 true STATIC
vmk1 VMkernel for iSCSI/vMotion IIPv4 0.0.0.0 0.0.0.0 0.0.0.0 00:50:56:73:5b:81 1500 65535 true DHCP
vmk2 VMkernel for iSCSI/vMotion IIIPv4 169.254.0.1 255.255.0.0 169.254.255.255 00:50:56:77:f9:e9 1500 65535 true DHCPand you can disable a vmk ...
# esxcfg-vmknic -h
esxcfg-vmknic <options>
-a|--add Add a VMkernel NIC to the system,
requires IP parameters and
connection point(portgroup/dvs-name & dvport-id).
-d|--del Delete VMkernel NIC on the system
requires connection point(portgroup/dvs-name & dvport-id).
-e|--enable Enable the given NIC if disabled.
-D|--disable Disable the given NIC if enabled.
-p|--portgroup Setting portgroup as connection point.
-s|--dvs-name Setting DVSwitch name of the connection point.
This requires --dvport-id option to
be given in the same command.
-v|--dvport-id Setting DVPort ID of connection point.
This requires --dvs-name option to
be given in the same command.
-l|--list List VMkernel NICs.
-i|--ip <IP Spec> Where <IP Spec> can be one of the following...
<X.X.X.X> - to use static IPv4 address specified
DHCP - to enable IPv4 DHCP for address.
<X:X:X::/X> - to use static IPv6 address
DHCPV6 - to enable IPv6 DHCP for address.
AUTOCONF - to enable IPv6 Router advertised address.
-U|--unset-ip <IP Spec> Where <IP Spec> can be one of the following...
V4 - to unset IPv4 address.
<X:X:X::/X> - to remove the specified IPv6 address
DHCPV6 - to disable IPv6 DHCP address.
AUTOCONF - to disable IPv6 Router advertised flag.
-n|--netmask <X.X.X.X> The IP netmask for this VMkernel NIC.
Setting the IP netmask requires that the --ip
option be given in the same command.
-P|--peerdns Set peer dns. If set the system
will use the HostName, HostIPAddress
Domain returned by DHCP. Valid only for DHCP
-m|--mtu MTU MTU for the interface being created.
vmknic being created.
Valid MTU values are 1280-9000
-6|--enable-ipv6 <true|false> Enable or disable IPv6 for next boot.
-r|--restore Restore VMkernel TCP/IP interfaces from
Configuration file (FOR INTERNAL USE ONLY).
-h|--help Show this message.Examples:
To add a vmknic to a portgroup
esxcfg-vmknic -a -i DHCP -p pgName
or
esxcfg-vmknic -a -i x.x.x.x -n 255.255.255.0 pgNameTo delete a vmknic from a portgroup
esxcfg-vmknic -d -p pgName
or
esxcfg-vmknic -d pgNamehope that helps ..
-
8. Re: How to Disable or enable vmnic in esx4.1
RAJ_RAJ Sep 5, 2012 1:00 AM (in response to LuigiC)Not working this one.
RAJESH RADHAKRISHNAN
VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA
https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335
Mark my post as "helpful" or "correct" if I've helped resolve or answered your query! -
9. Re: How to Disable or enable vmnic in esx4.1
mittell Sep 5, 2012 1:02 AM (in response to RAJ_RAJ)Hello IT. Did you switch it off and on again?
-
10. Re: How to Disable or enable vmnic in esx4.1
RAJ_RAJ Dec 9, 2012 11:34 PM (in response to mittell)After a hard reboot , it started working .
RAJESH RADHAKRISHNAN
VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA
https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335
Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!