Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-17-2004, 06:11 AM
|
#1
|
|
Member
Registered: Jan 2003
Location: ohio
Distribution: CentOS5.5, SmoothWall 3.0
Posts: 139
Rep:
|
2 nics, 2 networks help.
I have a Fedora Linux Box that I have installed 2 nics into running http, tftp, and ftp.. I am trying to get each of the interfaces to use these services.
eth0 = 192.168.2.10/24
and
eth1 = 172.22.22.203/24
(I have done this on a fc1 and fc2 machine with same results)
/etc/sysconfig/network-scripts/eth0 reads:
# 3com Corp|3c905 100BaseTX
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.2.225
HWADDR=00:10:4C:24:CF:42
IPADDR=192.168.2.10
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=no
/etc/sysconfig/network-scripts/eth1 reads:
# DEC|DECchip 21142/43
DEVICE=eth1
BOOTPROTO=none
BROADCAST=172.22.22.255
HWADDR=00:40:F3:A4:1D:F3
IPADDR=172.22.22.203
NETMASK=255.255.255.0
NETWORK=172.22.22.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=no
From the Linux box I can ping Loopback, and I can ping both interfaces
192.168.2.10 and 172.22.22.203.
There is no firewall.
When I connect another computer via crossover cable to eth0(192.168.2.10) and change the computer to 192.168.2.11 I can ping it all day.
When I do the same for eth1(172.22.22.203) and change the computer to 172.22.22.205 I cant ping it. It says destination unreachable...
How can I make this work
Thanks..
Last edited by chrisknight; 12-17-2004 at 06:12 AM.
|
|
|
|
12-17-2004, 06:33 AM
|
#2
|
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990
Rep:
|
This sounds like a routing problem, rather than a problem with the configuration of either interface.
You'll find documentation on this on tldp.org. You want to look at the /sbin/route command.
|
|
|
|
12-17-2004, 07:15 AM
|
#3
|
|
Senior Member
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,888
Rep:
|
To me, it sounds like iptables is nagging you.
|
|
|
|
12-17-2004, 04:33 PM
|
#4
|
|
Member
Registered: Jan 2003
Location: ohio
Distribution: CentOS5.5, SmoothWall 3.0
Posts: 139
Original Poster
Rep:
|
Issuing the command 'route' on this box gives me:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use IFace
172.22.22.0 * 255.255.255.0 U 0 0 0 eth1
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
Look right?
|
|
|
|
12-18-2004, 09:25 AM
|
#5
|
|
Senior Member
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,888
Rep:
|
how about the output of
?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:09 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|