Board logo

標題: Busybox —— route command [打印本頁]

作者: 角色    時間: 2013-2-23 13:24     標題: Busybox —— route command

  1. / # route
  2. Kernel IP routing table
  3. Destination Gateway Genmask Flags Metric Ref Use Iface
  4. 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
  5. 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
  6. default pfsense.local.l 0.0.0.0 UG 0 0 0 eth0

  7. / # route add -net 10.10.10.0 netmask 255.255.255.0 gw 192.168.1.10 dev eth0
  8. / # route
  9. Kernel IP routing table
  10. Destination Gateway Genmask Flags Metric Ref Use Iface
  11. 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
  12. 10.10.10.0 192.168.1.10 255.255.255.0 UG 0 0 0 eth0
  13. 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
  14. default pfsense.local.l 0.0.0.0 UG 0 0 0 eth0
複製代碼

作者: 角色    時間: 2013-2-23 15:05

http://www.softpanorama.org/Net/Netutils/route_in_linux.shtml




歡迎光臨 電訊茶室 (http://www.telecom-cafe.com/forum/) Powered by Discuz! 7.2