Advertising
- Mine
- Monday, August 27th, 2007 at 6:50:03am UTC
- HowTo for Ubuntu -> Windows I made: https://help.ubuntu.com/community/WifiDocs/ShareEthernetConnectionThroughWireless
- I'm trying to replicate the same configuration but doing it manually (no /etc/network/interfaces and no NetworkManager)
- and connecting from an Ubuntu machine (PC2) to my desktop PC which has Ubuntu too (PC1).
- So far so good, they can ping each other, but PC2 can't see the outside world (using Firestarter). I wonder if the
- route commands I'm using are wrong for what I want to archieve?
- ----------------------------------------------------------------------------------------------------------------
- Trying to share internet connection from PC1 to PC2
- ----------------------------------------------------------------------------------------------------------------
- Here's how the network is arranged:
- Internet <> ISP <> 201.208.x.y eth0 PC1 rausb1 192.168.0.1 <> 192.168.0.2 ra0 PC2
- PC1 default route via dev eth0
- PC1 static route 192.168.0.0/24 via rausb1
- PC2 default route via dev ra0
- ----------------------------------------------------------------------------------------------------------------
- Commands I (should?) use
- ----------------------------------------------------------------------------------------------------------------
- --- PC 1 ---
- sudo iwconfig rausb1 mode ad-hoc
- sudo iwconfig rausb1 channel 6
- sudo iwconfig rausb1 essid tempnetwork
- sudo ifconfig rausb1 up
- sudo ifconfig rausb1 192.168.0.1 netmask 255.255.255.0
- sudo route add -net 192.168.0.0 netmask 255.255.255.0 dev rausb1
- --- PC 2 ---
- sudo iwconfig ra0 mode ad-hoc
- sudo iwconfig ra0 channel 6
- sudo iwconfig ra0 essid tempnetwork
- sudo ifconfig ra0 up
- sudo ifconfig ra0 192.168.0.2 netmask 255.255.255.0
- 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.
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.