Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to boot the Centos server remotely

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to boot Centos server remotely". In daily operation, I believe many people have doubts about how to boot Centos server remotely. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to boot Centos server remotely"! Next, please follow the small series to learn together!

If our server is not deployed locally (usually the server will be hosted to the IDC room), and more than one server in the room, one of which is shut down, then we can remotely connect to a server that is not shut down, and then remotely boot.

Install remote boot software with yum command:yum install wol

How to start remote?

Step 1: first determine if your linux server supports remote booting. Log in to the target server and print out the network card information with ethtool

[root@localhost 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 lists all the information of the network card, and we only care about these two items:

Supports Wake-on: pumbg

Wake-on: d

If wake-on has a value of d, wake on lan is disabled.

A value of g means wake on lan is enabled

Because wake on lan is disabled on this machine, enable it with the following command:

[root@localhost lhd]# ethtool -s eth0 wol g

If you look at it with the ethtool command, you will find:

Wake-on: g

OK, the NIC of the target machine has supported remote boot. Below we get its local MAC address:

[root@localhost 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

Just write down HWaddr 00:03: 0D:1D:1F:97, and now you can try to shut down the target machine.

Step 2: Power on

Now we need to log in to the machine with wakeonlan installed and execute the boot command on it:

wol 00:03:0D:1D:1F:97

You will later discover that the target machine is powered on and ready to log in.

At this point, the study of "how to boot Centos server remotely" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report