瀏覽代碼

Show a line with /24 subnet

Axel Colin de Verdiere 11 年之前
父節點
當前提交
be239f7a9f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/osx/route.md

+ 4 - 0
pages/osx/route.md

@@ -7,6 +7,10 @@
 
 `sudo route add {{dest_ip_address}} {{gateway_address}}`
 
+- add a route to a /24 subnet through a gateway
+
+`sudo route add {{subnet_ip_address}}/24 {{gateway_address}}`
+
 - run in test mode (does not do anything, just print)
 
 `sudo route -t add {{dest_ip_address}}/24 {{gateway_address}}`