Jump to content

Two Network cards


Guest rgskeet
 Share

Recommended Posts

Guest rgskeet

Could someone tell me how to set up two network cards, one for Cable modem, the other for access to my local network.

 

The wizard works fine for the cable modem but when I run it for eth1 it disconnects eth0.

 

eth0 is set to DHCP ..... eth1 will be a static ip. I want them running at the same time and eth1 is only for file sharing with two XP computers.

 

I have looked all over for the info on how to do it but can not find it :wall:

 

Thank You,

Rgskeet

Link to comment
Share on other sites

I would configure eth1 with a static IP address, and then once you've done this, you should then run the wizard for sharing your internet connection from this machine. This should then do everything for you and allow you to connect to the internet from the other machines.

 

Alternatively, if you don't want to share the internet connection via this machine, then configure eth1 first, and then configure eth0 for the internet afterwards. Maybe it's a case of doing it in the wrong order, although unsure.

Link to comment
Share on other sites

as root

ifconfig eth1 192.168.1.5/24 (choose an IP that works for your network)

 

Don't forget the subnet mask. The original command would fail, the emphasis on the subnet mask is mine just to show it was missed. /24 will give you 255.255.255.0, so you would have from 192.168.1.1-192.168.1.254. You could of course subnet further, leaving few addresses to choose from, but this is much more simple and less restrictive.

Link to comment
Share on other sites

Guest rgskeet

Thank You.. Adding the networks in reverse order worked to have eth1 not internet accessible... I still have the problem of one or the other.

 

I would like to have both eth0 and eth1 up at the same time... Right now it's eth0 and connect to the internet or activate eth1 and have access to my local net but not both.

 

 

Is this possible?

 

Thanks,

Rgskeet

Link to comment
Share on other sites

Gateway normally refers to an IP that network interface is bound to; in many home networks that would be the IP eth0, eth1, ... is gated through. Check for that in "drakconnect", ethernet / config manual / gateway.

 

thanks for your repply ..

Say i am having two NIC , eth0 with 192.168.2.2 with 255.255.255.0 and connected to 192.168.2.1 ( so this will be the gateay for eth0 but... eth1 ? ) and the second NIC eth1 10.0.0.1 with 255.255.255.0 so what will be the gateway on these NIC's ?...

Edited by sorocco
Link to comment
Share on other sites

thanks for your repply ..

Say i am having two NIC , eth0 with 192.168.2.2 with 255.255.255.0 and connected to 192.168.2.1 ( so this will be the gateay for eth0 but... eth1 ? ) and the second NIC eth1 10.0.0.1 with 255.255.255.0 so what will be the gateway on these NIC's ?...

 

Both devices may have the same gateway address, say your first one be eth0 with IP 192.168.2.2 and your second eth1 with IP 192.168.2.3 cold have the same gateway 192.168.2.1. The string 255.255.255.0 will probably reflect your netmask.

 

HTH,

 

scoonma

Link to comment
Share on other sites

Both devices may have the same gateway address, say your first one be eth0 with IP 192.168.2.2 and your second eth1 with IP 192.168.2.3 cold have the same gateway 192.168.2.1. The string 255.255.255.0 will probably reflect your netmask.

 

HTH,

 

scoonma

 

ok.. but for different network ...pls. note I Mean DIFFERENT NETWORK ie. eth0 192.168.1.0/24 and eth1 is 10.0.0.0/24 now what will be GW ..??/

Link to comment
Share on other sites

Guest rgskeet
will you pls post your ifconfig -a and explain the procedure you followed..i am having same kind of problem ..

Thanks

 

Sorry to say that did NOT solve the original problem. Yes, changing the gateway on eth1 made it possible to have both interfaces running with eth0 connected to the internet via my cable modem but, I used a gateway of 123.123.123.0 on eth1 with an IP range of 192.168...... Needless to say that didn't work....

 

As it is now, eth0 works fine and I have internet access via my cable modem. eth1 works fine and connects my local lan.

BUT, to use the internet I have to deactivate eth1. If both eth0 and eth1 are active I only have access to my lan. If eth1 is the only one active then Of course I only have access to the lan. I have tried installing them in reverse order. Is there a way to have them BOTH active at the same time and have access to the internet AND access to my lan? Here is ifconfig as I have it setup now:

 

eth0 Link encap:Ethernet HWaddr 00:0C:41:EA:33:5C

inet addr:207.255.243.39 Bcast:255.255.255.255 Mask:255.255.254.0

inet6 addr: fe80::20c:41ff:feea:335c/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:53559 errors:0 dropped:0 overruns:0 frame:0

TX packets:1217 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:4327196 (4.1 MiB) TX bytes:172560 (168.5 KiB)

Interrupt:19 Base address:0xd000

 

eth1 Link encap:Ethernet HWaddr 00:40:CA:4B:88:43

inet addr:192.168.5.10 Bcast:192.168.5.255 Mask:255.255.255.0

inet6 addr: fe80::240:caff:fe4b:8843/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:4 errors:0 dropped:0 overruns:0 frame:0

TX packets:237 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:266 (266.0 B) TX bytes:30171 (29.4 KiB)

Interrupt:20 Base address:0x6000

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:257 errors:0 dropped:0 overruns:0 frame:0

TX packets:257 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:19407 (18.9 KiB) TX bytes:19407 (18.9 KiB)

 

Thanks,

Rgskeet

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...