Re: [gentoo-user] Replacing eth0 with wlan0
On 3/7/07, Abraham Gyorgy [EMAIL PROTECTED] wrote: Hello again :) I've switched my networking from wired eth0 to wlan0. I'm using ndiswrapper with Win32 driver and an USB WiFi adapter. Everything is fine, but... When I set up my Gentoo installation, I've added net.eth0 to default runlevel (it provices the networking in the init system). My ethernet driver (forcedeth nvidia nforce2 chip) is compiled in, using DHCP. All I had to do is to add net.eth0. Now when my system boots it is waiting 1-2 mins for DHCP, then goes forward, but (in the init system) there is no networking, so Samba and other stuff doesnt work. I want to replace this thing, 1) ndiswrapper module should go to /etc/modules.autoload folder 2) then wlan0 device appears, I want to do iwlist wlan0 scan, then DHCP for wlan0 3) all this stuff should go nice to init system, eth0 should be removed, so wlan0 should provide the init system with net. Now I wait for eth0 dhcp'ing, then modprobe, iwlist, and dhcpcd by hand, but it is time consuming and not so nice. What to do exactly guys? Thanks a lot! -- gentoo-user@gentoo.org mailing list You could tie the net dependent services to the net.lo line, and afterwords bring up either net.eth0 or net.wlan0 manually (Remove them from the rc default). It's not pretty but it could work. The other consideration is to build your profile primairily for which net connection you intend to use the most (Wired/Wireless)
Re: [gentoo-user] Replacing eth0 with wlan0
Steve L. írta: On 3/7/07, *Abraham Gyorgy* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello again :) I've switched my networking from wired eth0 to wlan0. I'm using ndiswrapper with Win32 driver and an USB WiFi adapter. Everything is fine, but... When I set up my Gentoo installation, I've added net.eth0 to default runlevel (it provices the networking in the init system). My ethernet driver (forcedeth nvidia nforce2 chip) is compiled in, using DHCP. All I had to do is to add net.eth0. Now when my system boots it is waiting 1-2 mins for DHCP, then goes forward, but (in the init system) there is no networking, so Samba and other stuff doesnt work. I want to replace this thing, 1) ndiswrapper module should go to /etc/modules.autoload folder 2) then wlan0 device appears, I want to do iwlist wlan0 scan, then DHCP for wlan0 3) all this stuff should go nice to init system, eth0 should be removed, so wlan0 should provide the init system with net. Now I wait for eth0 dhcp'ing, then modprobe, iwlist, and dhcpcd by hand, but it is time consuming and not so nice. What to do exactly guys? Thanks a lot! -- gentoo-user@gentoo.org mailto:gentoo-user@gentoo.org mailing list You could tie the net dependent services to the net.lo line, and afterwords bring up either net.eth0 or net.wlan0 manually (Remove them from the rc default). It's not pretty but it could work. The other consideration is to build your profile primairily for which net connection you intend to use the most (Wired/Wireless) Thanks for answers guys, I'll return, hope I'll succeed. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Replacing eth0 with wlan0
3) all this stuff should go nice to init system, eth0 should be removed, so wlan0 should provide the init system with net. I think /etc/init.d/net.eth0 should only a symlink to /etc/init.d/net.lo. You can check that by running # ls -l /etc/init.d/net.* On my system it returns: lrwxrwxrwx 1 root root 6 15. Feb 20:35 /etc/init.d/net.eth0 - net.lo* -rwxr-xr-x 1 root root 30522 15. Feb 20:35 /etc/init.d/net.lo* To get the net.wlan0 service, just create a new link: # cd /etc/init.d # ln -sf net.eth0 net.wlan0 if you want to, you can also savely delete net.eth0 1) ndiswrapper module should go to /etc/modules.autoload folder I don't know much about the module (and ndiswrapper in general) but maybe running # modprobe -l and putting the ndiswrapper module (without extension or path) into /etc/modules.autoload.d/kernel-2.6 could do it. -- gentoo-user@gentoo.org mailing list
[gentoo-user] Replacing eth0 with wlan0
Hello again :) I've switched my networking from wired eth0 to wlan0. I'm using ndiswrapper with Win32 driver and an USB WiFi adapter. Everything is fine, but... When I set up my Gentoo installation, I've added net.eth0 to default runlevel (it provices the networking in the init system). My ethernet driver (forcedeth nvidia nforce2 chip) is compiled in, using DHCP. All I had to do is to add net.eth0. Now when my system boots it is waiting 1-2 mins for DHCP, then goes forward, but (in the init system) there is no networking, so Samba and other stuff doesnt work. I want to replace this thing, 1) ndiswrapper module should go to /etc/modules.autoload folder 2) then wlan0 device appears, I want to do iwlist wlan0 scan, then DHCP for wlan0 3) all this stuff should go nice to init system, eth0 should be removed, so wlan0 should provide the init system with net. Now I wait for eth0 dhcp'ing, then modprobe, iwlist, and dhcpcd by hand, but it is time consuming and not so nice. What to do exactly guys? Thanks a lot! -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Replacing 'eth0' with 'wlan0'
Abraham, I think what you may want to do is adjust the DHCP timeout for eth0. For ethernet devices, it's pretty good to assume that if after 10 seconds it doesn't receive DHCP it probably wont. So on my laptop, in /etc/conf.d/net I have: dhcpcd_eth0=-t 10 Which will timeout eth0 after 10 seconds, thus making the system boot time faster. Now what you can do to solve the wlan0 problem is: 1. Add ndiswrapper to /etc/modules.autoload.d/kernel-2.# (whatever # your kernel is, either 2.4 or 2.6) 2. cd /etc/init.d/ 3. ln -s net.eth0 net.wlan0 4. Edit /etc/conf.d/net to do what you want for the wlan0 interface. Now, lets assume for a minute that neither interface is able to get valid DHCP information. I've solved this problem on mine by enabling APIPA (automatic private IP address) should DHCP fail. In /etc/conf.d/net you can do that as well. For my eth0 device on my laptop I have: config_eth0=( dhcp ) dhcpcd_eth0=-t 10 fallback_eth0=( apipa ) Some examples you may want to follow are in the Modular Networking docs here: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printablepart=4chap=3 Hope this helps. - Brian On Wed, March 7, 2007 1:25 pm, Abraham Gyorgy wrote: Hello again :) I've switched my networking from wired eth0 to wlan0. I'm using ndiswrapper with Win32 driver and an USB WiFi adapter. Everything is fine, but... When I set up my Gentoo installation, I've added net.eth0 to default runlevel (it provices the networking in the init system). My ethernet driver (forcedeth nvidia nforce2 chip) is compiled in, using DHCP. All I had to do is to add net.eth0. Now when my system boots it is waiting 1-2 mins for DHCP, then goes forward, but (in the init system) there is no networking, so Samba and other stuff doesnt work. I want to replace this thing, 1) ndiswrapper module should go to /etc/modules.autoload folder 2) then wlan0 device appears, I want to do iwlist wlan0 scan, then DHCP for wlan0 3) all this stuff should go nice to init system, eth0 should be removed, so wlan0 should provide the init system with net. Now I wait for eth0 dhcp'ing, then modprobe, iwlist, and dhcpcd by hand, but it is time consuming and not so nice. What to do exactly guys? Thanks a lot! -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Replacing 'eth0' with 'wlan0'
On Thu, 8 Mar 2007, Brian Johnson wrote: Abraham, I think what you may want to do is adjust the DHCP timeout for eth0. For ethernet devices, it's pretty good to assume that if after 10 seconds it doesn't receive DHCP it probably wont. So on my laptop, in /etc/conf.d/net I have: dhcpcd_eth0=-t 10 Which will timeout eth0 after 10 seconds, thus making the system boot time faster. Or, install sys-apps/ifplugd and have it taken care of automatically. -- Reverend Paul Colquhoun, ULC.http://andor.dropbear.id.au/~paulcol Asking for technical help in newsgroups? Read this first: http://catb.org/~esr/faqs/smart-questions.html#intro -- gentoo-user@gentoo.org mailing list