Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

1. Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Fabio
fabio_xsw

(usa Debian)

Enviado em 17/01/2015 - 08:38h

Pessoal primeiramente bom dia , gostaria de uma ajuda dos colegas , estou com duvidas de como fazer , bom na verdade duvida não , a verdade é que não tenho ideia como , bom seguinde tenho uma servidor com placa de rede Realtek RTL8169 , o modulo ja vem na minha distribuição que é o Debian , até ai tudo OK estou efrentando problemas com a rede aqui é estou achando que pode ser o drive (modulo) da placa , eu baixei o drive dornecido pelo fabricando so que nao sei instalar ele , se alguem puder me ajuda agradeço . E caso de tudo certo como faço para verificar se foi subistiduido mesmo. Os arquivos contidos na pasta forneciodo pelo fabricate são :
A- Makefile
A - readme
D- src

-- Dentro do src temos
4 -rwxrw-rw- 1 nobody nogroup 2222 Ago 28 10:43 Makefile
4 -rwxrw-rw- 1 nobody nogroup 2486 Ago 28 10:43 Makefile_linux24x
4 -rw-rw-rw- 1 root root 67 Jan 16 22:30 modules.order
0 -rw-rw-rw- 1 root root 0 Jan 16 22:30 Module.symvers
36 -rwxrw-rw- 1 nobody nogroup 36143 Ago 28 10:43 r8169.h
328 -rw-rw-rw- 1 root root 334227 Jan 16 22:30 r8169.ko
4 -rw-rw-rw- 1 root root 349 Jan 16 22:30 .r8169.ko.cmd
4 -rw-rw-rw- 1 root root 3882 Jan 16 22:30 r8169.mod.c
44 -rw-rw-rw- 1 root root 43600 Jan 16 22:30 r8169.mod.o
32 -rw-rw-rw- 1 root root 30061 Jan 16 22:30 .r8169.mod.o.cmd
136 -rwxrw-rw- 1 nobody nogroup 137605 Ago 28 10:43 r8169_n.c
288 -rw-rw-rw- 1 root root 291636 Jan 16 22:30 r8169_n.o
56 -rw-rw-rw- 1 root root 55806 Jan 16 22:30 .r8169_n.o.cmd
288 -rw-rw-rw- 1 root root 291640 Jan 16 22:30 r8169.o
4 -rw-rw-rw- 1 root root 210 Jan 16 22:30 .r8169.o.cmd
4 drwxr-xr-x+ 2 root root 4096 Jan 16 22:30 .tmp_versions





  


2. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Mauro da fontoura
maurofontoura

(usa CentOS)

Enviado em 17/01/2015 - 08:50h


Ola

Digita

# lsmod
# cat /etc/network/interfaces

e posta a saida


3. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 17/01/2015 - 12:18h

E o que diz no Readme??? Geralmente tem as instruções de como instalar neste arquivo!



4. cat /etc/network/interfaces

Fabio
fabio_xsw

(usa Debian)

Enviado em 17/01/2015 - 12:37h


root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0



5. root@debian:~# lsmod

Fabio
fabio_xsw

(usa Debian)

Enviado em 17/01/2015 - 12:38h


root@debian:~# lsmod
Module Size Used by
btrfs 489167 0
crc32c 12576 1
libcrc32c 12394 1 btrfs
zlib_deflate 21318 1 btrfs
ufs 57656 0
qnx4 12992 0
hfsplus 70463 0
hfs 40744 0
minix 26995 0
ntfs 162381 0
vfat 17116 0
msdos 12829 0
fat 44497 2 msdos,vfat
jfs 134977 0
xfs 524041 0
reiserfs 168016 0
ext3 134152 0
jbd 47281 1 ext3
ext2 49826 0
efivars 17620 0
dm_mod 57386 0
fuse 52176 3
ipt_REDIRECT 12431 1
xt_tcpudp 12506 1
ipt_MASQUERADE 12530 1
xt_string 12459 0
xt_mac 12387 0
xt_multiport 12492 0
xt_limit 12484 0
xt_state 12455 0
iptable_mangle 12488 0
iptable_filter 12488 0
ip_queue 12639 0
nf_nat_ftp 12420 0
nf_conntrack_ftp 12533 1 nf_nat_ftp
iptable_nat 12800 1
ip_tables 17079 3 iptable_nat,iptable_filter,iptable_mangle
nf_nat 17924 4 iptable_nat,nf_nat_ftp,ipt_MASQUERADE,ipt_REDIRECT
nf_conntrack_ipv4 13726 3 nf_nat,iptable_nat
nf_defrag_ipv4 12443 1 nf_conntrack_ipv4
nf_conntrack 43121 7 nf_conntrack_ipv4,nf_nat,iptable_nat,nf_conntrack_ftp,nf_nat_ftp,xt_state,ipt_MASQUERADE
x_tables 18158 12 ip_tables,iptable_nat,iptable_filter,iptable_mangle,xt_state,xt_limit,xt_multiport,xt_mac,xt_string,ipt_MASQUERADE,xt_tcpudp,ipt_REDIRECT
nfsd 173901 2
nfs 265953 0
nfs_acl 12463 2 nfs,nfsd
auth_rpcgss 32143 2 nfs,nfsd
fscache 31978 1 nfs
lockd 61373 2 nfs,nfsd
sunrpc 148000 6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
loop 17810 0
snd_pcm 53461 0
snd_page_alloc 12867 1 snd_pcm
snd_timer 22356 1 snd_pcm
snd 42761 2 snd_timer,snd_pcm
soundcore 12921 1 snd
iTCO_wdt 16945 0
iTCO_vendor_support 12632 1 iTCO_wdt
psmouse 59609 0
i3000_edac 12500 0
i2c_i801 12670 0
evdev 17225 1
acpi_cpufreq 12807 0
mperf 12421 1 acpi_cpufreq
dcdbas 13080 0
i2c_core 19116 1 i2c_i801
edac_core 30066 3 i3000_edac
pcspkr 12515 0
serio_raw 12803 0
rng_core 12580 0
shpchp 26717 0
processor 27565 1 acpi_cpufreq
thermal_sys 17752 1 processor
button 12817 0
ext4 307029 2
crc16 12327 1 ext4
jbd2 56426 1 ext4
mbcache 12938 3 ext4,ext2,ext3
raid1 26218 3
md_mod 85719 4 raid1
sg 21476 0
sd_mod 35425 10
crc_t10dif 12332 1 sd_mod
ata_generic 12439 0
uhci_hcd 22337 0
ata_piix 25271 7
libata 125014 2 ata_piix,ata_generic
sundance 21943 0
scsi_mod 135081 3 libata,sd_mod,sg
ehci_hcd 39631 0
r8169 41830 0
mii 12595 2 r8169,sundance
usbcore 104555 3 ehci_hcd,uhci_hcd
usb_common 12338 1 usbcore



6. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Fabio
fabio_xsw

(usa Debian)

Enviado em 17/01/2015 - 12:40h

Tipo ela funciona mais gostaria de instalar os drivers do fabricante , pois tenho um problema aqui é acho que é o drive , mais agora nao vem ao caso , gostaria mesmo é de aprender a fazer isso e conferir se esta certo .



7. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 17/01/2015 - 16:49h

costapha escreveu:

E o que diz no Readme??? Geralmente tem as instruções de como instalar neste arquivo!


?




8. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Fabio
fabio_xsw

(usa Debian)

Enviado em 21/01/2015 - 17:41h

Seria isso , mais nao sei como corregar .

--

<Linux device driver for Realtek Ethernet controllers>

This is the Linux device driver released for RealTek RTL8169S/8110S, RTL8169SB/8110SB, and RTL8110SC.

<Requirements>

- kernel source tree (supported Linux kernel 2.6.x/2.4.20 and latter)
- compiler/binutils for kernel compilation

<Quick install with proper kernel settings>
Check whether the built-in driver, r8169.ko(or r8169.o for linux kernel 2.4.x), is installed.
# lsmod | grep r8169

If it is installed, please remove it.
# rmmod r8169
note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remove it again or reboot your computer.

Unpack the tarball :
# tar vjxf r8169-6.aaa.bb.tar.bz2

Change to the directory:
# cd r8169-6.aaa.bb

If you are running the target kernel, then you should be able to do :

# make clean modules (as root or with sudo)
# make install
# depmod -a
# modprobe r8169

You can check whether the driver is loaded by using following commands.

# lsmod | grep r8169
# ifconfig -a

If there is a device name, ethX, shown on the monitor, the linux
driver is loaded. Then, you can use the following command to activate
the ethX.

# ifconfig ethX up

, where X=0,1,2,...


<Set the network related information>
1. Set manually
a. Set the IP address of your machine.

# ifconfig ethX "the IP address of your machine"

b. Set the IP address of DNS.

Insert the following configuration in /etc/resolv.conf.

nameserver "the IP address of DNS"

c. Set the IP address of gateway.

# route add default gw "the IP address of gateway"

2. Set by doing configurations in /etc/sysconfig/network-scripts
/ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network
/ifcfg-ethX for SuSE. There are two examples to set network
configurations.

a. Fix IP address:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=ethernet
NETMASK=255.255.255.0
IPADDR=192.168.1.1
GATEWAY=192.168.1.254
BROADCAST=192.168.1.255

b. DHCP:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

<Change the MAC address>
There are two ways to modify the MAC address of the NIC.
1. Use ifconfig:

# ifconfig ethX hw ether YY:YY:YY:YY:YY:YY

, where X is the device number assigned by Linux kernel, and
YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.

2. Use ip:

# ip link set ethX address YY:YY:YY:YY:YY:YY

, where X is the device number assigned by Linux kernel, and
YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.

<Force Link Status>

1. Force the link status when insert the driver.

If the user is in the path ~/r8169, the link status can be forced
to one of the 5 modes as following command.

# insmod ./src/r8169.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION

, where
SPEED_MODE = 1000 for 1000Mbps
= 100 for 100Mbps
= 10 for 10Mbps
DUPLEX_MODE = 0 for half-duplex
= 1 for full-duplex
NWAY_OPTION = 0 for auto-negotiation off (true force)
= 1 for auto-negotiation on (nway force)
For example:

# insmod ./src/r8169.ko speed=100 duplex=0 autoneg=0

will force PHY to operate in 100Mpbs Half-duplex(nway force).

2. Force the link status by using ethtool.
a. Insert the driver first.
b. Make sure that ethtool exists in /sbin.
c. Force the link status as the following command.

# ethtool -s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION

, where
SPEED_MODE = 1000 for 1000Mbps
= 100 for 100Mbps
= 10 for 10Mbps
DUPLEX_MODE = half for half-duplex
= full for full-duplex
NWAY_OPTION = off for auto-negotiation off (true force)
= on for auto-negotiation on (nway force)

For example:

# ethtool -s eth0 speed 100 duplex full autoneg on

will force PHY to operate in 100Mpbs Full-duplex(nway force).

<Jumbo Frame>
Transmitting Jumbo Frames, whose packet size is bigger than 1500 bytes, please change mtu by the following command.

# ifconfig ethX mtu MTU

, where X=0,1,2,..., and MTU is configured by user. RTL8110S/SB/SC supports Jumbo Frame size (MTU) up to 7 kBytes.

For example, to configure jumbo frame as 7 kBytes, use the following command:

# ethtool eth0 mtu 7168

If there is another computer inatalled RTL8169S/SB/SC and its jumbo size is also configured to be 7 kBytes, the Linux can ping it by using following command.

# ping IP_ADDRESS -s 7126 -M do





9. Duvidas 100% Como instalar um drive de placa rede.

Fernando T. Da Silva
nandosilva

(usa Lubuntu)

Enviado em 21/01/2015 - 18:10h


Quando você descompacta o pacote do driver sempre tem um arquivo com instruções para compilação como readme ou install sempre leia eles primeiros, mas como você já tem o Makefile pronto, tenta executar ./make e depois make install.
Já em outros tipos é executado primeiro o ./configure para gerar o Makefile e algums poucos se usa o cmake como primeiro comando para começar a copilar.



10. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Fabio
fabio_xsw

(usa Debian)

Enviado em 21/01/2015 - 20:21h


Feito isso como verifico se esta com o novo drive , pois tenho em mão um problema muito estrano , que estou tentando isso para ver se resolve , acontece o seguinte , se eu colocar o linux para compartilha a internet via iptabless tipo com as linhas basicas somente para rotear ela fica intermitente , ela cai e volta , se eu coloco em um roteador fica normal , ja retirei o ipv6 do kernel e tambem ja tirei o bind para ipv6 , estou meio que sem alternativas por isso estou indo para o drive da placa , que nao se se tira alguma coisa aver tambem pois a rede nao cai alguem tem alguma dica pra isso tambem ?


11. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 21/01/2015 - 21:47h

fabio_xsw escreveu:


Feito isso como verifico se esta com o novo drive , pois tenho em mão um problema muito estrano , que estou tentando isso para ver se resolve , acontece o seguinte , se eu colocar o linux para compartilha a internet via iptabless tipo com as linhas basicas somente para rotear ela fica intermitente , ela cai e volta , se eu coloco em um roteador fica normal , ja retirei o ipv6 do kernel e tambem ja tirei o bind para ipv6 , estou meio que sem alternativas por isso estou indo para o drive da placa , que nao se se tira alguma coisa aver tambem pois a rede nao cai alguem tem alguma dica pra isso tambem ?


As instruções estão no README:

Unpack the tarball :
# tar vjxf r8169-6.aaa.bb.tar.bz2

Change to the directory:
# cd r8169-6.aaa.bb

If you are running the target kernel, then you should be able to do :

# make clean modules (as root or with sudo)
# make install
# depmod -a
# modprobe r8169

You can check whether the driver is loaded by using following commands.

# lsmod | grep r8169
# ifconfig -a




12. Re: Duvidas 100% Como instalar um drive de placa rede. [RESOLVIDO]

Fabio
fabio_xsw

(usa Debian)

Enviado em 22/01/2015 - 10:52h


Pessoal muito obrigado pela ajuda , amanha vou para o servidor para testar esse novo modulo , eu abri um novo topico se alguem tiver uma ajuda pra me oferecer no meu problema ficarei muito grato OBRIGADO PESSOAL