Mailing List Archive

net interface problem
Hi list!
I have a laptop running Gentoo Linux. It has two net interfaces: a
RJ-45 one (eth0, works fine) and a wireless one (doesn't work). The
problem is the system doesn't know about eth1. It doesn't exist.i
I've been googling around and i've found nothing useful.
The output of some commands in Gentoo are:

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:0D:C4:F8:F4
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING 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)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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)

and

# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

When i boot with knoppix the interface is recognized correctly,
the output of the same commands in the knoopix 3.2 prompt are: (note
that knoppix calls eth1 what gentoo call eth0)

root@ttyp0[dev]# iwconfig
lo no wireless extensions.

Warning: Driver for device eth0 has been compiled with version 14
of Wireless Extension, while this program is using version 15.
Some things may be broken...

eth0 IEEE 802.11-DS ESSID:"" Nickname:"HERMES I"
Mode:Managed Frequency:2.457GHz Access Point: 00:00:00:00:00:00
Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3
Retry limit:4 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

eth1 no wireless extensions

root@ttyp0[dev]# ifconfig eth0 up
root@ttyp0[dev]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:2D:BB:9F:6C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:12 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:4752 (4.6 KiB)
Interrupt:11 Base address:0x100

eth1 Link encap:Ethernet HWaddr 00:08:0D:C4:F8:F4
inet addr:192.168.0.88 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1647 (1.6 KiB) TX bytes:1900 (1.8 KiB)
Interrupt:11 Base address:0xcf40 Memory:cffff000-cffff038

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)

What is wrong?
I'm almost sure that the kernel is properly configured. The
modules loaded are the same knoppix loads. What should i do for the
wireless net interface to be recognized?

Thanks in advance.
Re: net interface problem [ In reply to ]
On Tuesday 07 September 2004 14:55 Salvador Blasco Llopis wrote:
> Hi list!
> I have a laptop running Gentoo Linux. It has two net interfaces: a
> RJ-45 one (eth0, works fine) and a wireless one (doesn't work). The
> problem is the system doesn't know about eth1. It doesn't exist.
>
> [...]
>
> What is wrong?
> I'm almost sure that the kernel is properly configured. The
> modules loaded are the same knoppix loads. What should i do for the
> wireless net interface to be recognized?
>
> Thanks in advance.

Hi Salvador,

Maybe you're just missing /etc/init.d/net.eth1

Then you have to create it by symlinking to net.eth0,
add a line in /etc/conf.d/net containing iface_eth1 (like iface_eth0)
and do a '/etc/init.d/net.eth1 start'.
This should bring up the wireless interface, or at least some useful
output in your messages.

On success, you can run a 'rc-update add net.eth1 default' to bring it
up the next time automatically :-)

HTH,
Jan

--
gentoo-user@gentoo.org mailing list
Re: net interface problem [ In reply to ]
On Tue, 7 Sep 2004, Salvador Blasco Llopis wrote:

> I have a laptop running Gentoo Linux. It has two net interfaces: a
> RJ-45 one (eth0, works fine) and a wireless one (doesn't work). The
> problem is the system doesn't know about eth1. It doesn't exist.i
> I've been googling around and i've found nothing useful.

What does "lspci" show?


--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list
Re: net interface problem [ In reply to ]
On 13:44 Tue 07 Sep , Jan-Olaf Heise wrote:
> Hi Salvador,
>
> Maybe you're just missing /etc/init.d/net.eth1
>
> Then you have to create it by symlinking to net.eth0,
> add a line in /etc/conf.d/net containing iface_eth1 (like iface_eth0)
> and do a '/etc/init.d/net.eth1 start'.

# ln -s /etc/init.d/net.eth0 /etc/init.d/eth1
# /etc/init.d/net.eth1 start
* Bringing eth1 up via DHCP... [!!]
# cat /etc/conf.d/net:

iface_eth0="192.168.0.5 broadcast 192.168.0.255 netmask 255.255.255.0"
iface_eth1="dhcp"

gateway="eth0/192.168.0.1"

I tried this before.
What i want to do is execute the following script to connect the
wireless lan in my college.

#!/bin/sh
poff -a
stty -echo
read PASS

stty echo
iwconfig eth1 essid "uvalwl" key s:uvalp
pump -i eth1 &&
sleep 5 &&
pptp 10.13.1.1 user $USER password $PASS debug noauth defaultroute userpeerdns &&
sleep 10 &&
if ! grep -q 'nameserver 147.156.20.2' /etc/resolv.conf
then
echo nameserver 147.156.20.2 >> /etc/resolv.conf
fi
route del default gw 10.13.1.1
route add default gw 147.156.20.2

The output is

Error for wireless request "Set ESSID" (8B1A) :
SET failed on device eth1 ; No such device.
Operation failed.
SIOCDELRT: No such process
SIOCADDRT: The net is unreachable

As you can see it fails because it doesn't know what eth1 is. How
cat tell Gentoo that eth1 is the wireless iface?
Re: net interface problem [ In reply to ]
On 09:29 Tue 07 Sep , Ajai Khattri wrote:
> On Tue, 7 Sep 2004, Salvador Blasco Llopis wrote:
>
> > I have a laptop running Gentoo Linux. It has two net interfaces: a
> > RJ-45 one (eth0, works fine) and a wireless one (doesn't work). The
> > problem is the system doesn't know about eth1. It doesn't exist.i
> > I've been googling around and i've found nothing useful.
>
> What does "lspci" show?
>


0000:00:00.0 Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 02)
0000:00:00.1 System peripheral: Intel Corp. 855GM/GME GMCH Memory I/O Control Registers (rev 02)
0000:00:00.3 System peripheral: Intel Corp. 855GM/GME GMCH Configuration Process Registers (rev 02)
0000:00:02.0 VGA compatible controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02)
0000:00:02.1 Display controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller (rev 03)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 83)
0000:00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 03)
0000:00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 03)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
0000:00:1f.6 Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
0000:01:05.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 01)
0000:01:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VE (MOB) Ethernet Controller (rev 83)
0000:01:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC95 PCI to Cardbus Bridge with ZV Support (rev 33)
Re: net interface problem [ In reply to ]
On Tue, 7 Sep 2004, Salvador Blasco Llopis wrote:

> Hi list!
> I have a laptop running Gentoo Linux. It has two net interfaces: a
> RJ-45 one (eth0, works fine) and a wireless one (doesn't work). The
> problem is the system doesn't know about eth1. It doesn't exist.i
> I've been googling around and i've found nothing useful.
> The output of some commands in Gentoo are:
>
> # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:08:0D:C4:F8:F4
> inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING 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)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 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)
>
> and
>
> # iwconfig
> lo no wireless extensions.
>
> eth0 no wireless extensions.
>
> When i boot with knoppix the interface is recognized correctly,
> the output of the same commands in the knoopix 3.2 prompt are: (note
> that knoppix calls eth1 what gentoo call eth0)

That sounds right - built-in Ethernet will probably be eth0 while the
wireless card would be eth1. But maybe you dont have support for the Intel
Ethernet controller in your kernel hence it doesn't come up as eth0.

> root@ttyp0[dev]# iwconfig
> lo no wireless extensions.
>
> Warning: Driver for device eth0 has been compiled with version 14
> of Wireless Extension, while this program is using version 15.
> Some things may be broken...
>
> eth0 IEEE 802.11-DS ESSID:"" Nickname:"HERMES I"
> Mode:Managed Frequency:2.457GHz Access Point: 00:00:00:00:00:00
> Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3
> Retry limit:4 RTS thr:off Fragment thr:off
> Encryption key:off
> Power Management:off
>
> eth1 no wireless extensions

Im assuming you have the wireless drivers either compiled in or loading as
modules? If you are using modules, do you load them at boot time? Do you
have PCMCIA enabled at boot?


--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list
Re: net interface problem [ In reply to ]
On Tue, 7 Sep 2004, Salvador Blasco Llopis wrote:

> On 13:31 Tue 07 Sep , Ajai Khattri wrote:
> >
> > > root@ttyp0[dev]# iwconfig
> > > lo no wireless extensions.
> > >
> > > Warning: Driver for device eth0 has been compiled with version 14
> > > of Wireless Extension, while this program is using version 15.
> > > Some things may be broken...
> > >
> > > eth0 IEEE 802.11-DS ESSID:"" Nickname:"HERMES I"
> > > Mode:Managed Frequency:2.457GHz Access Point: 00:00:00:00:00:00
> > > Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3
> > > Retry limit:4 RTS thr:off Fragment thr:off
> > > Encryption key:off
> > > Power Management:off
> > >
> > > eth1 no wireless extensions
> >
> > Im assuming you have the wireless drivers either compiled in or loading as
> > modules? If you are using modules, do you load them at boot time? Do you
> > have PCMCIA enabled at boot?
> >
> My wireless is not PCMCIA, but PCMCIA is enabled at boot anyway.
> The following modules are autoloaded:
> hermes, orinoco, orinoco_cs
> So the modules corresponding to my wireless hw are loaded but the
> Gentoo system doesn't know about eth1 and Knoppix does.

I am using an Orinocco Gold wireless card with my laptop so I know it
works. Did you emerge wireless-tools ??


--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list
Re: net interface problem [ In reply to ]
On Tue, 7 Sep 2004, Salvador Blasco Llopis wrote:

> PCMCIA found, starting cardmgr
> cardmgr[56]: starting, version is 3.2.2
> cardmgr[56]: socket 0: Intersil PRISM2 11Mbps Wireless Adapter
> cardmgr[56]: executing: 'modprobe hermes'
> cardmgr[56]: executing: 'modprobe orinoco'
> cardmgr[56]: executing: 'modprobe orinoco_cs'
> cardmgr[56]: executing: './network start eth0'
> cardmgr[56]: + Sample private network setup
> cardmgr[56]: + /sbin/ifconfig eth0 up
> cardmgr[56]: + /sbin/pump -i eth0 > /dev/null
>
> In my gentoo PCMCIA is enabled at default runlevel. But it does
> not output this.

Do you see cardmgr running at all in the output from "dmesg|more" ?

If not, then maybe you dont have the PC Card controller driver in your
kernel?


--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list
Re: net interface problem [ In reply to ]
On 13:31 Tue 07 Sep , Ajai Khattri wrote:
>
> > root@ttyp0[dev]# iwconfig
> > lo no wireless extensions.
> >
> > Warning: Driver for device eth0 has been compiled with version 14
> > of Wireless Extension, while this program is using version 15.
> > Some things may be broken...
> >
> > eth0 IEEE 802.11-DS ESSID:"" Nickname:"HERMES I"
> > Mode:Managed Frequency:2.457GHz Access Point: 00:00:00:00:00:00
> > Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3
> > Retry limit:4 RTS thr:off Fragment thr:off
> > Encryption key:off
> > Power Management:off
> >
> > eth1 no wireless extensions
>
> Im assuming you have the wireless drivers either compiled in or loading as
> modules? If you are using modules, do you load them at boot time? Do you
> have PCMCIA enabled at boot?
>
My wireless is not PCMCIA, but PCMCIA is enabled at boot anyway.
The following modules are autoloaded:
hermes, orinoco, orinoco_cs
So the modules corresponding to my wireless hw are loaded but the
Gentoo system doesn't know about eth1 and Knoppix does.

Any idea?
Re: net interface problem [ In reply to ]
On 15:04 Tue 07 Sep , Ajai Khattri wrote:
> On Tue, 7 Sep 2004, Salvador Blasco Llopis wrote:
>
> > On 13:31 Tue 07 Sep , Ajai Khattri wrote:
> > >
> > > > root@ttyp0[dev]# iwconfig
> > > > lo no wireless extensions.
> > > >
> > > > Warning: Driver for device eth0 has been compiled with version 14
> > > > of Wireless Extension, while this program is using version 15.
> > > > Some things may be broken...
> > > >
> > > > eth0 IEEE 802.11-DS ESSID:"" Nickname:"HERMES I"
> > > > Mode:Managed Frequency:2.457GHz Access Point: 00:00:00:00:00:00
> > > > Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3
> > > > Retry limit:4 RTS thr:off Fragment thr:off
> > > > Encryption key:off
> > > > Power Management:off
> > > >
> > > > eth1 no wireless extensions
> > >
> > My wireless is not PCMCIA, but PCMCIA is enabled at boot anyway.

I was wrong. Sorry. It is PCMCIA. Knoppix outputs this at boot:

PCMCIA found, starting cardmgr
cardmgr[56]: starting, version is 3.2.2
cardmgr[56]: socket 0: Intersil PRISM2 11Mbps Wireless Adapter
cardmgr[56]: executing: 'modprobe hermes'
cardmgr[56]: executing: 'modprobe orinoco'
cardmgr[56]: executing: 'modprobe orinoco_cs'
cardmgr[56]: executing: './network start eth0'
cardmgr[56]: + Sample private network setup
cardmgr[56]: + /sbin/ifconfig eth0 up
cardmgr[56]: + /sbin/pump -i eth0 > /dev/null

In my gentoo PCMCIA is enabled at default runlevel. But it does
not output this.

>
> I am using an Orinocco Gold wireless card with my laptop so I know it
> works. Did you emerge wireless-tools ??
>
yes
Re: net interface problem [ In reply to ]
Ajai Khattri wrote:

>>In my gentoo PCMCIA is enabled at default runlevel. But it does
>>not output this.
>>
>>
Try emerging pcmcia-cs:

emerge pcmcia-cs

I've had this exact trouble in the past and thats how I fixed it.

Regards

Dave

--
gentoo-user@gentoo.org mailing list
Re: net interface problem [ In reply to ]
On 16:35 Tue 07 Sep , Ajai Khattri wrote:
> On Tue, 7 Sep 2004, Salvador Blasco Llopis wrote:
>
> > PCMCIA found, starting cardmgr
> > cardmgr[56]: starting, version is 3.2.2
> > cardmgr[56]: socket 0: Intersil PRISM2 11Mbps Wireless Adapter
> > cardmgr[56]: executing: 'modprobe hermes'
> > cardmgr[56]: executing: 'modprobe orinoco'
> > cardmgr[56]: executing: 'modprobe orinoco_cs'
> > cardmgr[56]: executing: './network start eth0'
> > cardmgr[56]: + Sample private network setup
> > cardmgr[56]: + /sbin/ifconfig eth0 up
> > cardmgr[56]: + /sbin/pump -i eth0 > /dev/null
> >
> > In my gentoo PCMCIA is enabled at default runlevel. But it does
> > not output this.
>
> Do you see cardmgr running at all in the output from "dmesg|more" ?

# dmesg | grep 'cardmgr'
outputs nothing

When booting gentoo outputs this:
* PCMCIA support detected
* Starting PCMCIA...
cardmgr[5668]: watching 1 socket

As i previously said these modules are loaded: hermes, orinoco and
orinoco_cs. But if i remove them from the modules.autoload.d the
cardmgr output at boot is exactly the same as the previous paragraph:
it does not load the modules as knoppix does.

I have pcmcia_cs emerged.

> If not, then maybe you dont have the PC Card controller driver in your
> kernel?

Well, i've looked up in the .config kernel file and i've found
this: "CONFIG_NET_PCMCIA is not set" May it be the problem?
I thought that by saying yes to "Wireless LAN" was enough.
When i say yes to "PCMCIA network device support" a list of cards
appear none of them is the card i have (Agerc Lucent MCP13A-20/R
according to my comp specifications). Saying yes to PCMCIA network
device support" is enough?
I'll try it. Well, i'll also run knoppix again to see if it loads
some of these modules.
I'll write you back when i've done it.
Cheers.