Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to get my 2 ethernet cards to work

Reply
Thread Tools Display Modes

How to get my 2 ethernet cards to work

 
 
VD
Guest
Posts: n/a

 
      05-04-2004, 05:03 AM
This is really tricky that I spent days without a correct solution, so
I come to you for help.

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
version of Linux is Mandrake 10, kernel: 2.6.3-4mdkenterprise.

I also get "failed" when start up the computer on both of my network
cards, but I can get into the internet normally. Strange!

I cannot ping my home ip which is: 192.168.10.1 from a same machine
(it waits forever).

I can get to the internet (eth1). However, with command: "service
network restart"
Output: failed on the eth1 and success on the eth0. I cannot get into
the internet anymore, but then I can ping 192.168.10.1. Somehow my
two cards are in conflict with each other. Next, I remove the eth1,
then add it back again (using the graphical interface). Next, I log
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
internet. However, loggin in, running any GUI apps would take
forever. Restart the machine, and I loose this current settings, and
it goes back to the begining (cannot ping the home-networking/static
ip), and the internet works. Also, there are many errors showing up
during the restart of the machine.

I add a route to my iptable:

route add -host 192.168.10.1 dev eth0
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"

If I do: route add -net 192.168.10.1 netmask 255.255.255.0 eth0
Output: "route: netmask doesn't match route address"

Here is the settings under: /etc/sysconfig/network-scripts
For the eth0 device:

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.10.1
NETMASK=255.255.255.0
NETWORK=192.168.10.0
BROADCAST=192.168.10.255
ONBOOT=yes
MII_NOT_SUPPORTED=no

For the eth1 device:
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes

Here are some message from "dmesg":

IPv6 over IPv4 tunneling driver
process `named' is using obsolete setsockopt SO_BSDCOMPAT
Installing knfsd (copyright (C) 1996 (E-Mail Removed)).
atkbd.c: Unknown key released (translated set 2, code 0x7a on
isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware
directly.
eth1: no IPv6 routers present
eth0: no IPv6 routers present

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
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
collisions:0 txqueuelen:1000
RX bytes:47864860 (45.6 Mb) TX bytes:20410 (19.9 Kb)
Interrupt:22 Memory:feaf8000-0

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:3455 errors:0 dropped:0 overruns:0 frame:0
TX packets:3455 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:144312 (140.9 Kb) TX bytes:144312 (140.9 Kb)

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

/etc/hosts file:
127.0.0.1 localhost
No Ip comp1.mynet.com comp1
192.168.10.1 comp1.mynet.com comp1

Please give me some helps. Reading the How-Tos, and other tutorial,
but I just cannot get it to work.

I also remove all the configurations many times, and then add them
again (using Mandrake graphical tools and manually).

Thank you very much for your consideration.

VD
 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      05-04-2004, 08:13 AM
On 3 May 2004 22:03:15 -0700, VD wrote:
> This is really tricky that I spent days without a correct solution, so
> I come to you for help.
>
> 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


http://www.tldp.org/HOWTO/Masqueradi...OWTO/index.htm

http://groups.google.com/advanced_group_search
(E-Mail Removed)lid in the Message Id box.
 
Reply With Quote
 
Alan Connor
Guest
Posts: n/a

 
      05-04-2004, 08:46 AM
On Tue, 04 May 2004 08:13:09 GMT, Bit Twister <(E-Mail Removed)> wrote:
>
>
> On 3 May 2004 22:03:15 -0700, VD wrote:
>> This is really tricky that I spent days without a correct solution, so
>> I come to you for help.
>>
>> 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

>
> http://www.tldp.org/HOWTO/Masqueradi...OWTO/index.htm
>
> http://groups.google.com/advanced_group_search
> (E-Mail Removed)lid in the Message Id box.


http://groups.google.com/groups?selm...b.home.invalid

Just learned that a few days ago.

AC

--
It's all Geek to me...

 
Reply With Quote
 
P.T. Breuer
Guest
Posts: n/a

 
      05-04-2004, 09:34 AM
VD <(E-Mail Removed)> 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
 
Reply With Quote
 
Dale Dellutri
Guest
Posts: n/a

 
      05-04-2004, 01:46 PM
On 3 May 2004 22:03:15 -0700, VD <(E-Mail Removed)> wrote:
> This is really tricky that I spent days without a correct solution, so
> I come to you for help.
> 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
> version of Linux is Mandrake 10, kernel: 2.6.3-4mdkenterprise.


> I also get "failed" when start up the computer on both of my network
> cards, but I can get into the internet normally. Strange!


This is an indication of an error in your setup. There should be some
error message in /var/log/messages, or dmesg.

> I cannot ping my home ip which is: 192.168.10.1 from a same machine
> (it waits forever).


I assume you mean "from the machine itself". This is simply a
consequence of the "failed" message on both NICs during startup.

> I can get to the internet (eth1).


Then there must be some process later in the startup that is repairing
eth1's setup.

> However, with command: "service
> network restart"
> Output: failed on the eth1 and success on the eth0. I cannot get into
> the internet anymore, but then I can ping 192.168.10.1.


So this causes eth1 startup to fail, but it succeeds on eth0.

Something is wrong with the configuration files for eth1 and probably
for eth0 also.

>...
> Here is the settings under: /etc/sysconfig/network-scripts


> For the eth0 device:
> DEVICE=eth0
> BOOTPROTO=static
> IPADDR=192.168.10.1
> NETMASK=255.255.255.0
> NETWORK=192.168.10.0
> BROADCAST=192.168.10.255
> ONBOOT=yes
> MII_NOT_SUPPORTED=no


> For the eth1 device:
> DEVICE=eth1
> BOOTPROTO=dhcp
> ONBOOT=yes


> Here are some message from "dmesg":


> IPv6 over IPv4 tunneling driver
> process `named' is using obsolete setsockopt SO_BSDCOMPAT
> Installing knfsd (copyright (C) 1996 (E-Mail Removed)).
> atkbd.c: Unknown key released (translated set 2, code 0x7a on
> isa0060/serio0).
> atkbd.c: This is an XFree86 bug. It shouldn't access hardware
> directly.
> eth1: no IPv6 routers present
> eth0: no IPv6 routers present


Why is your system trying IPv6? Is this a standard part of Mandrake's
setup, or is this something that you configured. If you can turn it
off, since you don't have any IPv6, you should turn it off.

> 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
> 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
>...


I understand that you're not showing the IP address because of
security, but, if it's 192.168.10.x, that'll be a problem. What
kind of addresses does the DHCP server in the network assign?
They must not be in the same subnet as your eth0 IP.

> lo Link encap:Local Loopback
>...


> /etc/hosts file:
> 127.0.0.1 localhost
> No Ip comp1.mynet.com comp1
> 192.168.10.1 comp1.mynet.com comp1


The second line of the hosts file is not formatted correctly.
You should remove it.

>...
> I also remove all the configurations many times, and then add them
> again (using Mandrake graphical tools and manually).


Does this allow you to turn off IPv6?

--
Dale Dellutri <(E-Mail Removed)> (lose the Q's)
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      05-04-2004, 01:50 PM
On Tue, 04 May 2004 08:46:11 GMT, Alan Connor wrote:
> On Tue, 04 May 2004 08:13:09 GMT, Bit Twister <(E-Mail Removed)> wrote:
>>
>> http://groups.google.com/advanced_group_search
>> (E-Mail Removed)lid in the Message Id box.

>
> http://groups.google.com/groups?selm...b.home.invalid
>
> Just learned that a few days ago.


That does not teach the user about
http://groups.google.com/advanced_group_search
 
Reply With Quote
 
Alan Connor
Guest
Posts: n/a

 
      05-04-2004, 04:00 PM
On Tue, 04 May 2004 13:50:28 GMT, Bit Twister <(E-Mail Removed)> wrote:
>
>
> On Tue, 04 May 2004 08:46:11 GMT, Alan Connor wrote:
>> On Tue, 04 May 2004 08:13:09 GMT, Bit Twister <(E-Mail Removed)> wrote:
>>>
>>> http://groups.google.com/advanced_group_search
>>> (E-Mail Removed)lid in the Message Id box.

>>
>> http://groups.google.com/groups?selm...b.home.invalid
>>
>> Just learned that a few days ago.

>
> That does not teach the user about
> http://groups.google.com/advanced_group_search


You've already done that. This teaches them something else.

*I* can use the Archives, and know that you have used this syntax precisely
ONCE on the Usenet on alt.os.linux.mandrake in 2003.

http://groups.gooogle.com/groups?(E-Mail Removed)

Considering how useful it is, that is rather surprising, you being
so very concerned with helping the newbies and all.


AC

 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      05-04-2004, 04:27 PM
On Tue, 04 May 2004 16:00:51 GMT, Alan Connor wrote:
>
> http://groups.gooogle.com/groups?(E-Mail Removed)
>
> Considering how useful it is, that is rather surprising, you being


I can agree that it is useful as shorthand for the end result.
Not many people carry message ids in their head to make the shorthand _useful_.

I use the longhand to make the newbie aware of
http://groups.google.com/advanced_group_search
and any newbie lurkers also learn about the link.

> so very concerned with helping the newbies and all.


If you were to keep track of my posts or plug Bit Twister in the
Author box in the link and read most of my post, you might see that I
try to teach the newbie how to fish instead feeding him the fish.

For this thread, it was easier to throw the fish on the bank and let
him cook and eat it.
 
Reply With Quote
 
VD
Guest
Posts: n/a

 
      05-04-2004, 04:30 PM
Thank you for helping me out. Let me try to explain abit better this
time:

(E-Mail Removed) (P.T. Breuer) wrote in message news:<(E-Mail Removed)>...
> VD <(E-Mail Removed)> 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 have 2 computers. One is the main machine, has 2 nics. One nic
connects to a cable modem, which connects to the internet. This one
use DHCP. The nic is a built-in intel chipset with the motherboard.

The 2nd nic connects to a crossover cable to my 2nd computer. After
this works, I intent to make my main computer share the internet to my
2nd computer.

With regard to the eth0, eth1, I have thought of that, but questioning
that with the almighty Linux, known to be a network OS, how could it
restrict so strictly on which one goes to the private network, and
which goes to the public network.

To make sure, the eth0 binds to the static ip address, connects to the
crossover cable to my 2nd computer. eth1 connects to the cable modem.
Individually, I was able to surf the internet with eth1, and ping the
eth0 using my 2nd computer.


>
> > 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".
>


You're right. I spends hours to fix this first, but don't know where
to start. I installed linux on 3 machines before with network cards.
They all said failed when the system starts up, but works in a sense
that I could get to the internet and everything. This does not
justify anything, just let you know that I tried to work on it too.

>
> > 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
>


I am sorry, the 192.168.10.1 is the static IP I configured for eth0.
/sbin/ifconfig was shown in the bottom of the previous post.

> and then we can judge.
>
> > I can get to the internet (eth1). However, with command: "service

>
> What do you mean?


I can browser the web, email, and whatnot, and you see alot of data
below because I was searching for a solution to my problem here.

>
> > 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 command I used: service network restart<enter>
The output: the first couple lines are [ok] (sorry, I don't have the
machine with me here, I'll update that if you need). But the last 2
lines, about eth0 and eth1, it says: [ok] and [failed] respectively.


> > 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".
>


Using single card, I can get to the internet, or the local network
(along with the "FAILED" when computer start up), but what I want is
to use 2 cards as described in the beginning of this post.

> > 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 did not ping or do anyting from my 2nd computer, so there should not
be any data here (at this time). I did ping before (on other machine
restart), but the ping failed.

> 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?
>


Yes, eth1 is the internet side. I hide the address because I am
newbie in this area, and I don't know if any misconfiguration would
let me machine opened for attach. Please forgive me on this.

> 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?


Yes, I am sure. I check this more than 10 times.

> 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.
>


the 45MB is the amount of search that I tried to find a solution to
this. As I have said, the internet side work except the "FAILED"
status when the computer start up on the (from all those scrolling
lines). If I issues "service network restart", then it stops working,
then I have to remove and add a new connection for this again (set it
up again).

> > 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.



Could you please tell me which flag defines the "default" route? How
do I fix this?

>
>
> > /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.
>


The No Ip lines was added by the Mandrake's GUI tools. I am not sure
how to fix this. Do I just delete the line? Note that this is DHCP,
which means I don't have a fixed IP address to put here.

> > 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

 
Reply With Quote
 
Alan Connor
Guest
Posts: n/a

 
      05-04-2004, 05:22 PM
On Tue, 04 May 2004 16:27:15 GMT, Bit Twister <(E-Mail Removed)> wrote:
>
>
> On Tue, 04 May 2004 16:00:51 GMT, Alan Connor wrote:
>>
>> http://groups.gooogle.com/groups?(E-Mail Removed)
>>
>> Considering how useful it is, that is rather surprising, you being

>
> I can agree that it is useful as shorthand for the end result.
> Not many people carry message ids in their head to make the shorthand _useful_.


Huh?!

The syntax is VERY useful, because once you've located a post using the Advanced
Search, you can share it with others so that THEY don't have to go through the
same rigamarole.

And/or save the Message-ID in a file for your OWN future reference, with a
little note.

Or if you see a post, or create one, that you may want to refer back to later,
you can do the same thing.

<snip>


AC

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
broacasting in two ethernet cards in the same PC supru Linux Networking 1 10-01-2006 07:07 PM
How to have two ethernet cards. Masood Ahmed Linux Networking 5 12-10-2005 12:40 PM
Ethernet Cards Windows Networking 1 09-01-2004 09:13 PM
Bridging ethernet cards yogi Linux Networking 2 08-26-2004 02:57 PM
Gigabit ethernet cards Rob Hemmings Home Networking 2 11-12-2003 11:42 PM



1 2 3 4 5 6 7 8 9 10 11