Linux networking question....

SlickNick

Expert Member
Joined
Oct 4, 2005
Messages
1,094
Reaction score
0
Hey guys,

Here's a little mind boggler for you. I've searched online, though perhaps I'm not using the correct keywords...

Basically, I am using my phone to connect to the inet, and it works perfectly. I also have a wireless network setup just for filesharing between my laptop and PC, and it is not used for inet nor inet connection sharing, just for filesharing.

Now, I connect to the inet, do my ircing and browsing etc, and then when I want to connect to the wireless network to copy stuff to and fro, it will stop my inet, whist the inet is still connected. So it's more of a traffic routing problem, where it is trying to send my inet packets through the wireless. Obviously it is confused. How would I be able to change it so that I can connect to the inet, and the wireless without it getting confused.

And yup, I'm running Ubuntu 9.04. Any help or suggestions would be muchly appreciated.
 
Yup, I do, my Vodacom connection is 255.255.255.255 whilst my wireless is 255.255.255.0
 
Code:
route -n
will give you the routing table.

Make sure that the appropriate routes are set up to reach the appropriate destinations.

You can modify the routing table using
Code:
route
too.

Examples:
To add a default gateway of 192.168.2.1
Code:
sudo route add default gw 192.168.2.1

To add a route to a network 196.2.0.0 (subnet 255.255.0.0) via eth1
Code:
sudo route add -net 196.2.0.0/16 eth1

But full details of command can be found by doing
Code:
man route
 
Last edited:
Thanks sn3rd, I'll give that a go.

Drake, my wireless router is 192.168.1.254, my laptops wireless is 192.168.1.5 and my pc is 192.168.1.2. All manually configured, as I have set the router not to do dhcp.
 
Ok so the router is just an AP for the WLAN, I assume you inet with the phone & laptop and the PC is fileserving, I can't see this being a gateway or routing issue either as that comes into effect when you need IP's out of your network address so what's left?

Assuming you can ping everything no problem I'm leaning towards the naming system (DNS or hosts file).

Edit: If youe you using Samba or NFS for filesharing, set up an FTP server and try through that with using IP addresses.
 
Last edited:
1. Please post output of ifconfig -a
2. Please post output of route -n
3. Please post output of cat /etc/network/interfaces
 
I know what his problem is. Ubuntu uses Network Manager for most of its connection stuff.

Of coarse someone without much linux experience on ubuntu will use network manager, I mean why not its really makes life easy and you dont need to know much.

However there is 1 HUGE drawback using network manager. It does not allow using multiple connections.

IE. If you have a physical network and a wireless network, you can only be on one at a time, not both. I bet the same goes for your wireless and 3g connection. Its either the one or the other.

If you want to use both, you will have to ditch network manager and set up everything manually. Will take some learning linux stuff in the background, but well worth it in the end. Linux is really built on top of network tech so it will help to know a lot about that as well.

ps. The only thing I hate about network manager, but its also the easiest for me on my laptop, so I live with this one downside.
 
Yup, I am using Network Manager. I heard about it's short comings, as I had experienced it with the initial setup of my Vodacom connection.

I'm not scared about learning Linux stuff, infact, I have enjoyed learning all the current things that I have. I'll Google the network setup.

I'll check out the settings tonight, when I am back at home, and I'll post feedback here. Thanks so far to all whom have responded.

Will keep you guys updated.
 
Ok, I have decided to skip this entirely, as I am now getting rid of wireless setup, and putting all my stuff on a USB Hard Drive. It's much faster and less hassel, than copying large files over the wireless network.

Though I'm sure this thread would prove useful for other people with the same problem.
 
Top
Sign up to the MyBroadband newsletter
X