你的位置:国外/美国服务器租用 国外服务器常见问题 正文
美国服务器出租
  1. 1美国独立服务器10G独享带宽不限流量,欧洲1G带宽独享,不限流量
  2. 2美国100M独享,洛杉矶 32GB内存 英特尔至强CPU,特价:1699元/月
  3. 3美国加州机房100M独享E3-1270,32G内存/96G内存,送KVM,1399元/月
  4. 4美国云服务器,8G内存,服务器CPU,4核心,特价699元/月,16G内存1299元
  5. 5美国G口抗攻击服务器,G口1000M独享带宽抗DDOS攻击服务器(至强Xeon E3 1230)
  6. 6国外G口带宽独享服务器,美国G口独享,欧洲G口独享服务器租用
  7. 7美国圣安娜KT服务器,加州KT服务器租用,KT独立服务器出租(特价799元/月)
  8. 8加州洛杉矶机房,中国访问速度最快的美国机房之一,999元/月,4G内存20M独享
  9. 9美国1G独享带宽,欧洲1G独享带宽租用(视频等大流量网站解决方案)
  10. 10凤凰城机房Phoenix服务器租用:7个机房4核I3,8G内存,30M独享带宽,首月999元
美国VPS主机
  1. 1美国SSD VPS租用,美国西海岸加州洛杉矶SSD VPS服务器,Linux/Windows
  2. 2内华达州VPS,拉斯维加斯VPS,拉斯维加斯服务器,内华达州服务器租用
  3. 3美国东海岸VPS,纽约服务器,曼哈顿云服务器,纽约VPS租用
  4. 4外贸VPS服务器,仿牌空间,仿牌主机,抗投诉VPS(外贸英文商城VPS)SSL证书安装服务
  5. 5美国Psychz电信直连VPS,中国访问速度最快的美国VPS,Psychz机房VPS
  6. 6Camforg专用VPS,美国Camforg多视频聊天软件VPS,Camforg服务器租用
  7. 7美国加州VPS,洛杉矶WebNX机房VPS,加州WN机房Windows VPS
  8. 8美国西雅图VPS,西雅图机房VPS,支持试用的VPS,VPS试用10元/天
  9. 9合租美国服务器,国外服务器合租,高端VPS服务器,完胜低配独立服务器的VPS
  10. 10抗攻击Windows VPS,不怕DDOS攻击的VPS,有攻击不关机,无攻击后2小时内恢复
Windows服务器里面如何设置vmware的IP?
  • Windows服务器里面如何设置vmware/vps的IP? 一下文章仅供参考,并不适用所有的服务器。

    After you have obtained your IP blocks, you will now be able to configure networking on the Virtual Machine. If you have not yet installed the Virtual Machine, configuration of your public network block can be performed through the Operating System installation process. This is the quickest method of configuring your public network and is recommended. If you have already install the guest Operating System, this guide does also provide instructions for configuring your public network. All network configuration steps provided will assume that the first network interface(eth0 or Local Area Connection) will always be the private network and the second network interface (eth1 or Local Area Connection 2) will be the public network.

    Configuring your network is setup differently based on the OS you have installed. This guide provides detailed information on configuring your network for the following Operating Systems.  Operating Systems grouped together share the same network configuration.

    ·Windows 2008 Server Core
    ·Windows 2003 Standard and Enterprise
    ·Windows 2008 Web, Standard, Enterprise and Datacenter
    ·Redhat, Fedora and CentOS
    ·Ubuntu and Debian

    Network configuration will require the following information for both your Public and Private IP blocks.  

    -IP Address
    -Gateway
    -Subnet Mask
    --Subnet conversion
    ---/29 - 255.255.255.248
    ---/28 - 255.255.255.240
    ---/27 - 255.255.255.224
    ---/26 - 255.255.255.192
    ---/25 - 255.255.255.128
    ---/24 - 255.255.255.0

    Windows 2008 Server Core

    Windows 2008 Server Core edition does not provide a graphical interface from which to configure the system network. Configuration will need to be done manually via the command line. Below are the commands you will need to run. The IP addresses used in this example will need to be replaced with the correct IP addresses from your IP Blocks.  These same commands should work with older versions of Windows Server that include the netsh2 command.

    Example public IP block – 192.0.2.0/29

    ·IP Address – 192.0.2.2
    ·Gateway – 192.0.2.1
    ·Subnet Mask – 255.255.255.248

    Example private IP block – 10.0.0.0/29

    ·IP Address – 10.0.0.2
    ·Gateway – 10.0.0.1
    ·Subnet Mask – 255.255.255.248

    Public Network

    This command will create the public network connecting your server to the internet.

    • Netsh interface ip set address name=”Local Area Connection 2” static 192.0.2.2 255.255.255.248 192.0.2.1

    These commands will create the DNS entries. If you are not using the private network, you will need to replace these IP addresses with working DNS servers

    • Netsh interface ip add dns “Local Area Connection 2” 10.0.80.11
    • Netsh interface ip add dns “Local Area Connection 2” 10.0.80.12

    Private Network

    The following 2 commands will configure the private network as well as create the persistent route for the private network. The persistent route will provide your private network access to the entire private network which includes the DNS servers in the public network configuration steps above. Please note, there is no gateway assigned to the private network. This is handled via the route statement that is provided below.

    • Netsh interface ip set address name=”Local Area Connection” static 10.0.0.2 255.255.255.248
    • Route add 10.0.0.0 mask 255.0.0.0 10.0.0.1 -p

    Windows 2003 Standard and Enterprise

    Windows 2003 allows you configure networking using either the command line or the graphical user interface. If you intend to use the command line, please refer to the configuration instructions for Windows 2008 Server Core, as these instructions will work for 2003. The instructions for using the graphical interface will be provided here. The IP addresses used in this example will need to be replaced with the correct IP addresses from your IP Blocks.

    Example private IP block – 10.0.0.0/29

    ·IP Address – 10.0.0.2
    ·Gateway – 10.0.0.1
    ·Subnet Mask – 255.255.255.248

    Open your network configurations

    1. Start Menu -> Settings -> Control Panel
    2. Open “Network Connections”
    • If you installed 2 network adaptors you will see “Local Area Connection” and “Local Area Connection 2

    Public Network

    The following instructions will provide detailed steps on configuring the public network through the windows graphical interface.

    1. Right Click on “Local Area Connection” -> Properties.
    2. Select “Internet Protocol (TCP/IP)” then click “Properties”.
    3. On the General Tab
      1. Select “Use the following IP address:
      2. Enter your public IP Address, subnet mask and gateway.
      3. Select “Use the following DNS server addresses:”. If you will be configuring the private network, use the following DNS Servers, if not, you will need to provide DNS servers
        • Preferred DNS server: 10.0.80.11
        • Alternate DNS server: 10.0.80.12
      4. -Click “OK”

    Private Network

    1. Right Click on “Local Area Connection 2” -> Properties.
    2. Select “Internet Protocol (TCP/IP)” then click “Properties”.
    3. On the General Tab
      1. Select “Use the following IP address:
      2. Enter your private IP Address and subnet mask.
      3. Leave the gateway field empty
      4. Click "OK"
    4. Click “OK” again to close the network configuration window.

    To provide access to the entire private network which includes the DNS servers you will need to add a custom route to the server. This is done in the next few steps.

    ·Start -> Run
    ·Enter the command “cmd” and press “OK”
    ·Run the following command; replace the gateway address (10.0.0.1) with your private IP block gateway.
    “route add 10.0.0.0 mask 255.0.0.0 10.0.0.1 –p”

    Windows 2008 Web, Standard, Enterprise and Datacenter

    Windows 2008 allows you configure networking using either the command line or the graphical user interface. If you intend to use the command line, please refer to the configuration instructions for Windows 2008 Server Core, as these instructions will work for all 2008 servers. The instructions for using the graphical interface will be provided here. The IP addresses used in this example will need to be replaced with the correct IP addresses from your IP Blocks.

    Example private IP block – 10.0.0.0/29

    ·IP Address – 10.0.0.2
    ·Gateway – 10.0.0.1
    ·Subnet Mask – 255.255.255.248

    Open your network configurations

    ·Start Menu -> Settings -> Control Panel
    ·Open “Network and Sharing Center”
    ·Click “Manage network connections”
    ·If you installed 2 network adaptors you will see “Local Area Connection” and “Local Area Connection 2”

    Public Network

    The following instructions will provide detailed steps on configuring the public network through the windows graphical interface.

    1. Right Click on “Local Area Connection” -> Properties.
    2. Select “Internet Protocol Version 4 (TCP/IPv4)” then click “Properties”.
    3. On the General Tab
      1. Select “Use the following IP address:
      2. Enter your public IP Address, subnet mask and gateway.
      3. Select “Use the following DNS server addresses:”. If you will be configuring the private network, use the following DNS Servers, if not, you will need to provide DNS servers
        • Preferred DNS server: 10.0.80.11
        • Alternate DNS server: 10.0.80.12
    4. ·Click “OK”

    Private Network

    1. Right Click on “Local Area Connection 2” -> Properties.
    2. Select “Internet Protocol Version 4 (TCP/IPv4)” then click “Properties”.
    3. On the General Tab
      1. Select “Use the following IP address:
      2. Enter your private IP Address and subnet mask.
      3. Leave the gateway field empty
    4. Click “OK
    5. Click “OK” again to close the network configuration window.

    To provide access to the entire private network which includes the DNS servers you will need to add a custom route to the server. This is done in the next few steps.

    1. Start -> Run
    2. Enter the command “cmd” and press “OK”
    3. Run the following command; replace the gateway address (10.0.0.1) with your private IP block gateway.
      • route add 10.0.0.0 mask 255.0.0.0 10.0.0.1 –p

    Redhat, Fedora and CentOS

    Network configuration on RedHat, Fedora and CentOS is done through manually editing configuration files. In order to manually edit the files, you will need to be logged into the Virtual Machine as the root used and will require a text editor.

    Example public IP block – 192.0.2.0/29

    ·IP Address – 192.0.2.2
    ·Gateway – 192.0.2.1
    ·Subnet Mask – 255.255.255.248

    Example private IP block – 10.0.0.0/29

    ·IP Address – 10.0.0.2
    ·Gateway – 10.0.0.1
    ·Subnet Mask – 255.255.255.248

    Public Network

    The public network settings are contained in the following file, you will need to edit this file with the information provided. Replace the example IP addresses with the correct IP addresses form your public IP block. Note, the file may not exist. If the file does not exist, create the file. If it does exist, replace all data in the file with the information provided below.

    ·/etc/sysconfig/network-scripts/ ifcfg-eth1
    DEVICE=eth1
    BOOTPROTO=static
    BROADCAST=192.0.2.7
    IPADDR=192.0.2.2
    NETMASK=255.255.255.248
    NETWORK=192.0.2.0

    GATEWAY=192.0.2.1
    ONBOOT=yes

    Private Network

    The private network settings are contained in the following file, you will need to edit this file with the information provided. Replace the example IP addresses with the correct IP addresses from your Private IP block. Note, the file may not exist. If the file does not exist create it, if the file does exist, replace all data in the file with the information provided below.  The private network WILL NOT have a default route, so the GATEWAY will not be defined.

    ·/etc/sysconfig/network-scripts/ ifcfg-eth0
    DEVICE=eth0
    BOOTPROTO=static
    IPADDR=10.0.0.2
    NETMASK=255.255.255.248
    ONBOOT=yes

    Finally, a new route will be required to provide private access to the entire private network including the DNS server. This is done by editing the following file. This fill will not exist and will need to be created.

    ·/etc/sysconfig/network-scripts/route-eth0
    10.0.0.0/8 via 10.0.0.1

    DNS Configuration

    The primary and secondary DNS configuration is contained in a separate file; this fill will need to be edited with the following information. If this Virtual Machine does not have access to the private network, you will need to replace the server IP’s with the IP addresses of the DNS servers you plan to use.

    ·/etc/resolv.conf
    nameserver 10.0.80.11
    nameserver 10.0.80.12

    In order for these changes to take effect, you will need to restart networking on the server. This can be done by running the following command

    • service network restart

    Ubuntu and Debian

    Ubuntu and Debian network configuration is done through a single configuration file. This file will need to be manually edited. To edit this file you will need to have root access to the server. The base install of Ubuntu does not provide a root login, however the user created in the installation process has access to sudo. You will need to use the sudo command to edit the file if you are running on ubuntu.

    Example public IP block – 192.0.2.0/29

    ·IP Address – 192.0.2.2
    ·Gateway – 192.0.2.1
    ·Subnet Mask – 255.255.255.248

    Example private IP block – 10.0.0.0/29

    ·IP Address – 10.0.0.2
    ·Gateway – 10.0.0.1
    ·Subnet Mask – 255.255.255.248

    Public and Private Network

    Edit the following file with any text editor. Replace example IP addresses with the correct IP’s from your Public and Private IP blocks.

    ·/etc/network/interfaces
    auto lo
    iface lo inet loopback

    ##Public Network
    auto eth1
    iface eth1 inet static
    address 192.0.2.2
    netmask 255.255.255.248
    gateway 192.0.2.1

    ##Private Network
    auto eth0
    iface eth0 inet static
    address 10.0.0.2
    netmask 255.255.255.248

    #Static route for backend service network
    up route add -net 10.0.0.0/8 gw 10.0.0.1

    DNS Configuration

    The primary and secondary DNS configuration is contained in a separate file; this fill will need to be edited with the following information. If this Virtual Machine does not have access to the private network, you will need to replace the server IP’s with the IP addresses of the DNS servers you plan to use.

    ·/etc/resolv.conf
    nameserver 10.0.80.11
    nameserver 10.0.80.12

    In order for these changes to take effect, you will want to restart networking on the server. This can be done by running the following command:

    • /etc/init.d/network restart


    Note: 192.0.2.0/24 is used as Public IP Documentation as per RFC1166 and RFC5737.  You will not use these IP addresses on your servers at any point in time.

  • 点这里复制本页地址发送给您QQ/MSN上的好友