Created
April 13, 2024 06:34
-
-
Save bluesid/1fed00c97660569feceac6552fdef8b5 to your computer and use it in GitHub Desktop.
#proxmox #wol #command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ethtool 설치 | |
$ apt install ethtool | |
# 어탭터와 맥 주소 IP 확인 | |
$ ip addr | |
root@proxmox:~# ip addr | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
valid_lft forever preferred_lft forever | |
inet6 ::1/128 scope host noprefixroute | |
valid_lft forever preferred_lft forever | |
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000 | |
link/ether xx:xx:xx:xx:xx:aa brd ff:ff:ff:ff:ff:ff | |
3: enp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 | |
link/ether xx:xx:xx:xx:xx:bb brd ff:ff:ff:ff:ff:ff | |
4: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 | |
link/ether xx:xx:xx:xx:xx:cc brd ff:ff:ff:ff:ff:ff | |
5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 | |
link/ether xx:xx:xx:xx:xx:aa brd ff:ff:ff:ff:ff:ff | |
inet 192.168.0.100/24 scope global vmbr0 | |
valid_lft forever preferred_lft forever | |
inet6 xxxx::xxxx:xxxx:xxxx:xxxx/64 scope link | |
valid_lft forever preferred_lft forever | |
6: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000 | |
link/ether xx:xx:xx:xx:xx:dd brd ff:ff:ff:ff:ff:ff | |
# WOL 상태 확인 | |
# ethtool 어댑터명 | |
$ ethtool enp1s0 | |
Settings for enp1s0: | |
Supported ports: [ TP MII ] | |
Supported link modes: 10baseT/Half 10baseT/Full | |
100baseT/Half 100baseT/Full | |
1000baseT/Full | |
Supported pause frame use: Symmetric Receive-only | |
Supports auto-negotiation: Yes | |
Supported FEC modes: Not reported | |
Advertised link modes: 10baseT/Half 10baseT/Full | |
100baseT/Half 100baseT/Full | |
1000baseT/Full | |
Advertised pause frame use: Symmetric Receive-only | |
Advertised auto-negotiation: Yes | |
Advertised FEC modes: Not reported | |
Link partner advertised link modes: 10baseT/Half 10baseT/Full | |
100baseT/Half 100baseT/Full | |
1000baseT/Full | |
Link partner advertised pause frame use: Symmetric Receive-only | |
Link partner advertised auto-negotiation: Yes | |
Link partner advertised FEC modes: Not reported | |
Speed: 1000Mb/s | |
Duplex: Full | |
Auto-negotiation: on | |
master-slave cfg: preferred slave | |
master-slave status: master | |
Port: Twisted Pair | |
PHYAD: 0 | |
Transceiver: external | |
MDI-X: Unknown | |
Supports Wake-on: pumbg | |
Wake-on: d | |
Link detected: yes | |
# WOL 기능 활성화 | |
# ethtool -s 어댑태명 wol g | |
$ ethtool -s enp1s0 wol g | |
# WOL 상태 재 확인 | |
$ ethtool enp1s0 | |
Settings for enp1s0: | |
Supported ports: [ TP MII ] | |
Supported link modes: 10baseT/Half 10baseT/Full | |
100baseT/Half 100baseT/Full | |
1000baseT/Full | |
Supported pause frame use: Symmetric Receive-only | |
Supports auto-negotiation: Yes | |
Supported FEC modes: Not reported | |
Advertised link modes: 10baseT/Half 10baseT/Full | |
100baseT/Half 100baseT/Full | |
1000baseT/Full | |
Advertised pause frame use: Symmetric Receive-only | |
Advertised auto-negotiation: Yes | |
Advertised FEC modes: Not reported | |
Link partner advertised link modes: 10baseT/Half 10baseT/Full | |
100baseT/Half 100baseT/Full | |
1000baseT/Full | |
Link partner advertised pause frame use: Symmetric Receive-only | |
Link partner advertised auto-negotiation: Yes | |
Link partner advertised FEC modes: Not reported | |
Speed: 1000Mb/s | |
Duplex: Full | |
Auto-negotiation: on | |
master-slave cfg: preferred slave | |
master-slave status: master | |
Port: Twisted Pair | |
PHYAD: 0 | |
Transceiver: external | |
MDI-X: Unknown | |
Supports Wake-on: pumbg | |
Wake-on: g | |
Link detected: yes | |
# 현재 interfaces 확인 | |
$ cat /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
iface enp1s0 inet manual | |
auto vmbr0 | |
iface vmbr0 inet static | |
address 192.168.0.100/24 | |
gateway 192.168.0.1 | |
bridge-ports enp1s0 | |
bridge-stp off | |
bridge-fd 0 | |
iface enp3s0 inet manual | |
iface wlp2s0 inet manual | |
# 재부팅 시 WOL 활성화 | |
$ vi /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
iface enp1s0 inet manual | |
post-up /usr/sbin/ethtool -s enp1s0 wol g | |
auto vmbr0 | |
iface vmbr0 inet static | |
address 192.168.0.100/24 | |
gateway 192.168.0.1 | |
bridge-ports enp1s0 | |
bridge-stp off | |
bridge-fd 0 | |
iface enp3s0 inet manual | |
iface wlp2s0 inet manual | |
# 종료 | |
$ shutdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment