Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Install Windows server and config static ip on wholesaleinternet server
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Install Windows server and config static ip on wholesaleinternet server

javimusejavimuse Member
edited August 2017 in Help

Hello, I need help to config static ip on my wholesaleinternet server:

Dual Xeon E5-2670 96GB 2x480GB SSD 1Gbps (100TB)

I installed successfully Windows Server (2012R2 and 2016) with QEMU but wholesaleinternet use static ip and I cant config, I need a script to config this on next reboot with task Task Scheduler, I try with this:

netsh interface ipv4 set address name="Ethernet 2" static 198.204.2xx.xxx 255.255.255.248 198.204.2xx.xxx

netsh interface ipv4 set dns name="Ethernet 2" static 192.187.107.16

netsh interface ipv4 add dns name="Ethernet 2" 69.30.209.16 index=2 

But dont works, also I found a script on WSI Windows Server 2008R2 template:

@echo off
IF EXIST C:\ipdone.txt exit
timeout 60
for /f "tokens=2 delims==" %%F in ('wmic nic where "NetConnectionStatus=2 and AdapterTypeId=0 and Speed=10000000000" get NetConnectionID /format:list') do set interfaceName=%%F
netsh interface ip set address "%interfaceName%" static addr=198.204.2xx.xxx mask=255.255.255.248 gateway=198.204.2xx.xxx 1
net user Administrator n9ojgq4xxxx
type nul >>C:\ipdone.txt
sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
sc.exe config mrxsmb10 start= disabled
powershell C:\disablesmb.ps1
netsh advfirewall set allprofile state on
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=445 name="Block_TCP-445"
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=139 name="Block_TCP-139"
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=135 name="Block_TCP-135"
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=49154 name="Block_TCP-49154"
netsh advfirewall firewall set rule name="DFS Management (DCOM-In)" new enable=no
netsh advfirewall firewall set rule name="DFS Management (SMB-In)" new enable=no
netsh advfirewall firewall set rule name="DFS Management (TCP-In)" new enable=no
netsh advfirewall firewall set rule name="DFS Management (WMI-In)" new enable=no

But not works too, any help?

This are the ethernet controllers of my server.

06:00.0 Ethernet controller: Mellanox Technologies MT27500 Family [ConnectX-3]
09:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection

Thanks and sorry for my english!

Comments

  • Open a ticket with WSI?

  • javimusejavimuse Member
    edited August 2017

    @rajprakash said:
    Open a ticket with WSI?

    WSI answer:

    We provide unmanaged servers (which means we handle any hardware problems with our 24 hours staff), but users are required to manage all software related maintenance.

    If you buy a unmanaged server, many of our customers hire a third party system administrator from websites like odesk.com or freelancer.com and have them assist them with administering software aspects of the server for setup, config, backup, moving wordpress, and maintenance.

  • WSSWSS Member

    Where's your default gateway?

Sign In or Register to comment.