LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-27-2005, 01:56 AM   #1
kehkok
LQ Newbie
 
Registered: Nov 2005
Posts: 20

Rep: Reputation: 0
Exclamation 2 network interface cards


My PC have to network cards:
eth0 (192.168.10.23)
eth1 (192.168.1.23) Gateway is 192.168.1.1

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 192.168.10.23 (eth0) to eth1, the network can't reach. What do I need to do in order to let my eth0 pings to 192.168.1.1 and outside world.
 
Old 12-27-2005, 03:55 AM   #2
cybrog
Member
 
Registered: Oct 2005
Location: Earth
Distribution: Slackware 10.2
Posts: 60

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

Rep: Reputation: 30
you should check the kernel's routing table:
Code:
#route -n
$man route
 
Old 12-27-2005, 04:47 AM   #4
HINNA
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
kehkok
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
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.10.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.1.1 0.0.0.0 UG 0 0 0 eth1


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

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

Original Poster
Rep: Reputation: 0
Smile 2 network cards

I am not able to ping from eth0 (192.168.10.23) to router (192.168.1.1). 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 192.168.10.23 192.168.1.1

However, this is not success. So, how do I tell the computer to send the packet from 192.168.10.23 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.

Thx!
 
  


Reply


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


All times are GMT -5. The time now is 04:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration