Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gateway [2014/10/12 01:14]
rzr [GATEWAY LAN without 2 [[Ethernet]] card]
gateway [2014/10/12 12:02] (current)
Line 59: Line 59:
   # both can ping themselves   # both can ping themselves
   echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward # @S   echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward # @S
-  sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # @S+  iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # @S
  
 you can set this permanently with /etc/sysctl.conf and /etc/networking/interface (pre up ) :  you can set this permanently with /etc/sysctl.conf and /etc/networking/interface (pre up ) : 
Line 67: Line 67:
  
   # Client Side   # Client Side
-  sudo /sbin/ifconfig eth0 192.168.1.100 up # C +  /sbin/ifconfig eth0 192.168.1.100 up # C 
-  sudo route del default +  route del default 
-  sudo route add default gw 192.168.1.154 # @C # link to gateway # check+  route add default gw 192.168.1.154 # @C # link to gateway # check
  
  
Line 155: Line 155:
  
 @TaG: [[Networks]] [[Ethernet]] [[Internet]] [[WiFi]] [[Modem]] [[USB]] [[Proxy]] [[Server]] [[Hub]] [[Protocol]] [[usbnet]] [[ethernet]] [[ip]] [[protocol]] @TaG: [[Networks]] [[Ethernet]] [[Internet]] [[WiFi]] [[Modem]] [[USB]] [[Proxy]] [[Server]] [[Hub]] [[Protocol]] [[usbnet]] [[ethernet]] [[ip]] [[protocol]]
 +[[ip]] [[protocol]]
  
gateway.1413069279.txt.gz · Last modified: 2014/10/12 01:14 by rzr
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki