메뉴
HN
Hacker News 13일 전

LLM으로 마이크로틱 네트워크 구축하기

IMP
6/10
핵심 요약

네트워크 전문가가 아닌 일반 사용자도 LLM을 활용하면 복잡한 마이크로틱(MikroTik) 장비를 쉽게 구성하고 네트워크를 구축할 수 있습니다. 특히 SSH 대신 REST/JSON API를 사용하고, 작업 전후로 설정을 백업하며, 변경 시마다 테스트하면 LLM의 환각(Hallucination) 위험을 줄이면서 빠르고 효율적으로 작업할 수 있습니다.

번역된 본문

‘분위기 기반 네트워킹(vibe networking)’이나 ‘비브크로틱(vibkrotik)’ 같은 끔찍한 단어를 말하고 싶지는 않았지만, 사실 지난 몇 달 동안 LLM을 사용해 몇 개의 네트워크를 설정해 왔으며 일반적으로 일이 아주 순조롭게 진행되었습니다. 저는 한동안 MikroTik(마이크로틱) 장비의 팬이었습니다. 간단히 말하자면, 이 장비는 신뢰할 수 있고 저렴하며, IoT 셀룰러 라우터, 일반 라우터, 스위치, 지점 간(Point to Point) 시스템 등 수많은 네트워크 사용 사례를 아우릅니다. MikroTik에 대한 일반적인 불만 중 하나는 복잡한 UI와 설정이었습니다. 어떤 의미에서 이것이 사실인지 모르겠지만, 네트워크 자체가 복잡하기도 합니다. 즉, 사람들이 생각하는 것보다 훨씬 더 깊이가 있죠. 아마도 이것에 대한 빙산 형식의 밈이 있어야 할 것입니다. 빙산 꼭대기에는 “IP 주소”가 있고, 더 깊이 내려가면 “the dude”나 들어본 적 없는 것들, MPLS, IGMP, OSPF 등이 있을 것입니다! 제가 말하고자 하는 요지는 네트워크가 그저 어려울 수 있다는 것입니다. 저는 반쯤 아마추어로서 네트워킹을 해왔습니다. 친구나 친구의 사무실을 위한 네트워크 설정, 케이블 제작, 작은 패치 패널 작업 등을 해왔죠. 저는 공식 ‘인증 라우팅 엔지니어’ 자격증을 합격할 수 없을 것입니다. 글쎄요, 많이 공부하지 않는 한요 (스스로를 믿으세요). 하지만 그렇다고 해서 사람들의 와이파이를 고치고 즐거움을 누리는 것을 막지는 못했습니다. (대부분의 사람들의 와이파이 문제는 몇 가지로 분류될 수 있습니다... 아이고, 이건 또 다른 글의 주제여야겠네요. 익스텐더는 절대 쓰지 마세요.) 그렇다면 LLM은 어디에 쓰일까요? 코딩 등 다른 곳에서와 마찬가지로, 그들은 혼돈을 야기하지만 엄청난 힘을 실어주는 존재입니다. MikroTik과 일반적인 네트워크를 구성하는 방법을 분명히 알고 있지만, 여전히 잘못된 부분이 있거나 엉뚱한 길로 빠지기도 합니다. 코딩과 마찬가지로 긴장감을 늦추지 않고 의심하며 검증해야 하지만, 더 빠르게 진전을 만들 수도 있습니다. ((LLM의 속도 향상은 실제가 아니라고 말한 2025년 연구를 기억하시나요? 글쎄요...)) 그래서 지난 몇 달 동안 저는 확실히 규모는 작지만 네트워크를 설정할 수 있었고, Claude Code에 내 장비에 대한 접근 권한을 부여하고 마음대로 작업하게 두면서 많은 재미를 느꼈습니다. (제가 여기서 논의한 것처럼, 예, 위험하게 권한을 건너뛰는 것을 의미합니다). 저는 이 주제에 대해 도움이 될 만한 짧은 메모를 정리했습니다. 한 가지 경우에서는 기존 네트워크(와이파이가 통합된 매우 작은 단일 라우터)를 라우터, 스위치, 두 개의 무선 액세스 포인트로 마이그레이션했고, 다른 두 가지 경우에서는 완전히 새로운 네트워크를 구축했습니다. 어쨌든 다음은 LLM 기반 MikroTik 팁과 요령 목록입니다.

  • MikroTik은 SSH를 통해 구성할 수 있지만, LLM이 해당 방식으로 텍스트를 주고받으려고 하면 ‘천 번 베여 죽는(수많은 사소한 오류로 인한 실패)’ 일이 발생하는 경향이 있습니다. 훨씬 더 나은(즉, LLM에 더 친화적인) 채널은 REST/JSON API를 사용하는 것입니다.
  • 일반적으로 좋은 방법으로, 안전하지 않은 서비스(비보안 API 포트, www, telnet 및 FTP)를 비활성화할 것을 권장합니다.
  • 어떤 변경을 하기 전에 전체 구성을 덤프하고, 작업이 끝나면 다시 덤프하세요. 이를 소스 버전 관리 시스템으로 관리하는 것이 좋습니다.
  • 자동화된 백업 도구를 갖추는 것(저는 아직 만들지 못했습니다)이 최선일 것입니다.
  • CAPsMAN은 여러 무선 액세스 포인트를 설정하는 데 있어 진정으로 거대한 와이파이 단순화 도구입니다. LLM으로 이것을 구성하는 것은 정말 쉬운 일입니다.
  • 저는 종종 여러 LLM(Antigravity, Codex, Opus, Fable)에게 요청하여 설정을 다시 확인하고 빠진 부분이나 심각하게 잘못된 부분이 없는지 합의점을 도출하는 ‘트릭’으로 돌아갑니다.
  • 어쩌면 당연한 말이겠지만, 네트워크를 해체하기 전에(MikroTik으로 마이그레이션할 때) SSID, 비밀번호, DHCP 예약을 기록해 두세요.
  • 복구를 위한 수칙(Runbook)을 가지세요! 알려진 좋은 상태의 백업본에서 모든 장비의 구성을 복원해야 하는 경우 수행해야 할 단계를 적어 두세요(따라서 구성을 백업하는 것이 중요합니다). 해당 수칙을 직접 실행해 보세요. 테스트되지 않은 백업은 0으로 가득 찬 파일이나 다름없습니다.
  • LLM의 경우와 마찬가지로, 작업을 최소화하고 단계별로 진행하세요. 맞습니다. 이것은 그런 “내 네트워크를 설정하되 실수는 하지 마”라는 농담과 같습니다. 절대 그렇게 하지 마세요.
  • 모든 구성 변경 후마다 테스트하세요. LLM은 환각(Hallucination)을 일으킵니다!
  • 아주 작은 팁이지만, 모든 장비에 NTP(시간 서버)를 설정하는 것이 유용합니다.
원문 보기
원문 보기 (영어)
I’ve been refraining from saying ‘vibe networking’ or ‘vibkrotik’ or some other abomination, but it is true - I have been using LLMs to setup a few networks these last few months, and things have generally gone over swimmingly. I’ve been a fan of MikroTik equipment for a while - the short story is that the equipment is reliable, inexpensive, and they cover a ton of networking use cases - IoT cell phone routers, regular routers, switches, point to point systems, etc. One of the usual complaints about MikroTik has been its complex ui/configuration. In a sense, I don’t know if that’s true inasmuch as networking is complicated in itself - as in, it goes deeper than one thinks? Maybe there should be a iceberg-format meme about this. At the top you’d have “ip address”, and going deeper you’d see “ the dude ” and other you’ve-never-heard-of-them’s. mpls! igs! ospf! The point I’m trying to make is yeah, networking can just be hard. I’ve been half-networking, amateur-ishly, for a while now - setting up networks for friends and friends’ offices, making cables, patching small panels etc. I almost certainly couldn’t pass an official “Certified Routing Engineer” cert - well, not without studying a lot (believe in yourself). But you know, it hasn’t stopped me (and I suppose it shouldn’t?) from having fun and fixing people’s wifi (most people’s wifi problems can be categorized into… oh brother - I should make another post about this. Never use extenders.) Where do LLMs fit in? Well, as elsewhere (in coding, etc.) they are a chaotic force multiplier - they definitely know how to configure MikroTiks and networking in general, but they also still get things wrong, go off-path, etc. As with coding, you can/should keep a tight leash, mis-trust and verify , but you can also make more progress faster ((remember the 2025 study that said that LLM speedups were not real - well… )). And so these last few months I’ve been able to setup networks - small, for sure - and had a lot of fun giving claude code access to my devices and letting it do its thing. ( As I discussed here , yes, I do mean dangerously-skip’ing-permissions). I’ve compiled a short list of hopefully useful notes on this topic - in one case, I was migrating an existing network (a very small single-router-with-integrated-wifi to a router+switch+two wireless access points), while in two other cases the networks were net new. In any case, here’s my list of LLM MikroTik tips and tricks: even though mikrotiks can be configured over ssh, there’s a “death by a thousand cuts” that tends to happen when llms try to pipe text back and forth that way. the much better (ie more llm native) channel is to use the REST/JSON api. as a generally-good-practice, I recommend disabling insecure services - the non secure api port, www, telnet and ftp dump the entire config before any change, and dump it once you’re done. source version controlling those is great. having some automated backup tool (which I haven’t gotten around to build yet) would be the best CAPsMAN is truly a huge wifi simplifier to setup multiple wireless access points - configuring it with llms is an absolute breeze I often come back to the “trick” of asking multiple llms - antigravity, codex, opus and fable - to double check the config and come to a consensus to see if anything is missing or terribly wrong. perhaps obvious, but before tearing down a network (when migrating to a mikrotik), take note of ssid’s, passwords, dhcp reservations have a recovery runbook! take down the steps of what to do if you need to restore all of your devices’ configs from a good-known-place (hence, backing up your configs). run the runbook - an untested backup might as well be a file full of zeros. as often is the case with llm’s, minimize the tasks and go step by step. yes, this is the “setup my network don’t make mistakes” joke - don’t do that. test after every config change. llms hallucinate! very small thing, but it’s useful to setup ntp (time server) on all of the devices you’re configuring also small, but for sanity’s sake, it’s good to give descriptive names/identify your devices - your router, switch, wireless access points. do the same for ports on a switch - it can be a bit of a pain to maintain as devices move around, but knowing which port connects to what comes in handy a lot. make sure to update all of your devices so they’re running the same routeros version - llms also sometimes think they know how a command works but the syntax/options change over time - ask them to verify. Oh, and finally! I’ve been in situations (or maybe the LLM led me down this path..) where IP addresses are conflicting, you have multiple overlapping 192.168.88.x networks, and it’s generally a mess and hard to even connect to the router or switch, even if you’re physically connected to those devices over ethernet (which you should always be) The best tool for this in my opinion is the L2 “ MAC Telnet ” ie a server that lets you telnet over the L2 (MAC-address) layer. It’s sort of the equivalent of using WinBox (which to my surprise is now cross-platform, and works quite well on Macs) - except that having an L2-layer telnet client allows your LLM to talk to your MikroTik devices. WinBox is a GUI software that LLMs can’t control. For this, I deeply recommend MAC-Telnet - it will come in handy at the worst time ie when IP addresses don’t work! I/Claude just built a tiny Homebrew formula to make its installation easier, but you can also follow the original installation instructions - it’s the same code. I also made this small CLI just to make MAC-Telnet a bit more LLM-friendly to consume/use, but generally speaking, LLMs will figure out how to use a CLI tool by themselves. You don’t need an MCP server. Have fun - and feel free to tell me I have it all wrong (it’s happened before). Bye!! xx