Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange trouble with my network......
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Fri May 21, 2004 4:12 pm    Post subject: Strange trouble with my network...... Reply with quote

Hi !

I have a strange trouble with my network....

All working good, i reboot the computer and now no network anymore.
i have 2 card: Fisrt 3c59x and Second 8139too.

The cards is up (lsmod) and ifconfig. If i do a ping on the ip of each card on the same machine it's ok. But form other machine...nothing. I have stopped iptable (maybe a rules troubles ??) but not working too.

I use adsl-setup to acces internet.....doesn't work anymore. The card can't talk with de adsl-router.( i can't see the led on the adsl-router when i try to connect now).

So, the card seem to be up and running but no activity !!

Thanks !
P.S.( Sorry for my bad english ;o) )
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Fri May 21, 2004 8:06 pm    Post subject: Reply with quote

Mustard007,

Please post the output of /sbin/ifconfig and /sbin/route -n
How does each network card get its setup information, the IP address etc?

Please don't withhold the IP addresses unless they are public ones, then blanking out the first group uf numbers should be adequate.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Tue May 25, 2004 6:49 pm    Post subject: Reply with quote

Hi !

Sorry for the delay....

So here the ouput:
----------------------

Route -n:
======
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo

ifconfig:
=====
eth0 Link encap:Ethernet HWaddr 00:00:21:E1:EE:83
inet addr:192.168.7.2 Bcast:192.168.7.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:180 (180.0 b)
Interrupt:11 Base address:0x1000

eth1 Link encap:Ethernet HWaddr 00:01:02:3B:98:08
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3466 (3.3 Kb) TX bytes:62 (62.0 b)
Interrupt:10 Base address:0xcc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

/etc/conf.d/net:
==========

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.7.2 broadcast 192.168.7.255 netmask 255.255.255.0"
iface_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"


Hostname, host, domainname, dnsdomainename and resolv.conf are set.
Thanks a lot !
;o)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Tue May 25, 2004 7:11 pm    Post subject: Reply with quote

Mustard007,

A couple of things,

Your routing table is missing a defaut route. The the moment it says to send packets to the 192.168.7.0 network send them to eth0. It that rule doesn't fit it tries the next one which says to send packets to the 192.168.0.0 network send them to eth1.
The last rule says to send packets to 127.0.0.0 send them to local (lo).

All other packets are thrown away, which is not what you want.
ifconfig looks good.

The last line of /etc/conf.d/net is wrong.
Quote:
#gateway="eth0/192.168.0.1"

It needs to say
Quote:
gateway="ethN/192.168.M.P"

Where N (0 or 1) is the interface connected to your router.
and M (7 or 0) ties in with ethN
and P is the last part of the IP address of the router.

When you restart networking you will get a new rule that begins 0.0.0.0 that will say, if nothing else matches, send the packet to the gateway on ethN.

With that fixed, you should be back in business browing from that PC.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Tue May 25, 2004 7:15 pm    Post subject: Reply with quote

Ok thanks !!!
I will go to do a try to your config ;o)


But i never touched that setting and everyting go fine before ? Strange !! ;o)

I will come back to you with some feedback ;)

Thanks again !
Back to top
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Tue May 25, 2004 9:10 pm    Post subject: Reply with quote

Doesn't work...... :(

Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Tue May 25, 2004 9:21 pm    Post subject: Reply with quote

Mustard007,

Post the new route -n output and the IP info for your router.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Tue Jun 01, 2004 3:58 pm    Post subject: Reply with quote

Problem solved....i reinstalled Gentoo ;o)

And, i dont have to uncomment the gateway or my ADSL doesn't work anymore.

This is my route -n when the ADSL (rp-pppoe) is able to run.:
---------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
66.36.128.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 66.36.128.1 0.0.0.0 UG 0 0 0 ppp0
----------------

So the mysterious trouble of my network is not resolved but now it's ok with a new installation.

Thanks !!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum