Thursday, May 23, 2013

Share A to B to access the internet.



http://www.mobile01.com/topicdetail.php?f=165&t=2165494&p=1


#IPtables:
#在linux用iptables應該可以做得到。


第五章、 Linux 常用網路指令
http://linux.vbird.org/linux_server/0140networkcommand.php



[root@www ~]# route add default gw 192.168.1.250
# 增加預設路由的方法!請注意,只要有一個預設路由就夠了喔!
# 同樣的,那個 192.168.1.250 的 IP 也需要能與你的 LAN 溝通才行!
# 在這個地方如果你隨便設定後,記得使用底下的指令重新設定你的網路
# /etc/init.d/network restart

No comments:

Post a Comment