Gentoo Archives: gentoo-amd64

From: Steve Herber <herber@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Broken network
Date: Fri, 03 Feb 2006 20:18:56
Message-Id: Pine.LNX.4.64.0602031204270.3258@thing.com
In Reply to: [gentoo-amd64] Broken network by "gigli@swipnet.se"
1 run these commands to see the status of your network interface and
2 routing:
3
4 ifconfig -a
5 netstat -rn
6
7 On a single interface computer it would look like this:
8
9
10 $ ifconfig -a
11 eth0 Link encap:Ethernet HWaddr 00:0B:CD:2A:B2:1F
12 inet addr:128.95.150.112 Bcast:128.95.150.255 Mask:255.255.255.0
13 inet6 addr: fe80::20b:cdff:fe2a:b21f/64 Scope:Link
14 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
15 RX packets:9695561 errors:0 dropped:0 overruns:0 frame:0
16 TX packets:2717186 errors:35 dropped:0 overruns:0 carrier:35
17 collisions:408371 txqueuelen:1000
18 RX bytes:2360490427 (2251.1 Mb) TX bytes:773211091 (737.3 Mb)
19
20 lo Link encap:Local Loopback
21 inet addr:127.0.0.1 Mask:255.0.0.0
22 inet6 addr: ::1/128 Scope:Host
23 UP LOOPBACK RUNNING MTU:16436 Metric:1
24 RX packets:3874 errors:0 dropped:0 overruns:0 frame:0
25 TX packets:3874 errors:0 dropped:0 overruns:0 carrier:0
26 collisions:0 txqueuelen:0
27 RX bytes:5247803 (5.0 Mb) TX bytes:5247803 (5.0 Mb)
28
29 genuser@dell /usr/share/doc 860 $ netstat -rn
30 Kernel IP routing table
31 Destination Gateway Genmask Flags MSS Window irtt Iface
32 128.95.150.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
33 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
34 0.0.0.0 128.95.150.100 0.0.0.0 UG 0 0 0 eth0
35 genuser@dell /usr/share/doc 861 $
36
37
38 If you expect to get a DHPC address and it works, your results should
39 match my sample. If DHCP fails and you need to hardcode your IP
40 address, you should look in the Gentoo Handbook and configure
41 /etc/conf.d/net to support a fixed IP address.
42
43 If you can configure your IP address but you can't connect outside then
44 your default gateway is probably wrong. In my sample above the
45 important line is the 0.0.0.0, default address, which sends all
46 non-local traffic to 128.95.150.100, which is the default route on my
47 subnet.
48
49 You can set NET_DEBUG in the /etc/conf.d/net file and run
50 /etc/init.d/net.eth0 start and try to see what fails.
51
52 I hope some of this ramble helps you. Good luck!
53
54
55 Steve Herber herber@×××××.com work: 206-221-7262
56 Security Engineer, UW Medicine, IT Services home: 425-454-2399
57
58 On Fri, 3 Feb 2006, gigli@×××××××.se wrote:
59
60 > Hi
61 > I have an Amd64 x2 system and this is the second time my networks broke after
62 > an update. With dhcp it wont recieve an ipaddress, with a forced ipaddress it
63 > will show the address, i can ping it, but any ping outside its own is
64 > unreachable. This time i made an uDa world and configured a new kernel, i
65 > used the old kernel config except that i configured it for winbond hardware
66 > sensor. revdep-rebuild is ok.
67 >
68 > The last emerge was about alsa-libs, python, pycrypto, poppler, dbus, sqlite,
69 > alsa-tools, samba, libsigc++, and libgnomemm. Everythin worked just fine
70 > before this.
71 >
72 > Any help i can get would be helpful. I don't know where to start.
73 >
74 > Martin
75 >
76 >
77 >
78 >
79 > --
80 > gentoo-amd64@g.o mailing list
81 >
82 --
83 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] Broken network "gigli@×××××××.se" <gigli@×××××××.se>