Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-27-2005, 01:56 AM   #1
LQ Newbie
Registered: Nov 2005
Posts: 20

Rep: Reputation: 0
Exclamation 2 network interface cards

My PC have to network cards:
eth0 (
eth1 ( Gateway is

The eth1 card is connect to the router. My internet connection is eth1.

Problem is that eth0. I am able to ping the eth1 and eth0 each another. But, when I try to ping from (eth0) to eth1, the network can't reach. What do I need to do in order to let my eth0 pings to and outside world.
Old 12-27-2005, 03:55 AM   #2
Registered: Oct 2005
Location: Earth
Distribution: Slackware 10.2
Posts: 60

Rep: Reputation: 15
Looks like you need to change the ip address for to something like 192.168.1.xx (note: xx should be replaced with actual numbers).
Old 12-27-2005, 04:39 AM   #3
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
you should check the kernel's routing table:
#route -n
$man route
Old 12-27-2005, 04:47 AM   #4
LQ Newbie
Registered: Dec 2005
Location: pakistan
Posts: 3

Rep: Reputation: 0
enable ip forwading in kernel
Old 12-27-2005, 08:04 PM   #5
LQ Newbie
Registered: Nov 2005
Posts: 20

Original Poster
Rep: Reputation: 0
re: 2 network interface cards

I enable ip forward, what to do next! The following is my route -n info:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface U 0 0 0 eth1 U 0 0 0 eth0 U 0 0 0 lo UG 0 0 0 eth1

I am not able to ping from to the (router).

Folks, many thx!
Old 12-27-2005, 08:16 PM   #6
LQ Newbie
Registered: Nov 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Smile 2 network cards

I am not able to ping from eth0 ( to router ( So, my eth1 has a cable to the router and eth0 do not have cable attach to any switch or router. So, I use the ping command to do the ping:

ping -I

However, this is not success. So, how do I tell the computer to send the packet from to eth1 then to router. Is the route cmd able to do it? Please enlighten me!

Actually, my ideas is to want my pc to be another router again so that I have different segment of ip address.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network interface phopkins Linux - Networking 2 04-27-2005 09:55 AM
2 network cards, single network, load balancing? tormentum Linux - Networking 1 02-13-2005 02:37 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
Two network cards = network problem filch Linux - Networking 3 01-04-2005 02:06 AM
2 network cards, 2 network connections - routing problem tvojvodi Linux - Networking 4 02-24-2004 03:26 PM > Forums > Linux Forums > Linux - Networking

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

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