If network cable is plugged route command fails to add gateway RRS feed

  • Question

  • Network cable is plugged and connection is established.

    In the above state, i am setting the IP address using below commands:

    netsh interface ip set address "Local Area Connection" static address= mask= gateway=
    netsh interface ip set dnsservers name="Local Area Connection" static primary no
    route delete
    route -p add mask

    After the executing above commands, gateway field is blank and internet connection is gone.

    However the above mentioned commands work properly in network cable unplugged state.

    Please let me know why "route" command is not able set gateway in case of network cable plugged state.

    Monday, January 11, 2016 3:59 PM

All replies

  • Does the computer have more than one network card?
    Monday, January 25, 2016 8:02 PM