Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: new user and dhcpcd problem
Date: Fri, 12 Aug 2011 14:30:02
Message-Id: 201108121529.31013.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Re: new user and dhcpcd problem by Alexandre Riveira
1 On Friday 12 Aug 2011 15:10:24 Alexandre Riveira wrote:
2 > Tanks Mick !
3 >
4 > I ajusted /etc/conf.d/net
5 >
6 > resuts:
7 >
8 > localhost home # ifconfig
9 > eth0 Link encap:Ethernet HWaddr 00:25:22:b2:64:44
10 > inet addr:192.168.0.159 Bcast:255.255.255.255
11
12 This is wrong as I have explained previously. Are you specifying this
13 manually? What is the complete content of your /etc/conf.d/net?
14
15
16 > Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
17 > RX packets:166 errors:0 dropped:0 overruns:0 frame:0
18 > TX packets:96 errors:0 dropped:0 overruns:0 carrier:1
19 > collisions:0 txqueuelen:1000
20 > RX bytes:20671 (20.1 KiB) TX bytes:12593 (12.2 KiB)
21 > Interrupt:44
22 >
23 > lo Link encap:Local Loopback
24 > inet addr:127.0.0.1 Mask:255.0.0.0
25 > inet6 addr: ::1/128 Scope:Host
26 > UP LOOPBACK RUNNING MTU:16436 Metric:1
27 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
28 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
29 > collisions:0 txqueuelen:0
30 > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
31
32 The lo RX & TX counters are still zero - this shows that your local interface
33 is not routed correctly.
34
35 > localhost home # route -n
36 > Kernel IP routing table
37 > Destination Gateway Genmask Flags Metric Ref Use
38 > Iface
39 > 0.0.0.0 192.168.0.2 0.0.0.0 UG 2 0 0
40 > eth0 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0
41 > 0 lo 192.168.0.0 0.0.0.0 255.255.255.0 U 2 0
42
43 Yep! The local interface is still incorrect. Somehow you have configured it
44 as a default gateway ... in your LAN subnet ... o_O
45
46
47 > localhost home # ip route show
48 > default via 192.168.0.2 dev eth0 metric 2
49 > 127.0.0.0/8 via 127.0.0.1 dev lo
50 > 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.159
51 > metric 2
52
53 The ip route show results are not consistent with your route -n result
54 preceding them.
55
56 > But still not working :(
57
58 Of course it won't. You have not configured your network correctly.
59
60
61 > I change for
62 >
63 > emerge networkmanager
64 > rc-update del net.eth0 default
65 > rc-update add NetworkManager default
66 >
67 > Work fine !!!!!! :)
68 > Do not understand why
69
70 Because you must have entries in your /etc/conf.d/net, or added routes
71 manually on the CLI which are incorrect.
72 --
73 Regards,
74 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature