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 13:36:39
Message-Id: 201108121436.05980.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Re: new user and dhcpcd problem by Alexandre Riveira
1 On Friday 12 Aug 2011 13:52:35 Alexandre Riveira wrote:
2 > > When you run ifconfig what does it show? When you run 'ip route show'
3 > > what do
4 > > you get?
5 >
6 > localhost ~ # ifconfig
7 > eth0 Link encap:Ethernet HWaddr 00:25:22:b2:64:44
8 > inet addr:192.168.0.159 Bcast:255.255.255.255
9 > Mask:255.255.255.0
10
11 Look, this is wrong ...
12
13 Your Broadcast should be: 192.168.0.255
14
15 Otherwise you're broadcasting packets beyond your LAN.
16
17
18 > UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
19 > RX packets:669 errors:0 dropped:3 overruns:0 frame:0
20 > TX packets:40 errors:0 dropped:0 overruns:0 carrier:1
21 > collisions:0 txqueuelen:1000
22 > RX bytes:94216 (92.0 KiB) TX bytes:5395 (5.2 KiB)
23 > Interrupt:44
24 >
25 > lo Link encap:Local Loopback
26 > inet addr:127.0.0.1 Mask:255.0.0.0
27 > inet6 addr: ::1/128 Scope:Host
28 > UP LOOPBACK RUNNING MTU:16436 Metric:1
29 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
30 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
31 > collisions:0 txqueuelen:0
32 > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
33
34 This looks OK, except that the local receive and transmit counters show zero
35 ...
36
37
38 >
39 > localhost ~ # ip route show
40 > default via 192.168.0.2 dev eth0 metric 2
41 > 127.0.0.0/8 via 127.0.0.1 dev lo
42 > 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.159
43 > metric 2
44
45 This is OK
46
47
48 > > How have you configured your /etc/conf.d/net?
49 >
50 > config_eth0=( "dhcp" )
51
52 Aha! This is no longer correct if you are running the latest stable
53 baselayout2 and openrc. Instead it should be:
54
55 config_eth0="dhcp"
56
57 no brackets!
58
59 Read more here: http://www.gentoo.org/doc/en/openrc-migration.xml
60
61
62 > > The local and eth0 interfaces seem to be reversed. How have you defined
63 > > how
64 > > your local and eth0 interfaces are routed?
65 >
66 > I create link
67 >
68 > ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
69 > rc-update add net.eth0 boot
70
71 This is correct.
72
73 Change the dhcp entry in your /etc/conf.d/net and run:
74
75 /etc/init.d/net.eth0 restart
76
77
78 HTH.
79 --
80 Regards,
81 Mick

Attachments

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

Replies

Subject Author
Re: [gentoo-user] Re: new user and dhcpcd problem Alexandre Riveira <alexandre@××××××××××××××.br>