Re: How to get my 2 ethernet cards to work
From: P.T. Breuer (ptb_at_oboe.it.uc3m.es)
Date: 05/04/04
- Next message: Kamus of Kadizhar: "Re: Connecting to internet through ethernet card.."
- Previous message: Bas Laurier: "Re: Connecting to internet through ethernet card.."
- In reply to: VD: "How to get my 2 ethernet cards to work"
- Next in thread: VD: "Re: How to get my 2 ethernet cards to work"
- Reply: VD: "Re: How to get my 2 ethernet cards to work"
- Reply: /dev/rob0: "Re: How to get my 2 ethernet cards to work"
- Reply: Michael Heiming: "Re: How to get my 2 ethernet cards to work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 4 May 2004 11:34:36 +0200
VD <st946tbf@drexel.edu> wrote:
> I have two network/ethernet cards. One is for my home network with
> static ip (eth0), another is to the DHCP cable modem (eth1). The
This is not clear. A cable modem is not exactly the same thing as an
ethernet card. If you have a cable modem that connects to an ethernet
card on your computer, then I understand that, but the connection is
the wrong way round - usually eth0 will be to the internet, and eth1 to
the intranet. Swap your cables.
> I also get "failed" when start up the computer on both of my network
Then you had better fix that! Without drivers they are not going to
work.
> cards, but I can get into the internet normally. Strange!
Don't be silly. Do you also say "strange" when you walk into your hose
and find that the dining room suite has gone? I would say "something is
deeply wrong here and I need to fix it before taking a single step
further".
> I cannot ping my home ip which is: 192.168.10.1 from a same machine
> (it waits forever).
It's supposed to wait forever. What makes you think that is your IP?
SHow the output of
/sbin/ifconfig
and then we can judge.
> I can get to the internet (eth1). However, with command: "service
What do you mean?
> network restart"
> Output: failed on the eth1 and success on the eth0. I cannot get into
I don't understand what you mean. Please be precise: command line and
error message, test and observation. Nothing else.
> the internet anymore, but then I can ping 192.168.10.1. Somehow my
Meaningless - why should we be interested in this number? You present
no evidence to suggest we should. It could be anything.
> two cards are in conflict with each other. Next, I remove the eth1,
That's fine. Keep things like that.
> then add it back again (using the graphical interface). Next, I log
No, do not use a "graphical interface". Remove means "take out using
screwdriver".
> out and in. Now, I can ping both IP addresses of the machine from the
> same machine, but cannot ping to the public internet, or get onto the
That's all fine. But stop making us guess. Just show the output from
/sbin/ifconfig and /sbin/route. There is no need to make so much fuss!
> internet. However, loggin in, running any GUI apps would take
Well that's because you have messed up your networking. Your host name
does not resolve.
> forever. Restart the machine, and I loose this current settings, and
Good.
> it goes back to the begining (cannot ping the home-networking/static
Good.
> ip), and the internet works. Also, there are many errors showing up
> during the restart of the machine.
Good.
Show us some data.
> I add a route to my iptable:
Eh?
> route add -host 192.168.10.1 dev eth0
FIne - but this merely shows you that eth0 is not up. No driver. Why
are you doing all this blind?
> Output: "SIOCADDRT: No such device" error
>
> If I do: route add -host 192.168.10.1 netmask 255.255.255.0 eth0
> Output: "route: netmask 000000ff doesn't make sense with host route"
Indeed it doesn't. Stop using "-host".
> If I do: route add -net 192.168.10.1 netmask 255.255.255.0 eth0
> Output: "route: netmask doesn't match route address"
Indeed it doesn't. Stop using "-net".
> Here is the settings under: /etc/sysconfig/network-scripts
> For the eth0 device:
Show us the output from
/sbin/ifconfig
/sbin/route -n
and there's an end to it!
> eth1: no IPv6 routers present
> eth0: no IPv6 routers present
Yay!!!!!!!!! What NIC? What driver?
>
> Here is the ifconfig command outputs (with some data back out):
>
> eth0 Link encap:Ethernet HWaddr 00:0x:xx:xx:xx:xx
> inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
> inet6 addr: xxxx::xxx:xxx:xxxx:xxxx/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
OK - well this has been configured correctly, but it is not connected
to a line on which any packets have been seen. I would open the netmask
to /16 instead of /24, since I find it unlikely that 192.168.10. is
really a network of yours or your providers. Anyway, there should be
some broadcast packets going by! A session with tcpdump -i eth0
would show you.
I might suspect the IP addresses are on the wrong cards.
> TX packets:18 errors:36 dropped:0 overruns:0 carrier:72
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:848 (848.0 b)
> Interrupt:21 Base address:0xd400
>
> eth1 Link encap:Ethernet HWaddr 00:0x:xx:xx:xx:xx
> inet addr:xx.xxx.xxx.xxx Bcast:255.255.255.255 Mask:255.255.252.0
> inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:660276 errors:0 dropped:0 overruns:0 frame:0
> TX packets:314 errors:0 dropped:0 overruns:0 carrier:0
This one is fine, and is both transmitting and receiving like crazy.
Oh - but its broadcast address is crazy. Fix! Is this the internet
side?
If so, it's fine. If it's your intranet side, I don't see why you
bothered to hide the addresses. Are you sure this is the internet side?
With that much activity, it looks a lot more like there are many other
computers on that lan, which sounds more like your home lan than the
router.
> collisions:0 txqueuelen:1000
> RX bytes:47864860 (45.6 Mb) TX bytes:20410 (19.9 Kb)
> Interrupt:22 Memory:feaf8000-0
See? 45MB have gone by your eyes on that lan! Looks like the intranet
side to me! But how did you get them seen?
Oh well.
> Issue command: /sbin/route -n
>
> 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> xxx.xxx.xxx.0 0.0.0.0 255.255.252.0 U 0 0 0 eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0
yes, well your default route is on the wrong interface, if eth1 is the
internet side! That's silly. Fix.
> /etc/hosts file:
> 127.0.0.1 localhost
> No Ip comp1.mynet.com comp1
Eh? Fix. That'll wreck the file. You want the internet IP binding
there.
> 192.168.10.1 comp1.mynet.com comp1
No no. It's good that you have an entry for your intranet NIC, but it's
not necessary since you have a fixed internet connection to which you
can bind the hostname. Leave this out unless you are planning on having
this as the permament binding (fine by me!).
> Please give me some helps. Reading the How-Tos, and other tutorial,
> but I just cannot get it to work.
Well, stop messing up.
> I also remove all the configurations many times, and then add them
> again (using Mandrake graphical tools and manually).
Well, don't! Don't use such things.
Peter
- Next message: Kamus of Kadizhar: "Re: Connecting to internet through ethernet card.."
- Previous message: Bas Laurier: "Re: Connecting to internet through ethernet card.."
- In reply to: VD: "How to get my 2 ethernet cards to work"
- Next in thread: VD: "Re: How to get my 2 ethernet cards to work"
- Reply: VD: "Re: How to get my 2 ethernet cards to work"
- Reply: /dev/rob0: "Re: How to get my 2 ethernet cards to work"
- Reply: Michael Heiming: "Re: How to get my 2 ethernet cards to work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|