Results 1 to 7 of 7
hi all
i have 2 NIC in computer (one on board and one pci) and both works ok. I added one more pci NIC
ironman:/home/duben# ifconfig -a
eth0 Link encap:Ethernet ...
- 12-11-2006 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 7
pci NIC doesnt work
hi all
i have 2 NIC in computer (one on board and one pci) and both works ok. I added one more pci NIC
ironman:/home/duben# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:11:09:06:30:AA
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:9ff:fe06:30aa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7029 errors:0 dropped:0 overruns:0 frame:0
TX packets:5392 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4018236 (3.8 MiB) TX bytes:1118653 (1.0 MiB)
Interrupt:169 Base address:0xb800
eth1 Link encap:Ethernet HWaddr 00:E0:4C:02:89:4E
inet addr:192.168.5.50 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe02:894e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2232 errors:0 dropped:0 overruns:0 frame:0
TX packets:155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:193403 (188.8 KiB) TX bytes:36102 (35.2 KiB)
Interrupt:193 Base address:0xd400
eth2_rena Link encap:Ethernet HWaddr 00:E0:4C:77:13:91
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:201 Base address:0xd000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5944 (5.8 KiB) TX bytes:5944 (5.8 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
but i dont know what eth2_rena is and i can't configure it
ironman:/home/duben# ifconfig eth2_rena
eth2_rena: error fetching interface information: Device not found
ironman:/home/duben# ifconfig eth2
eth2: error fetching interface information: Device not found
could anyone help me?
- 12-11-2006 #2Linux User
- Join Date
- Feb 2006
- Posts
- 484
check the dmesg output for device indetifier
and post here your /etc/network/interfaces file
- 12-11-2006 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 7
ironman:/etc# 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 static
address 192.168.1.103
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.3
dns-search black.sabbath
#up route add default gw 192.168.1.1 netmask 255.255.255.0 eth0
up iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
#The Secondary network interface
allow-hotplug eth1
iface eth1 inet static
address 192.168.5.50
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
up route add -net 192.168.5.0 netmask 255.255.255.0 eth1
###############
ironman:/etc# dmesg | grep -i eth
eth0: VIA Rhine II at 0x1b800, 00:11:09:06:30:aa, IRQ 169.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
8139too Fast Ethernet driver 0.9.27
eth1: RealTek RTL8139 at 0xd400, 00:e0:4c:02:89:4e, IRQ 193
eth1: Identified 8139 chip type 'RTL-8100B/8139D'
eth2: RealTek RTL8139 at 0xd000, 00:e0:4c:77:13:91, IRQ 201
eth2: Identified 8139 chip type 'RTL-8100B/8139D'
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: no IPv6 routers present
eth0: no IPv6 routers present
- 12-11-2006 #4Just Joined!
- Join Date
- Dec 2006
- Posts
- 7
and maybe this can help
ironman:/home/duben# lspci | grep -v USB
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge (rev 80)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
- 12-12-2006 #5Linux User
- Join Date
- Feb 2006
- Posts
- 484
you must declare the interface informations in the interface file or configure it with ifconfig , if you choose ifconfig you need add more parameter.
like:
ifconfig eth2 up ip_adrress netmask netmask_address
man ifconfig
- 12-12-2006 #6Just Joined!
- Join Date
- Dec 2006
- Posts
- 7
didn't help
ironman:/etc/init.d# ifconfig eth2 up 192.168.6.60 netmask 255.255.255.0
eth2: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth2: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
ironman:/etc/init.d# ifconfig eth2_rena up 192.168.6.60 netmask 255.255.255.0
eth2_rena: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth2_rena: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
ironman:/etc/init.d#
- 12-12-2006 #7Just Joined!
- Join Date
- Dec 2006
- Posts
- 7
ok here is solution :
ironman:/home/duben# ip link show
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:11:09:06:30:aa brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:e0:4c:02:89:4e brd ff:ff:ff:ff:ff:ff
4: eth2_rename: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:e0:4c:77:13:91 brd ff:ff:ff:ff:ff:ff
5: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
so if i want change settings for this ethernet card i have to use whole name eth2_rename


Reply With Quote
