Gentoo Archives: gentoo-user

From: Alexandre Riveira <alexandre@××××××××××××××.br>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: new user and dhcpcd problem
Date: Fri, 12 Aug 2011 14:12:09
Message-Id: CAL5QHYEqLb8qWyCYGnhOeNtRW5=NnNFXiMgqMPTrWoAkDBQtPA@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: new user and dhcpcd problem by Mick
1 Tanks Mick !
2
3 I ajusted /etc/conf.d/net
4
5 resuts:
6
7 localhost home # ifconfig
8 eth0 Link encap:Ethernet HWaddr 00:25:22:b2:64:44
9 inet addr:192.168.0.159 Bcast:255.255.255.255 Mask:255.255.255.0
10 UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
11 RX packets:166 errors:0 dropped:0 overruns:0 frame:0
12 TX packets:96 errors:0 dropped:0 overruns:0 carrier:1
13 collisions:0 txqueuelen:1000
14 RX bytes:20671 (20.1 KiB) TX bytes:12593 (12.2 KiB)
15 Interrupt:44
16
17 lo Link encap:Local Loopback
18 inet addr:127.0.0.1 Mask:255.0.0.0
19 inet6 addr: ::1/128 Scope:Host
20 UP LOOPBACK RUNNING MTU:16436 Metric:1
21 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
22 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
23 collisions:0 txqueuelen:0
24 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
25
26 localhost home # route -n
27 Kernel IP routing table
28 Destination Gateway Genmask Flags Metric Ref Use
29 Iface
30 0.0.0.0 192.168.0.2 0.0.0.0 UG 2 0 0 eth0
31 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
32 192.168.0.0 0.0.0.0 255.255.255.0 U 2 0 0 eth0
33 localhost home # if route show
34 > ^C
35 localhost home # ip route show
36 default via 192.168.0.2 dev eth0 metric 2
37 127.0.0.0/8 via 127.0.0.1 dev lo
38 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.159 metric
39 2
40
41 But still not working :(
42
43 I change for
44
45 emerge networkmanager
46 rc-update del net.eth0 default
47 rc-update add NetworkManager default
48
49 Work fine !!!!!! :)
50 Do not understand why
51
52 Regards
53
54 Alexandre Riveira
55
56
57
58
59
60
61
62 Tanks
63
64 Alexandre Riveira
65
66
67 2011/8/12 Mick <michaelkintzios@×××××.com>
68
69 > On Friday 12 Aug 2011 13:52:35 Alexandre Riveira wrote:
70 > > > When you run ifconfig what does it show? When you run 'ip route show'
71 > > > what do
72 > > > you get?
73 > >
74 > > localhost ~ # ifconfig
75 > > eth0 Link encap:Ethernet HWaddr 00:25:22:b2:64:44
76 > > inet addr:192.168.0.159 Bcast:255.255.255.255
77 > > Mask:255.255.255.0
78 >
79 > Look, this is wrong ...
80 >
81 > Your Broadcast should be: 192.168.0.255
82 >
83 > Otherwise you're broadcasting packets beyond your LAN.
84 >
85 >
86 > > UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
87 > > RX packets:669 errors:0 dropped:3 overruns:0 frame:0
88 > > TX packets:40 errors:0 dropped:0 overruns:0 carrier:1
89 > > collisions:0 txqueuelen:1000
90 > > RX bytes:94216 (92.0 KiB) TX bytes:5395 (5.2 KiB)
91 > > Interrupt:44
92 > >
93 > > lo Link encap:Local Loopback
94 > > inet addr:127.0.0.1 Mask:255.0.0.0
95 > > inet6 addr: ::1/128 Scope:Host
96 > > UP LOOPBACK RUNNING MTU:16436 Metric:1
97 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
98 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
99 > > collisions:0 txqueuelen:0
100 > > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
101 >
102 > This looks OK, except that the local receive and transmit counters show
103 > zero
104 > ...
105 >
106 >
107 > >
108 > > localhost ~ # ip route show
109 > > default via 192.168.0.2 dev eth0 metric 2
110 > > 127.0.0.0/8 via 127.0.0.1 dev lo
111 > > 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.159
112 > > metric 2
113 >
114 > This is OK
115 >
116 >
117 > > > How have you configured your /etc/conf.d/net?
118 > >
119 > > config_eth0=( "dhcp" )
120 >
121 > Aha! This is no longer correct if you are running the latest stable
122 > baselayout2 and openrc. Instead it should be:
123 >
124 > config_eth0="dhcp"
125 >
126 > no brackets!
127 >
128 > Read more here: http://www.gentoo.org/doc/en/openrc-migration.xml
129 >
130 >
131 > > > The local and eth0 interfaces seem to be reversed. How have you
132 > defined
133 > > > how
134 > > > your local and eth0 interfaces are routed?
135 > >
136 > > I create link
137 > >
138 > > ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
139 > > rc-update add net.eth0 boot
140 >
141 > This is correct.
142 >
143 > Change the dhcp entry in your /etc/conf.d/net and run:
144 >
145 > /etc/init.d/net.eth0 restart
146 >
147 >
148 > HTH.
149 > --
150 > Regards,
151 > Mick
152 >

Replies

Subject Author
Re: [gentoo-user] Re: new user and dhcpcd problem Bill Longman <bill.longman@×××××.com>
Re: [gentoo-user] Re: new user and dhcpcd problem Mick <michaelkintzios@×××××.com>