Configuring Dual Ethernet

EmosOohay

Member
Sep 28, 2000
158
0
0
Does anyone with dual ethernet know how to configure XP so both ports can be active?

I've got both working except for internet access.

One connects directly to my laptop with a crossover cable for file sharing and the other connects to my DSL/Gateway for internet access.

The direct connection for file sharing is working great.

The gateway connection is working except for internet access. I can access the gateway web interface, but nothing beyond it on the internet. Entering the local IP for the gateway, 192.168.0.1 works, but trying, for example, 140.99.45.247 doesn't.

Any links to guides or suggestions would be appreciated!

Thanks
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,563
432
126
Is the Gateway is like Modem/Router Combo?

:sun:
 

EmosOohay

Member
Sep 28, 2000
158
0
0
Yes, it's an Actiontec 1524 DSL/Gateway with 4 port ethernet hub.

I noticed that when I disable the direct connection port the internet port works; as soon as I enable the direct connection again internet access fails.

bummer
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,563
432
126
Ok, you have a Router and you have a Hub.

The Hub should be plugged to the Router, and both computers should be connected to the Hub in order to Route the Internet the computers.

Connecting the Laptop to the second NIC on the other computers, second NIC takes the laptop out of the Routing scheme.

File Sharing will work the same if both computers are connected to the Hub.

Your hardware is a little different unit wise but in principle the connection should be like this: http://www.ezlan.net/network/router.jpg

:sun:
 

EmosOohay

Member
Sep 28, 2000
158
0
0
Not quite correct. My fault for not listing all the gory details.

The internet device is a DSL modem, gateway/router, and 4 port hub integrated into one package. One of the ports has a Netgear wireless access point attached.

The laptop is a dual port system too, with a wireless and wired lan port. The wireless is configured to access the gateway and the wired is the direct connection to the desktop.

The laptop/desktop direct connection is on 193.168.1.0 and the gateway is on 192.168.0.0.

So the laptop wireless is configured at 192.168.0.9 and laptop wired is configured for 193.168.1.8. The desktop/gateway connection is 192.168.0.3 and the desktop/laptop connection is 193.168.1.6. All gateway connections are dynamic and the direct connections are static.

So both systems are connected to each other and to the gateway. Both system exhibit the same problem and as soon as the direct connection is disabled internet access works and when it's enabled I can only get as far as the gateway.

Hope this helps . . .

Thanks for your help.

 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
change the connection between the two to a different subnet, remove default gateway from it.

or use the command line to add route statements to point it the right way. You can specify physical interface.

One statement for default
one statement for other box.


Whay would you want to do this anyway?
 

EmosOohay

Member
Sep 28, 2000
158
0
0
looks like a lead!

Which file do I add these statements too, which statements are they, what is their syntax, where do I find references and examples.

Thanks!

I regularly have to load and unload 10 to 60 GB of images from/to my laptop so I wanted to use my gigabit ethernet on the motherboard to interface to the laptop (with a GB adaptor if this works) and the 2nd 100Mbs ehternet port for the internet/local LAN. I'm out of ports on the hub.
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
remove the gateway from your gig interface.
then from command line go route add and hit enter. It will start to show you the syntax. get the statement right (Something close to route add ip.of.other.machinesgig MASK m.a.s.k gateway.ip metric METRIC interface
 

EmosOohay

Member
Sep 28, 2000
158
0
0
Thanks for the update, I've displayed the route command and the current routes.

I don't understand what you mean by: "remove the gateway from your gig interface".

I also don't understand the purpose of the route add command.

I'll study the route command.

Is there a similar route command I can run in XP (not in a cmd window)?
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
cli is your friend....really.

The purpose of the route command is to establish routes. Removing the default gateway from your gigabit interface (i.e. change them from DHCP to static, don't put a gateway in) will cause it to NEVER route internet traffic out those physical interfaces.

The route command will then be used to set a static route to the other PC specifing the Gig interface. So basicly, everything but stuff to addres X.X.X.X goes out your 100, stuff to X.X.X.X goes out your gig.
 

EmosOohay

Member
Sep 28, 2000
158
0
0
I don't mind cli, I just wanted something where I could cut and paste into this reply window.

I've already configured the gig interface as static and I configured the gig interface to point to itself for gateway, DNS and WINS; i.e. I used the gig adaptor's static IP as the IP for those 3, 192.168.1.6. Should I leave those fields blank?

I guessed that it was looking down the wrong hose when looking for a web site, but didn't know how to fix it. To make matters more confusing it would do the DNS lookup correctly, but fail when trying to find the site.

Direct Conntection:

laptop interface ip (LIP): 193.168.1.8
desktop interface ip (DIP): 193.168.1.6
metric (from route print for 193.168.1.6): 1

So my route command would be:

route add LIP mask 255.255.255.255 DIP metric 1 if DIP

or

route add 193.168.1.8 mask 255.255.255.255 193.168.1.6 metric 1 if 193.168.1.6

Thanks for your help!
 

EmosOohay

Member
Sep 28, 2000
158
0
0
Here's the result of me route command:

route add 192.168.1.8 mask 255.255.255.255 193.168.1.6 metric 1 if 192.168.1.6

The route addition failed: Either the interface index is wrong or the gateway do
es not lie on the same network as the interface. Check the IP Address Table for
the machine.

I just noticed that the gig interface (direct connection to the laptop) is listed as the default interface. When the gig interface is disabled the correct interface is listed as the default gateway. Maybe all I have to do is reset the default gateway.

Hmmm . . .

 

EmosOohay

Member
Sep 28, 2000
158
0
0
clearing the gateway fields fixed the problem if no internet while the direct connection is enabled.

Unfortunately the file transfer is using the wrong interface (wireless) through the hub insteead of the direct connection. I guess I need the route command to fix this.


Almost there . . .
 

EmosOohay

Member
Sep 28, 2000
158
0
0
Made it!

Clearing the gateway fields and setting persistent routes on both systems did it.

I'm surfing the net on the 100Mbps port and transfering files on the 1000Mbps port at the same time.

Things are as they should be . . .

Thanks nweaver and others for your help . ..
 

EmosOohay

Member
Sep 28, 2000
158
0
0

Would I use the same procedure if I wanted to establish a connection over a pair of 1394 interfaces?

Do I need a different 1394 cable for a 1394 direct connection?

 

Joemonkey

Diamond Member
Mar 3, 2001
8,859
4
0
Originally posted by: EmosOohay
Here's the result of me route command:

route add 192.168.1.8 mask 255.255.255.255 193.168.1.6 metric 1 if 192.168.1.6

The route addition failed: Either the interface index is wrong or the gateway do
es not lie on the same network as the interface. Check the IP Address Table for
the machine.

I just noticed that the gig interface (direct connection to the laptop) is listed as the default interface. When the gig interface is disabled the correct interface is listed as the default gateway. Maybe all I have to do is reset the default gateway.

Hmmm . . .

The problem with that route add statement is that your subnet mask is wrong... try 255.255.255.0
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
no, that statement is right, as he wants to define that route down to the host, not to the subnet.
 

Joemonkey

Diamond Member
Mar 3, 2001
8,859
4
0
hrm, are you sure? if you define a subnet mask of 255.255.255.255 you can't route to anything but the IP address itself can you? he's got 192.168.1.8 and 192.168.1.6