service:n2n:n2n_used_windows_command
建立 N2N 連線使用 Windows 命令列
至http://www.ntop.org/n2n/下載已 compile 完成的 Win32 binaries code,download url
目前下載最新版為 n2n-1.3.3-win32-installer.exe , 下載後安裝,會安裝在 c:\Program Files\n2n-Win32
建立 TAP Device (虛擬網卡)
- 開啟 command line
- 至安裝目錄
cd c:\Program Files\n2n-Win32
- 進入Driver目錄
cd driver
- 建立虛擬網卡
..\bin\tapinstall.exe install OemWin2k.inf TAP0801
- <html><font color=“red”>此方式建立的網卡為 TAP v8 版,經測試無法與 n2n gui 版(V9)相通</font></html>
建立 Super Node (Server)
- 切換至執行檔目錄
cd \Program Files\n2n-Win32\bin
- 啟動 Super Node 伺服器 supernode -l [listen port]
supernode -l 9999
- supernode 相關說明
-l <lport> Set UDP main listen port to <lport> -f Run in foreground.(windows default is foreground) -v Increase verbosity. Can be used multiple times. -h This help message.
建立 Edge (Peer)
- 切換至執行檔目錄
cd \Program Files\n2n-Win32\bin
- 建立連線 edge.exe -c <my community> -a <my IP address> -k <encryption key> -l <supernode IP:port>
edge -a 10.1.2.1 -c mynetwork -k 000000 -l 172.16.0.1:9999
service/n2n/n2n_used_windows_command.txt · 上一次變更: 2019/11/16 08:12 由 127.0.0.1