[gentoo-user] Brand new instalation - Network problem

2013-10-26 Thread João Matos
Hi list,

I`ve just installed a brand new gentoo amd64 and there is this problem: my
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI
Express Gigabit Ethernet controller (rev 06) is recognized as *sit0* , but
I can't get any IP Adress.

dhcp takes long and doesn't get any result. dhcpcd doesn't work either.
Even if I choose a manual address I cant ping other devices.

When I used ifconfig, I got something like ipv6 over ipv4, but I will
only need ipv4. So I disabled ipv6 USE flag, but I didn't change anything.
The weird thing is that if I disable the IPV6 kernel support (manual
configuration btw), the network interface (sit0) desappears!

When I reboot the system using a usb botable Ubuntu everything works fine,
using the same hardware/infrastructure.

I have no idea what is going on here, so, please, send me some links.

Thank you all,

-- 
João Neto
Linux User #461527
http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552


emerge
Description: Binary data


Re: [gentoo-user] Brand new instalation - Network problem

2013-10-26 Thread Joakim Gebart
2013/10/26 João Matos jaon...@gmail.com:
 Hi list,

 I`ve just installed a brand new gentoo amd64 and there is this problem: my
 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI
 Express Gigabit Ethernet controller (rev 06) is recognized as sit0 , but I
 can't get any IP Adress.

sit0 is completely unrelated, it is an IPv6 tunnel device. You need to
compile the r8169 driver.
Make sure CONFIG_R8169=m or y in your kernel config and try again
(modprobe r8169).
I have a Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express
Gigabit Ethernet Controller (rev 06), pci id 10ec:8168
on my motherboard and it works fine with the R8169 driver on kernel
3.10.9 (and has been working since at least the 3.4 series, which was
when I installed this system)


 dhcp takes long and doesn't get any result. dhcpcd doesn't work either. Even
 if I choose a manual address I cant ping other devices.

 When I used ifconfig, I got something like ipv6 over ipv4, but I will only
 need ipv4. So I disabled ipv6 USE flag, but I didn't change anything. The
 weird thing is that if I disable the IPV6 kernel support (manual
 configuration btw), the network interface (sit0) desappears!

 When I reboot the system using a usb botable Ubuntu everything works fine,
 using the same hardware/infrastructure.

 I have no idea what is going on here, so, please, send me some links.

 Thank you all,

 --
 João Neto
 Linux User #461527
 http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552



Re: [gentoo-user] Brand new instalation - Network problem

2013-10-26 Thread Dustin C. Hatch

On 10/26/2013 15:44, João Matos wrote:

Hi list,

I`ve just installed a brand new gentoo amd64 and there is this problem:
my Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168
PCI Express Gigabit Ethernet controller (rev 06) is recognized as
*sit0* , but I can't get any IP Adress.
sit0 is a virtual adapter for 6to4, an IPv6 transition mechanism, not a 
real Ethernet adapter.


dhcp takes long and doesn't get any result. dhcpcd doesn't work either.
Even if I choose a manual address I cant ping other devices.
Since sit0 isn't a real adapter, it isn't actually your network card, so 
it isn't connected to anything.


When I used ifconfig, I got something like ipv6 over ipv4, but I will
only need ipv4. So I disabled ipv6 USE flag, but I didn't change
anything. The weird thing is that if I disable the IPV6 kernel support
(manual configuration btw), the network interface (sit0) desappears!

When I reboot the system using a usb botable Ubuntu everything works
fine, using the same hardware/infrastructure.

I have no idea what is going on here, so, please, send me some links.



You need to make sure the driver for your network adapter is compiled in 
to the kernel. I believe for your card, that would be CONFIG_R8169:


Device Drivers  ---
[*] Network device support  ---
[*]   Ethernet driver support  ---
[*]   Realtek devices
* Realtek 8169 gigabit ethernet support

--
♫Dustin
http://dustin.hatch.name/



Re: [gentoo-user] Brand new instalation - Network problem

2013-10-26 Thread Bruce Hill
On Sat, Oct 26, 2013 at 08:44:00PM +, João Matos wrote:
 Hi list,
 
 I`ve just installed a brand new gentoo amd64 and there is this problem: my
 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI
 Express Gigabit Ethernet controller (rev 06) is recognized as *sit0* , but
 I can't get any IP Adress.
 
 dhcp takes long and doesn't get any result. dhcpcd doesn't work either.
 Even if I choose a manual address I cant ping other devices.
 
 When I used ifconfig, I got something like ipv6 over ipv4, but I will
 only need ipv4. So I disabled ipv6 USE flag, but I didn't change anything.
 The weird thing is that if I disable the IPV6 kernel support (manual
 configuration btw), the network interface (sit0) desappears!
 
 When I reboot the system using a usb botable Ubuntu everything works fine,
 using the same hardware/infrastructure.

sit0 is used for ipv6 tunneling (6to4), it is not a physical interface

While you're in the Ubuntu environment, issue lspci -k to see which kernel
driver your ethernet device uses. It is R8169 which is provided by:

Symbol: R8169 [=y]
Type  : tristate
Prompt: Realtek 8169 gigabit ethernet support
  Location:
- Device Drivers
  - Network device support (NETDEVICES [=y])
- Ethernet driver support (ETHERNET [=y])
  - Realtek devices (NET_VENDOR_REALTEK [=y])

The Gentoo Handbook has the following Networking section
http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1chap=8#doc_chap2
which tells you what to do.

If you prefer eth0, rather than some udev mangled name such as enp3s0, read
the three methods in https://wiki.gentoo.org/wiki/Udev/upgrade
-- 
Happy Penguin Computers   ')
126 Fenco Drive   ( \
Tupelo, MS 38801   ^^
supp...@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting



Re: [gentoo-user] Brand new instalation - Network problem

2013-10-26 Thread Dragostin Yanev
On Sat, 26 Oct 2013 20:44:00 +
João Matos jaon...@gmail.com wrote:

 Hi list,
 
 I`ve just installed a brand new gentoo amd64 and there is this
 problem: my Ethernet controller: Realtek Semiconductor Co., Ltd.
 RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06) is
 recognized as *sit0* , but I can't get any IP Adress.
 
 dhcp takes long and doesn't get any result. dhcpcd doesn't work
 either. Even if I choose a manual address I cant ping other devices.
 
 When I used ifconfig, I got something like ipv6 over ipv4, but I
 will only need ipv4. So I disabled ipv6 USE flag, but I didn't change
 anything. The weird thing is that if I disable the IPV6 kernel
 support (manual configuration btw), the network interface (sit0)
 desappears!
 
 When I reboot the system using a usb botable Ubuntu everything works
 fine, using the same hardware/infrastructure.
 
 I have no idea what is going on here, so, please, send me some links.
 
 Thank you all,
 

Hi João,

Let's do some basic troubleshooting.

look at the output of the following commands
 # lspci 
 # dmesg | grep -b2 -a2 -i ethernet
 # lsmod

This will hopefully help us determine if the correct driver is loaded.



Re: [gentoo-user] Brand new instalation - Network problem

2013-10-26 Thread João Matos
2013/10/26 João Matos jaon...@gmail.com


 Hi João,

 Let's do some basic troubleshooting.

 look at the output of the following commands
  # lspci

  [...]
 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B
 PCI Express Gigabit Ethernet controller (rev 06)

  # dmesg | grep -b2 -a2 -i ethernet


 [system, not chroot environment]
 37800-[0.959789] e1000: Copyright (c) 1999-2006 Intel Corporation.
 37865-[0.959836] sky2: driver version 1.30
 37906:[0.959959] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
 37969-[0.960183] r8169 :02:00.0: irq 41 for MSI/MSI-X
 38025-[0.960346] r8169 :02:00.0 eth0: RTL8168evl/8111evl at
 0xc9628000, 90:2b:34:fb:4e:f9, XID 0c900800 IRQ 41


  # lsmod


 There is something really strange here! These 5 lines is everything that I
 got when I run lsmod. The module is compiled (.conf attached) but, even if
 I tape modprobe r8169 the output doesn't change.

 berore I configure the kernel I've run make localmodconfig, but I don't
 think  I would create any problem since I've used it some times before.

 Maybe it is not module. I compile it in kernel itself.

 The lines:

 Module  Size  Used by
 sit12439  0
 ip_tunnel  11548  1 sit
 tunnel4 2165  1 sit
 ipv6  279632  15 sit



 This will hopefully help us determine if the correct driver is loaded.



 --
 João Neto
 Linux User #461527
 http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552


Problem solved! Just a misunderstanding. At the beginning the module really
wasn`t compilled into the kernel, but, when I did it, I was already
assuming that the name was sit0.

Everything is working fine with enp2s0.

Thank you all.

-- 
João Neto
Linux User #461527
http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552