• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

DOS Command to assign/delete Gateway

JucyTEC

Limp Gawd
Joined
Aug 23, 2002
Messages
228
Can i assign gateway for NIC#1 and NIC#2 via dos command(s)?

I've been doing this via NIC Properties and it's very tedious...

I'd like to just create a batch file and leave it at my desktop...

Thanks in advance.
 
netsh does that, though I don't know if it commits the change permanently or temporarily.

netsh int ip add address "Local Area Connection" gateway=<ip addr> gwmetric=1
 
How do i use this?

netsh int ip add address "Local Area Connection" gateway=<ip addr> gwmetric=1

If i want to delete Gateway:
netsh int ip add address "Broadcom" gateway= gwmetric=1

If i want to add Gateway:
netsh int ip add address "Broadcom" gateway=1.1.1.1 gwmetric=1

is this correct?
 
NVM i figured it out... thanks for your help...

I used the following in the command file

netsh interface ip delete address "Broadcom" gateway=1.1.1.1
pause
netsh interface ip add address "Broadcom" gateway=1.1.1.1 gwmetric=1
 
NVM i figured it out... thanks for your help...

I used the following in the command file

netsh interface ip delete address "Broadcom" gateway=1.1.1.1
pause
netsh interface ip add address "Broadcom" gateway=1.1.1.1 gwmetric=1

I don't think you need the pause the command.
 
Back
Top