Getting Started with Server Core - Networking Commands

AID: 138
  • Status: Published

5550 points

  • Bymkbean
  • TypeGeneral
  • Posted on2008-10-08 at 08:05:38
The purpose of this article is not to give you every last detail to Server Core but to provide you with what you need to know it get it up and running in your environment in particular to networking commands.  I will be writing other articles that go over other topics shortly.

Here is the start of you Networking and Firewall related commands for Server Core.  To configure the IP address you will have to remember (or learn) Netsh.  In my example I use "Local Area Connection"  The quotes are needed due the spaces.  If you renamed your connection name then you will want to use the new name in its place.

Configure a Static IP Address on Server Core:
Netsh int ipv4 set address Local Area Connection static 10.1.1.10 255.255.255.0 10.1.1.1
Netsh int ipv4 set dnsserver Local Area Connection static 10.1.1.5 primary
Netsh int ipv4 set winsserver Local Area Connection static 10.1.1.6 primary

Configure a Dynamic (DHCP) IP Address on Server Core:
Netsh int ipv4 set address Local Area Connection source=dhcp

Change the name of the network interface on Server Core:
Netsh int set interface name = Local Area Connection newname = Primary Network 

The Windows Firewall is a blessing to some and a curse to others. Either way it is installed by default and you have to understand the commands that are needed to configure the basics and in some cases some advanced commands.

Disable firewall:
netsh firewall set opmode disable

Server Core can be managed by using MMCs from a remote server. However with the firewall being on by default you will have to allow these tools to work remotely.  The first thing to note here is how to translate the MMC Snap-in to Windows Firewall Rule Group.

Event Viewer - Windows Firewall Rule Group - Remote Event Log Management
Services - Windows Firewall Rule Group - Remote Services Management
Shared Folders - Windows Firewall Rule Group - File and Printer Sharing
Task Scheduler - Windows Firewall Rule Group - Remote Scheduled Tasks Management
Reliability and Performance - Windows Firewall Rule Group - Performance Logs and Alerts and Windows Firewall Rule Group - File and Printer Sharing
Disk Management - Windows Firewall Rule Group - Remote Volume Management
Windows Firewall with Advanced Security - Windows Firewall Rule Group - Windows Firewall Remote Management

To enable all of these rules follow use this command:
Netsh advfirewall firewall set rule group=remote administration new enable=yes

Feel free to add your own Networking related commands.  

Thanks,
Brian
Asked On
2008-10-08 at 08:05:38ID138
Tags

Microsoft

,

Server 2008

,

Server Core

,

Configuration

Topic

Windows Server 2008

Views
8453

Comments

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Windows Server 2008 Experts

  1. dariusg

    487,253

    Wizard

    1,568 points yesterday

    Profile
    Rank: Genius
  2. hanccocka

    269,517

    Guru

    2,000 points yesterday

    Profile
    Rank: Genius
  3. kevinhsieh

    266,722

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  4. demazter

    188,767

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  5. mkline71

    181,660

    Guru

    2,250 points yesterday

    Profile
    Rank: Genius
  6. motnahp00

    163,470

    Guru

    6,700 points yesterday

    Profile
    Rank: Sage
  7. leew

    144,180

    Master

    0 points yesterday

    Profile
    Rank: Savant
  8. ve3ofa

    131,857

    Master

    0 points yesterday

    Profile
    Rank: Genius
  9. acbrown2010

    114,392

    Master

    0 points yesterday

    Profile
    Rank: Genius
  10. arnold

    101,348

    Master

    2,000 points yesterday

    Profile
    Rank: Genius
  11. iSiek

    89,671

    Master

    6,100 points yesterday

    Profile
    Rank: Genius
  12. dstewartjr

    84,405

    Master

    2,000 points yesterday

    Profile
    Rank: Genius
  13. Anuroopsundd

    80,040

    Master

    750 points yesterday

    Profile
    Rank: Sage
  14. dvt_localboy

    79,517

    Master

    0 points yesterday

    Profile
    Rank: Sage
  15. alanhardisty

    76,976

    Master

    0 points yesterday

    Profile
    Rank: Genius
  16. newmath

    73,559

    Master

    0 points yesterday

    Profile
    Rank: Master
  17. hhaywood000

    71,824

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  18. Neilsr

    70,519

    Master

    0 points yesterday

    Profile
    Rank: Genius
  19. RobWill

    60,712

    Master

    0 points yesterday

    Profile
    Rank: Savant
  20. Mutawadi

    60,156

    Master

    0 points yesterday

    Profile
    Rank: Guru
  21. dkotte

    56,740

    Master

    0 points yesterday

    Profile
    Rank: Guru
  22. spaperov

    55,822

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  23. radhakrishnan2007

    55,732

    Master

    0 points yesterday

    Profile
    Rank: Wizard
  24. chakko

    53,161

    Master

    0 points yesterday

    Profile
    Rank: Genius
  25. cgaliher

    51,613

    Master

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame