Assign Static IP to 2nd nic in Hyper V Server

Hi

Im trying to assign a static IP to a second nic i installed for remote admin on a Hyper V Server (No GUI) using command line i get this error:

C:\Users\administrator>netsh interface ipv4 set address name="Local Area Connect
ion 3" source=static address=192.168.16.250 mask=255.255.255.0 gateway 192.168.16.254
The filename, directory name, or volume label syntax is incorrect.

below are ipconfig /all results efore trying to assign static ip

Configuration for interface "Local Area Connection 3"
    DHCP enabled:                         Yes
    IP Address:                           192.168.16.106
    Subnet Prefix:                        192.168.16.0/24 (mask 255.255.255.0)
    Default Gateway:                      192.168.16.254
    Gateway Metric:                       0
    InterfaceMetric:                      10
    DNS servers configured through DHCP:  192.168.16.2
    Register with which suffix:           Primary only
    WINS servers configured through DHCP: None
nostrasystemsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobinHumanCommented:
Have you included the "=" sign in front of the gateway address?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nostrasystemsAuthor Commented:
u are spot on sorry my bad :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.