LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-08-2008, 07:19 AM   #1
billcarson
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
configuring the sequence order of access of web connections


My openSUSE 10.3 box runs ethernet to both a DSL and cable modem.

I would like to control which these (eth 0, or eth 1) will be the default modem to access the web.

XP accomplishes this with the "Advanced Settings" buried under Network connections where you can change the list priority.

Anything similar in Linux /openSUSE 10.3?

thanks.
 
Old 06-08-2008, 10:19 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You can use iptables to configure network connections (firewall, port blocking, and NATting) so I imagine it could be configured for this purpose. Doing some checking for iptables how-tos may give you an idea.
 
Old 06-12-2008, 06:39 AM   #3
billcarson
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks.

Yeah, the IP tables; I was afraid someone might mention these. They look real complicated. I guess if you really want to do some serious package management then you have to learn IP table configuration.

Actually, I am surprised there is not a preference setting somewhere for something as simple as OFF/ON for either eth 0 or eth1 connection to the web.

Bill
 
Old 06-12-2008, 07:34 AM   #4
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
There are ways to bring up and down your ethernet interfaces, and there are also ways to change the default route for packets travelling out of those interfaces. I'd imagine having 2 internet connections has something to do with maintaining connectivity at all times. To bring the interfaces up and down try

Code:
ifdown eth0
and

Code:
ifup eth0
As far as the default routes are concerned if you want to attempt this, you could post the output of a couple commands and we could possibly help you with this.

Code:
ifconfig -a
Code:
route -n
 
Old 06-12-2008, 08:51 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Actually, I am surprised there is not a preference setting somewhere for something as simple as OFF/ON for either eth 0 or eth1 connection to the web
That makes it sound like you want to turn off eth0 or eth1 so they don't automatically start which isn't how I understood your original question.

As the person above notes you can disable interfaces with ifconfig.

You can also setup the default as to whether the specific interface starts or stops (on or off as you put) it. Not sure where that is on SUSE. On RedHat Linux it is /etc/sysconfig/network-scripts. There one would find ifcfg-eth0, ifcfg-eth1 etc... Within each of those files is a flag ONBOOT=yes - simply setting it to ONBOOT=no would prevent it from starting networking on the interface in the file name.
 
Old 06-14-2008, 12:37 PM   #6
billcarson
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Well, the actual basis for this question is that I pay a lot for really high speed cable web access (downloading images, etc)

Either eth0 or eth1 is being used as a LAN connection to other computers and also supports a slower DSL connection.

I don't need the high speed on the LAN, but do on the web. And I need both on at the same time.

So if looks like eth0 is accessing the internet but how can you determine if this is actually the high speed cable modem?

ifconfig -a shows
Code:
eth0      Link encap:Ethernet  HWaddr 00:11:D8:82:A5:E6  
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:fe82:a5e6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14825 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13028 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10935214 (10.4 Mb)  TX bytes:2523599 (2.4 Mb)
          Interrupt:21 Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:11:D8:82:A1:F2  
          inet6 addr: fe80::211:d8ff:fe82:a1f2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:432 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27648 (27.0 Kb)  TX bytes:492 (492.0 b)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
route -n shows

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0 eth0
 
Old 06-17-2008, 03:41 PM   #7
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
Well aside from tracing the physical cable back to the actual modem, you could possible test your bandwidth at a website to make sure you are getting the throughput you require. For this I usually query http://www.speakeasy.net/speedtest As far as I can tell from your output, I am fairly certain that eth0 is your high bandwidth interface.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with torrent connections after configuring Squid a2vr6 Linux - Networking 6 09-04-2009 04:32 AM
Configuring script to automate SMB connections watchingant Linux - Networking 2 07-06-2006 01:56 PM
Configuring dual network connections removed037 Linux - Networking 13 05-14-2006 12:55 PM
Weird Connections to Web Folder dudeman41465 Linux - Security 1 02-01-2006 03:58 AM
Web Server Refusing Connections zoso Linux - Networking 2 12-27-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration