iw-dev.md 1.3 KB

iw dev

๋ฌด์„  ์žฅ์น˜๋ฅผ ํ‘œ์‹œํ•˜๊ณ  ์กฐ์ž‘ํ•ฉ๋‹ˆ๋‹ค. ์ฑ„๋„, ์ฃผํŒŒ์ˆ˜ ๋ฐ ๊ทœ์ œ ์ •๋ณด ๋ชฉ๋ก์€ https://wireless.docs.kernel.org/en/latest/en/developers/documentation/channellist.html. ๋” ๋งŽ์€ ์ •๋ณด: https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html.

  • ์žฅ์น˜๋ฅผ ๋ชจ๋‹ˆํ„ฐ ๋ชจ๋“œ๋กœ ์„ค์ •(์ธํ„ฐํŽ˜์ด์Šค๋Š” ๋จผ์ € ์ข…๋ฃŒ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ip link๋„ ์ฐธ์กฐ):

sudo iw dev {{wlp}} set type monitor

  • ์žฅ์น˜๋ฅผ ๊ด€๋ฆฌ ๋ชจ๋“œ๋กœ ์„ค์ •(์ธํ„ฐํŽ˜์ด์Šค๋Š” ๋จผ์ € ์ข…๋ฃŒ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค):

sudo iw dev {{wlp}} set type managed

  • ์žฅ์น˜์˜ WiFi ์ฑ„๋„ ์„ค์ •(์žฅ์น˜๋Š” ๋จผ์ € ์ธํ„ฐํŽ˜์ด์Šค๊ฐ€ ํ™œ์„ฑํ™”๋œ ์ƒํƒœ์—์„œ ๋ชจ๋‹ˆํ„ฐ ๋ชจ๋“œ์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค):

sudo iw dev {{wlp}} set channel {{์ฑ„๋„_๋ฒˆํ˜ธ}}

  • ์žฅ์น˜์˜ WiFi ์ฃผํŒŒ์ˆ˜ ์„ค์ •(Mhz ๋‹จ์œ„)(์žฅ์น˜๋Š” ๋จผ์ € ์ธํ„ฐํŽ˜์ด์Šค๊ฐ€ ํ™œ์„ฑํ™”๋œ ์ƒํƒœ์—์„œ ๋ชจ๋‹ˆํ„ฐ ๋ชจ๋“œ์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค):

sudo iw dev {{wlp}} set freq {{์ฃผํŒŒ์ˆ˜_๋‹จ์œ„_๋ฉ”๊ฐ€ํ—ค๋ฅด์ธ }}

  • ๋ชจ๋“  ์•Œ๋ ค์ง„ ์Šคํ…Œ์ด์…˜ ์ •๋ณด ํ‘œ์‹œ:

iw dev {{wlp}} station dump

  • ํŠน์ • MAC ์ฃผ์†Œ๋กœ ๋ชจ๋‹ˆํ„ฐ ๋ชจ๋“œ์˜ ๊ฐ€์ƒ ์ธํ„ฐํŽ˜์ด์Šค ์ƒ์„ฑ:

sudo iw dev {{wlp}} interface add "{{๊ฐ€์ƒ_์ธํ„ฐํŽ˜์ด์Šค_์ด๋ฆ„}}" type monitor addr {{12:34:56:aa:bb:cc}}

  • ๊ฐ€์ƒ ์ธํ„ฐํŽ˜์ด์Šค ์‚ญ์ œ:

sudo iw dev "{{๊ฐ€์ƒ_์ธํ„ฐํŽ˜์ด์Šค_์ด๋ฆ„}}" del