Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

netsh question


  • Please log in to reply

#1
PeterJ

PeterJ

    Visiting Consultant

  • Visiting Consultant
  • 22 posts

Hi,

 

Trying to help someone with a Dutch computer having both a wired networkcard and wi-fi installed. These sometimes fail to work when swapping between wi-fi to the wired connection or vice-versa.

Tried to add some "set interface" lines using the netsh command.

The following commands do not work.

netsh interface ipv4 set interface "LAN-verbinding* 9" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
netsh interface ipv4 set interface "Wi-Fi" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled

Returns with the message "incorrect parameter"

 

 What is wrong ?


  • 0

Advertisements


#2
RKinner

RKinner

    Malware Expert

  • Expert
  • 21,335 posts
  • MVP

Best to run (from an elevated command prompt):

netsh interface ipv4 show interfaces

Which gives something like:

 

 

Idx     Met         MTU          State                Name
---  ----------  ----------  ------------  ---------------------------
 12          35        1500  connected     Ethernet
  1          75  4294967295  connected     Loopback Pseudo-Interface 1

 

 

 

then use the index number  (Idx) of the interface.  Also note the State of the interface.  If it says disconnected nothing you do is going to have an effect.

netsh interface ipv4 set interface "12"

Ok.

 

Then add each parameter one at a time and see which one is causing the problem.  For what it is worth I don't see the need for any of your parameters.  The "netsh interface ipv4 set interface" command is not going to switch from using one interface to the other.  If the interface doesn't show "connected" in "netsh interface ipv4 show interfaces" it's not going to work.

 

Instead of netsh I would look at device manager

then right click on each network adapter and select Properties then Power Management (tab).  Uncheck

"Allow the computer to turn off this device to save power"

then hit OK.

 

Windows sometimes doesn't turn the adapter back on when it should.

 

Also look at newer drivers for your adapters.  Realtek in particular has had problems with Win 10.  Don't trust Windows to know if the drivers are the best.  Get them directly from the maker's site.

 

You might also look at

netstat -rn | more

(from an elevated command prompt)

Look at the metric for each IPv4 interface.  Assume you would want it to use the Ethernet if both were active so its metric should be set lower than than that of the WiFi

 

https://www.howtogee...rds-in-windows/


  • 0






Similar Topics

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP