I have a unusal network setup and need some help. My main computer is openSUSE 64-bit 12.1. I don’t have a regular internet connection so I tether my cell phone. This is on usb0 and works very reliably. I also have a small home network using the internal Ethernet adapter that goes to a router. Also connected to the router is a Raid device (wired) for storage and some other computers (over Wifi). The Raid device also hosts files for two WD Live media devices. The Router, Raid device, wireless computers (Windows machines), and media devices all work great. The Linux machine (main computer) works great with the Raid device for storage.
The problem is that sometimes - actually most of the time - the Linux machine ignors the usb tethered cell phone as the internet connection and tries to use the Ethernet adapter. I usually, but not always, have to unplug the Ethernet cable from the router to force the machine to use the usb0 device for internet connectivity. Thats a pain and sometimes not very desirable. So, is there a way to set the machine up so that it always uses the cell phone as the internet connection and the Ethernet for local network only? BTW, this has work so that the phone can be unplugged when I leave the house - I take it with me.
The address of the cell phone is 192.168.49.128 (last two sections might be a little off since I’m doing this from memory but its close enough for illustrative purposes), and the router has 192.168.0.1. From the router the Linux machine is 192.168.0.101 (the other wireless devices are all 192.168.0.10X).
You do not tell how you have it configured now. That makes it a bit more difficult to tell you where you could change things.
In any case I would probably (but I may not have enough insight in your situation) prefer using “traditional with ifup” configuration. But again I do not know what you have now. Nor if you use DHCP on any/bith/none of your connections.
If you’re using the network manager to control the connections, you could manually assign the wired connection with a static IP address, and no gateway assigned. You’ll still be able to reach devices on the same subnet, and use the usb0 port concurrently to provide the internet connectivity.
I will try to provide more info. I was using Yast to configure the network part using the traditional option (not Network Manager). Netstat returns the following info:
Hope the formatting didn’t mess up. I have no idea where the first entry for eth0 comes from (the one starting 169.254.0.0), and don’t know enough to know how to delete it - it certainly isn’t listed in the Yast Network configuration stuff. When the phone is not connected I get the same netstat info without the usb0 rows.
I will try the suggestion to use Network Manger to assign a static IP address to the wired connection.
As the routing is now, the default gateway is through USB. But I can understand that using DHCP on eth0 will give you another default gatewway. Do not use DHCP there.
I configured eth0 to be static and made it static from the router side, too. It seems to work. I ran into some unusual behavior for a bit - machine would not recognize any connection other than lo - but it seems to be working now. I did two reboots and several connects/disconnects of the phone and it all seems to work. Thanks for the help!
Regarding the formatting: I figured there was a way but it was easier to just cut-n-paste into a table since I didn’t have time to research a better method. I had to do this at work in between meetings.
And about the formatting, that was realy neatly done. But the CODE tags feature is easier. The only thing is that it is not easy to find it. Thus we try to help new members here to use it.
hcvv wrote:
> And about the formatting, that was realy neatly done. But the CODE tags
> feature is easier. The only thing is that it is not easy to find it.
> Thus we try to help new members here to use it.
Well it might be neat on the web, but it’s totally useless via NNTP
(it comes out with one cell per line)
So the CODE tags are a much better option.
(No criticism intended of anybody, escpecially rfmhunt. It’s just a
learning experience)