Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Mine
Monday, August 27th, 2007 at 6:50:03am UTC 

  1. HowTo for Ubuntu -> Windows I made: https://help.ubuntu.com/community/WifiDocs/ShareEthernetConnectionThroughWireless
  2.  
  3. I'm trying to replicate the same configuration but doing it manually (no /etc/network/interfaces and no NetworkManager)
  4. and connecting from an Ubuntu machine (PC2) to my desktop PC which has Ubuntu too (PC1).
  5.  
  6. So far so good, they can ping each other, but PC2 can't see the outside world (using Firestarter). I wonder if the
  7. route commands I'm using are wrong for what I want to archieve?
  8.  
  9. ----------------------------------------------------------------------------------------------------------------
  10. Trying to share internet connection from PC1 to PC2
  11. ----------------------------------------------------------------------------------------------------------------
  12.  
  13. Here's how the network is arranged:
  14.  
  15. Internet <> ISP <> 201.208.x.y eth0 PC1 rausb1 192.168.0.1 <> 192.168.0.2 ra0 PC2
  16.  
  17. PC1 default route via dev eth0
  18. PC1 static route 192.168.0.0/24 via rausb1
  19.  
  20. PC2 default route via dev ra0
  21.  
  22. ----------------------------------------------------------------------------------------------------------------
  23. Commands I (should?) use
  24. ----------------------------------------------------------------------------------------------------------------
  25.  
  26. --- PC 1 ---
  27.  
  28. sudo iwconfig rausb1 mode ad-hoc
  29.  
  30. sudo iwconfig rausb1 channel 6
  31.  
  32. sudo iwconfig rausb1 essid tempnetwork
  33.  
  34. sudo ifconfig rausb1 up
  35.  
  36. sudo ifconfig rausb1 192.168.0.1 netmask 255.255.255.0
  37.  
  38.  
  39. sudo route add -net 192.168.0.0 netmask 255.255.255.0 dev rausb1
  40.  
  41.  
  42. --- PC 2 ---
  43.  
  44.  
  45. sudo iwconfig ra0 mode ad-hoc
  46.  
  47. sudo iwconfig ra0 channel 6
  48.  
  49. sudo iwconfig ra0 essid tempnetwork
  50.  
  51. sudo ifconfig ra0 up
  52.  
  53. sudo ifconfig ra0 192.168.0.2 netmask 255.255.255.0
  54.  
  55.  
  56. sudo route add default gw 192.168.0.1 dev ra0

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right