CentOS Remote boot operation

Source: Internet
Author: User

If our server is not deployed locally (it will usually host the server to the IDC room), and the server is more than one in the engine room, one of which is closed, we can remotely connect to a server that does not have a shutdown and then remotely power on the computer.

Install the required software for remote boot with yum command: Yum install Wol

How do I start a remote boot?

The first step: first to determine whether your Linux server supports remote boot? Log on to the target server and print out the information of the NIC using Ethtool command

[Email protected] lhd]# Ethtool eth0

Settings for eth0:

Supported ports: [TP MII]

Supported Link Modes:10baset/half 10baset/full

100baset/half 100baset/full

Supports Auto-negotiation:yes

Advertised Link Modes:10baset/half 10baset/full

100baset/half 100baset/full

Advertised Auto-negotiation:yes

speed:100mb/s

Duplex:full

Port:mii

Phyad:32

Transceiver:internal

Auto-negotiation:on

Supports WAKE-ON:PUMBG

Wake-on:d

Current Message level:0x00000007 (7)

Link Detected:yes

As you can see, ethtool the network card information, we only care about these two:

Supports WAKE-ON:PUMBG

Wake-on:d

If wake-on is a value of D, disables wake on LAN

A value of g, which means enable wake on LAN

Because this machine disables the wake on LAN, use the following command to enable it:

[Email protected] lhd]# ethtool-s eth0 Wol g

With the Ethtool command, you will see:

Wake-on:g

OK, the target machine's network card has supported the remote boot, below we get its local MAC address:

[Email protected] lhd]# ifconfig

Eth0 Link encap:ethernet HWaddr 00:03:0d:1d:1f:97

inet addr:192.168.6.101 mask:255.255.255.0

Up broadcast RUNNING multicast mtu:1500 metric:1

RX packets:34470 errors:0 dropped:0 overruns:0 frame:0

TX packets:35377 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:31559763 (30.0 MiB) TX bytes:5340032 (5.0 MIB)

Interrupt:5 Base address:0x2c00

Record Hwaddr 00:03:0d:1d:1f:97 This one, and now you can try to turn the target machine off.

Step Two: Boot

Now we need to log on to the machine where the WakeOnLAN software is installed and execute the power-on command on it:

Wol 00:03:0d:1d:1f:97

Later, you will find that the target machine is powered on and can log on.

CentOS Remote boot operation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.