[SOLVED] Learned my lesson, I am re-installing Slack, 2 questions please
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What about the Ethernet (wired) static IP setup? Did it work?
A sample static IP configuration;
Code:
~#ifconfig -a #get recognized devices
~#ifconfig eth0 192.168.0.10 #set to a available IP
~#route add default gw 192.168.0.1 #set to your gateway
~#route -n #show the route table
~#ifconfig eth0 up #should be up already
~#ping 192.168.0.1 #ping your gateway
~#ping 208.69.32.130 #google.com IP
~#ping google.com #test DNS, if fail then
#check /etc/resolv.conf
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers. If the static IP works for Ethernet then move to setup the wireless network device. If that doesn't work then reboot or restart the inet.
The wired connection gives me the same output, it doesn't connect either. I don't know why this will not work with Slackware (and now Puppy as well) when it has worked with Windows and others distros.
I don't believe this one can be fixed.
Bob
EDIT: Your instructions for setting up the manual WIRED configuration WORKED! I was able to ping the other machines and the router, but could not get a net connection (DNS). The /etc/resolv.conf was empty so I copied the information from a working machine. Still could not reach the net. BUT, at least I know the router works, It is something in DHCP and wpa_supplicant, I am convinced.
Last edited by BobNutfield; 04-18-2010 at 11:14 AM.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
cat /etc/rc.d/rc.inet1.conf
Quote:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY=""
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="bob-laptop1"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
WLAN_WPACONF[1]="/etc/wpa_supplicant.conf"
## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name nstead of
# the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR[4]="" # Request a specific IP address from the DHCP
# server
#WLAN_ESSID[4]=DARKSTAR # Here, you can override _any_ parameter
# defined in rc.wireless.conf, by prepending
# 'WLAN_' to the parameter's name. Useful for
# those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (separated with the pipe (|)
# character, see the example).
EDIT: Your instructions for setting up the manual WIRED configuration WORKED! I was able to ping the other machines and the router, but could not get a net connection (DNS). The /etc/resolv.conf was empty so I copied the information from a working machine. Still could not reach the net. BUT, at least I know the router works, It is something in DHCP and wpa_supplicant, I am convinced
Can you ping the ip that is in /etc/resolv.conf? If not then the default gateway is probably not setup. run: netstat -rn. You should see a line like:
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Which means that all ip address that don't match any other route get sent to 192.168.1.1 (this should be the ip of your router). If you don't see a line like this then you don't have a default gatweway and that's why you can't reach your ISp's dns servers.
I also had a problem with DHCP not playing nice with my router.
Run 'dhclient' from a prompt and see if you get an IP address.
I have tried that as well. It simply times out. To tell you the truth, I am losing the will to go on with this. The purpose of the whole things was to install a stable system for my to use Linux. She was not willing to learn it in the past, but said if I could set this laptop up, she would give it a try. That has been blown out of the water. I don't think I will be able to convince her anytime soon that Linux is "easy" now.
I also had a problem with DHCP not playing nice with my router.
Run 'dhclient' from a prompt and see if you get an IP address.
keng, I have been going crazy with this for a week now. I tried dhclient at least a dozen times before. Just for the heck of it I tried it again just now and it WORKED!!! I got an IP address for this machine for the first time.
I will just have to see if it is a freak success and won't withstand a reboot, but it has worked for the first time, so that is proof that it will work.
Thank you very much for taking the time to post. And if this fixes it, thank you to each and every one who posted trying to help. I have learned a lot from this and I hope I can share that with someone else who may have the same issue.
For anyone else dealing with this issue regarding dhcpcd and the "option 43" error, there is additional very good information in this thread:
Just disconnected and reconnected using dhclient. Worked for the second time, so I am marking this thread SOLVED. I really am going to endeavor to find out why dhcpcd would not work when it does with one other laptop running Slack current. But for now I am thrilled to see the end of this one.
The wired connection gives me the same output, it doesn't connect either. I don't know why this will not work with Slackware (and now Puppy as well) when it has worked with Windows and others distros.
I don't believe this one can be fixed.
Bob
EDIT: Your instructions for setting up the manual WIRED configuration WORKED! I was able to ping the other machines and the router, but could not get a net connection (DNS). The /etc/resolv.conf was empty so I copied the information from a working machine. Still could not reach the net. BUT, at least I know the router works, It is something in DHCP and wpa_supplicant, I am convinced.
When you set this did you place the nameservers from your ISP in '/etc/resolv.conf'?
You will set the DNS up. I sometimes test with a third level DNS;
Yes, thank you onebuck. I followed your directions and the results are as you described. It appears as the dhcpcd was the cultprit after all. I am still going to see if I can figure why dhclient works and dhcpcd doesn't
Hi,
I would be sure to disable ipv6 as shown. Once you confirm the wired Ethernet works statically you can then proceed to setup the wireless network device. I would setup the wireless device in the same as the Ethernet;
I would setup a static IP first, do as root from cli;
Code:
~#ifconfig -a #get recognized devices
~#ifconfig wlan0 192.168.0.10 #set to a available IP
~#route add default gw 192.168.0.1 #set to your gateway
~#route -n #show the route table
~#ifconfig wlan0 up #should be up already
~#ping 192.168.0.1 #ping your gateway
~#ping 208.69.32.130 #google.com IP
~#ping google.com #test DNS, if fail then
#check /etc/resolv.conf
Don't forget the '/etc/resolv.conf' setup. Once you confirm that the static is working then you can either setup via the '/etc/rc.d/rc.inet1.conf' or use wicd. I sometimes just use a script when I want to change;
Code:
wlan.sh
#!/bin/bash
#
#10-26-09 13:30
#setup the wlan0 device
#
/sbin/ifconfig wlan0 192.168.1.18 #set to your IP
/sbin/route add default gw 192.168.1.1 #your gateway
/sbin/iwconfig wlan0 essid "your essid"
/sbin/iwconfig wlan0 'key put your key here'
/sbin/iwconfig wlan0 ap 00:0F:66:E1:67:07 #this would be from 'iwlist wlan0 scan'
Once you have the static working then proceed to setup encryption.
BTW, I would be changing my key if the post you posted above is the current key. You don't need to post keys for us to aid in diagnosis.
TW, I would be changing my key if the post you posted above is the current key. You don't need to post keys for us to aid in diagnosis.
Thanks, onebuck. That was not my actual key. It is stored in wpa_supplicant, which I did not post. I tried your method and it does infact get me connected with an IP address. I still could not get online even though I had correctly configured /etc/resolv.conf. However, if I disconnect with wicd and receconnect with wicd, I am assigned the same IP address, and I am online.
I will continue to investigate these issues, but for now I can connect and that was the biggest issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.