Announcement

Collapse
No announcement yet.

Changing Gateway

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing Gateway

    I have an existing gateway on my LAN that I need to change to a new IP.(Windows Network) I want to change this gateway on all workstations remotely without having to go to each machine. I look at the NETSH command but I don't see anything to change it on all machine at once or when the pc comes up on the network. I guess what I'm asking is this possible to do this??

    Thank you.

    Paul

  • #2
    Re: Changing Gateway

    You may be able to put the following command in a logon, shutdown, or logoff script:

    netsh interface ip set address name="Local Area Connection" gateway=x.x.x.x gwmetric=1

    In the above example I'm assuming that you haven't change the default name of the nic to something else. Maybe someone else can chime in and provide a better solution.

    Ryan
    Last edited by ryansmitty; 9th April 2008, 19:31.

    Comment


    • #3
      Re: Changing Gateway

      I guess a shutdown or a startup script is the best solution.
      Maybe it's better to migrate straight away to DHCP.
      Marcel
      Technical Consultant
      Netherlands
      http://www.phetios.com
      http://blog.nessus.nl

      MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
      "No matter how secure, there is always the human factor."

      "Enjoy life today, tomorrow may never come."
      "If you're going through hell, keep going. ~Winston Churchill"

      Comment


      • #4
        Re: Changing Gateway

        Ok thank you I got it, I just went back to PSTOOLS and ran it from there.


        Thank you for help...

        Comment

        Working...
        X