Jump to content

Setting default gateway in powershell

Go to solution Solved by Spev,
21 minutes ago, Spev said:

Anyone can help with this? Yes it needs to be done in powershell. I tried the Set-NetIPAddress but I don't see any kind of switch for setting the default gateway.

Have to use New-NetIPAddress and a switch is available. Not sure of the difference between set/new though.

Anyone can help with this? Yes it needs to be done in powershell. I tried the Set-NetIPAddress but I don't see any kind of switch for setting the default gateway.

Current PC build: [CPU: Intel i7 8700k] [GPU: GTX 1070 Asus ROG Strix] [Ram: Corsair LPX 32GB 3000MHz] [Mobo: Asus Prime Z370-A] [SSD: Samsung 970 EVO 500GB primary + Samsung 860 Evo 1TB secondary] [PSU: EVGA SuperNova G2 750w 80plus] [Monitors: Dual Dell Ultrasharp U2718Qs, 4k IPS] [Case: Fractal Design R5]

Link to comment
https://linustechtips.com/topic/627217-setting-default-gateway-in-powershell/
Share on other sites

Link to post
Share on other sites

21 minutes ago, Spev said:

Anyone can help with this? Yes it needs to be done in powershell. I tried the Set-NetIPAddress but I don't see any kind of switch for setting the default gateway.

Have to use New-NetIPAddress and a switch is available. Not sure of the difference between set/new though.

Current PC build: [CPU: Intel i7 8700k] [GPU: GTX 1070 Asus ROG Strix] [Ram: Corsair LPX 32GB 3000MHz] [Mobo: Asus Prime Z370-A] [SSD: Samsung 970 EVO 500GB primary + Samsung 860 Evo 1TB secondary] [PSU: EVGA SuperNova G2 750w 80plus] [Monitors: Dual Dell Ultrasharp U2718Qs, 4k IPS] [Case: Fractal Design R5]

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×