Sponsored Content
Special Forums IP Networking Unable to connect to internet on slackware 14.1 (hathway connection) Post 302897886 by pinakbheed on Wednesday 16th of April 2014 03:05:42 PM
Old 04-16-2014
But, wouldn't that mean I'll have to keep my desktop on to have internet on Laptop?

I'm posting more details which might help you. Here are some commands which i ran and their results

Code:
bash-4.2# /etc/rc.d/rc.inet1     
Polling for DHCP server on interface eth0:
dhcpcd[1594]: version 6.0.5 starting
dhcpcd[1594]: eth0: soliciting an IPv6 router
dhcpcd[1594]: eth0: soliciting a DHCP lease
dhcpcd[1594]: timed out
dhcpcd[1594]: allowing 8 seconds for IPv4LL timeout
dhcpcd[1594]: eth0: probing for an IPv4LL address
dhcpcd[1594]: eth0: no IPv6 Routers available
dhcpcd[1594]: eth0: using IPv4LL address 169.254.65.79
dhcpcd[1594]: eth0: adding host route to 169.254.65.79 via 127.0.0.1
dhcpcd[1594]: eth0: adding route to 169.254.0.0/16
dhcpcd[1594]: forked to background, child pid 1635


bash-4.2# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.65.79  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::21b:38ff:fe09:7bc8  prefixlen 64  scopeid 0x20<link>
        ether 00:24:1d:f2:23:9e  txqueuelen 1000  (Ethernet)
        RX packets 94  bytes 25512 (24.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 66  bytes 9402 (9.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 216  bytes 15804 (15.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 216  bytes 15804 (15.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


bash-4.2# lspci | grep Ethernet
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)


bash-4.2# dmesg | grep -i eth0
[    7.574621] 8139too 0000:05:01.0 eth0: RealTek RTL8139 at 0x00012000, 00:1b:38:09:7b:c8, IRQ 21
[  120.374580] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[  229.976611] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[  271.207805] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[  311.115483] 8139too 0000:05:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1

Please note here that I have also tried using network manager (added in slackware 14.1) without success. The commands i ran for networkmanager are:

Code:
ifconfig eht0 down hw ether 00:24:1D:F2:23:9E
ifconfig eht0 up
/etc/rc.d/rc.networkmanager start

Also, I tried using wicd with similar issue. And, I could not find a way to clone MAC on wicd GUI.

What i think is that if Hathway had not restricted the connection to one pc (i.e., by storing MAC address and giving connection to that PC only), slackware would connect without any problems. But because I have to change my laptop's MAC address to match my other computer's, maybe slackware isn't reading it correctly (i.e., it's trying to connect by default MAC), whereas Puppy Linux did.

What do you think?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cannot connect to the Internet

I running HPUX 11.0, Netscape gives me an error "Unable to locate Server" when using a www.something.com address. If I use an IP address I get past the router and onto the Internet. My workstation can get to the Router @ 192.168.0.1 and also it's local APACHE server. I have DHCP enabled... (8 Replies)
Discussion started by: johnalt
8 Replies

2. Slackware

setting up internet on slackware

I tried unsuccessfully to set up the internet on slackware . I ran "netconfig" and follow all the steps like to enter ip address dns server subnet mask and default gateway . I saved the configuration and reboot the computer with no results . When im doing this under my pc works fine but first... (4 Replies)
Discussion started by: exhumation
4 Replies

3. Linux

how to connect internet????

HI, Am using GPRS ( MOB # 3230 ) internet connection in windows Hw to use internet r connect in linux.. ( Red Hat Linux Ver.10 ) Please help me.. Thanks in adv.. (1 Reply)
Discussion started by: bharath raja
1 Replies

4. UNIX for Advanced & Expert Users

Unable to connect to INTERNET using BSNL Broad band connection on Solaris-x86

Hi, Iam using BSNL broad band connection and i have installed two OS Xp & Sun solaris -x86 on my machine.Iam able to use INTERNET on windows Xp but not able to do it on solaris x86. I have tried using DHCP concept as well as sys-unconfig command in solaris but no results. When i use... (5 Replies)
Discussion started by: jayaprakash
5 Replies

5. Solaris

Unable to connect to Internet

Hi friends recently i have installed SXDE 1/08 into my machine,and i installed wifi driver also its working fine,Recently i was unable to connect to Internet,I have not changed any configurations and any installations,thing is that i got my iwk0 interface is UP and IP address also and i can... (6 Replies)
Discussion started by: srinivas2828
6 Replies

6. UNIX for Dummies Questions & Answers

unable to browse internet in linux (railwire dialup connection)

Hi Gurus, Good morning . I have a railwire internet connection(dial up).I am able to access internet in windows xp .but in windows xp every time i restart my pc i have to manually right click the "railwire"icon and then click "connect, after this i am just getting connected to the internet. But... (4 Replies)
Discussion started by: sanjay.login
4 Replies

7. Linux

How to connect to internet

Hi, Can someone guide me regarding how to connect to internet. what are steps? Thanks in advance (2 Replies)
Discussion started by: naren nandale
2 Replies

8. Virtualization and Cloud Computing

unable to connect internet on virtual machine

I have installed Oracle VM virtual box on Windows 7 and using LINUX (backtrack 5) as my virtual OS. The problem is i'm unable to connect to internet from my virtual OS. i'm using USB dongle (mobile broad band) to connect to internet from my host OS windows 7. I tried setting NAT in VM settings... (0 Replies)
Discussion started by: Arun_Linux
0 Replies

9. Red Hat

Unable to connect to internet

Hello, I just installed CentOS 7 (Server with GUI) and guess what I could install Virtual Box Guest additions without installing any extra package/software which is great news ! Now bad news or not so great news. My Host OS is Windows 10, Virtual Box is the virtualization software. CentOS7-1... (0 Replies)
Discussion started by: bluemind2005
0 Replies

10. Linux

Unable to connect guest VM to internet (QEMU via both 'User-mode networking' and 'TUN/TAP')

Hello, I installed FreeBSD 10.3 on AQEMU. I can't connect to internet in none of the modes of "Default, User-Mode Networking" and "TUN/TAP Networking". I am able to ping my host in the TAP networking mode (192.168.1.33 which is my IP addr in guest), but getting 'no route to host' for any... (1 Reply)
Discussion started by: temp-usr
1 Replies
DHCPCD(8)						      System Manager's Manual							 DHCPCD(8)

NAME
dhcpcd -- an RFC 2131 compliant DHCP client SYNOPSIS
dhcpcd [-dknpADEGHMLNRSTY] [-c, --script script] [-h, --hostname hostname] [-i, --classid classid] [-l, --leasetime seconds] [-m, --metric metric] [-r, --request address] [-t, --timeout seconds] [-u, --userclass class] [-F, --fqdn FQDN] [-I, --clientid clientid] interface dhcpcd -k, --release interface dhcpcd -x, --exit interface DESCRIPTION
dhcpcd is an implementation of the DHCP client specified in RFC 2131. dhcpcd gets the host information (IP address, routes, etc) from a DHCP server and configures the network interface of the machine on which it is running. dhcpcd will then write DNS information to resolvconf(8), if available, otherwise directly to /etc/resolv.conf. dhcpcd will also configure /etc/yp.conf and /etc/ntpd.conf with NIS and NTP informa- tion if the DHCP server provided them. If those file contents changed, then dhcpcd will also attempt to restart the respective services to notify them of the change. If the hostname is currenly blank, (null) or localhost then dhcpcd will set the hostname to the one supplied by the DHCP server, or look it up in DNS if none supplied. dhcpcd then daemonises and waits for the lease renewal time to lapse. Then it attempts to renew its lease and reconfigure if the new lease changes. Local Link configuration If dhcpcd failed to obtain a lease, it will probe for a valid IPv4LL address (aka Zeroconf, aka APIPA). Once obtained it will probe every 10 seconds for a DHCP server to get a proper address. Even when dhcpcd obtains a proper lease, it will still add a Local Link route (165.254.0.0/16) so that the host can communicate with clients using these addresses. When using IPv4LL, dhcpcd will always succeed and return a 0 exit code. To disable this behaviour, you can use the -L, --noipv4ll option. Hooking into DHCP events dhcpcd will run /etc/dhcpcd.sh, or the script specified by the -c, --script option. It will set $1 to a shell compatible file that holds var- ious configuration settings obtained from the DHCP server and $2 to either up, down or new depending on the state of dhcpcd. dhcpcd ignores the exist code of the script. Fine tuning You can fine tune the behaviour of dhcpcd with the following options :- -d, --debug Echo debug and informational messages to the console. Subsequent debug options stop dhcpcd from daemonising. -h, --hostname hostname By default, dhcpcd will send the current hostname to the DHCP server so it can register in DNS. You can use this option to specify the hostname sent, or an empty string to stop any hostname from being sent. -i, --classid classid Override the DHCP vendor classid field we send. The default is dhcpcd-<version>. -k, --release This causes an existing dhcpcd process running on the interface to release it's lease, deconfigure the interface and then exit. -l, --leasetime seconds Request a specific lease time in seconds. By default dhcpcd does not request any lease time and leaves the it in the hands of the DHCP server. -m, --metric metric Added routes will use the metric on systems where this is supported (presently only Linux). Route metrics allow the addition of routes to the same destination across different interfaces, the lower the metric the more it is preferred. -n, --renew Notifies an existing dhcpcd process running on the interface to renew it's lease. If dhcpcd is not running, then it starts up as nor- mal. -p, --persistent dhcpcd normally deconfigures the interface and configuration when it exits. Sometimes, this isn't desirable if for example you have root mounted over NFS. You can use this option to stop this from happening. -r, --request [address] dhcpcd normally sends a DHCP Broadcast to find servers to offer an address. dhcpcd will then request the address used. You can use this option to skip the broadcast step and just request an address. The downside is if you request an address the DHCP server does not know about or the DHCP server is not authorative, it will remain silent. In this situation, we go back to the init state and broadcast again. If no address is given then we use the first address currently assigned to the interface. -s, --inform [address [/ cidr]] Behaves exactly like -r, --request as above, but sends a DHCP inform instead of a request. This requires the interface to be config- ured first. This does not get a lease as such, just notifies the DHCP server of the address we are using. -t, --timeout seconds Timeout after seconds, instead of the default 20. A setting of 0 seconds causes dhcpcd to wait forever to get a lease. -u, --userclass class Tags the DHCP message with the userclass class. DHCP servers use this give memebers of the class DHCP options other than the default, without having to know things like hardware address or hostname. infinityRequests that the DHCP server updates DNS using FQDN instead of just a hostname. Valid values for fqdn are none, ptr and both. dhcpcd dhcpcd itself never does any DNS updates. -H, ---sethostname Forces dhcpcd to set the hostname as supplied by the DHCP server. Because some OS's and users prefer to have just the hostname, or the full FQDN more -H, ---sethostname options change the behaviour. Below is the list of possible combinations:- -H set the hostname to the full FQDN. -HH strip the domain if it matches the dns domain. -HHH strip the domain regardless. -HHHH same as -H but force hostname lookup via DNS. -HHHHH same as above, but strip the domain if it matches the dns domain. -HHHHHH same as above, but strip the domain regardless. -I, --clientid clientid Send clientid as a client identifier string. If clientid matches a hardware address format, such as 01:00:01:02:03:04:05 then we encode it as that, otherwise as a string. You need to specify the hardware type in the first byte. Ethernet is 01, and the hardware address in the example is 00:01:02:03:04:05. If the clientid is a blank string, then we disable DUID support and use a clientid as shown above. -S, --mscsr Microsoft have their own code for Classless Static Routes (RFC 3442). You can use this option to request this as well as the normal CSR. Another instace of this option only requests the Microsoft CSR to prevent DHCP message over-running its maximum size. DHCP server administrators should update their CSR code from the Microsoft specific one to the RFC compliant one as the content is fully compatible. Restriciting behaviour dhcpcd will try to do as much as it can by default. However, there are sometimes situations where you don't want the things to be configured exactly how the the DHCP server wants. Here are some option that deal with turning these bits off. -A, --noarp Don't request or claim the address by ARP. -G, --nogateway Don't set any default routes. -L, --noipv4ll Don't use IPv4LL at all. -M, --nomtu Don't set the MTU of the interface. -N, --nontp Don't touch /etc/ntpd.conf or restart the ntp service. -R, --nodns Don't send DNS information to resolvconf or touch /etc/resolv.conf. -T, --test On receipt of discover messages, simply print the contents of the DHCP message to the console. dhcpcd will not configure the interface, touch any files or restart any services. -Y, --nonis Don't touch /etc/yp.conf or restart the ypbind service. -D, --nisdomain Forces dhcpcd to set domainname of the host to the domainname option supplied by DHCP server. --netconfig Forces dhcpcd to use the SuSE netconfig tool. This option turn on following options: -N, -R, -Y and sets -c to /etc/sysconfig/network/scripts/dhcpcd-hook. NOTES
Because dhcpcd supports InfiniBand, we put a Node-specific Client Identifier in the ClientID field. This is required by RFC 4390. It's also required for DHCP IPv6 which dhcpcd should support one day. However, some DHCP servers have no idea what this is and reject the message as they do not understand type 255. This is not conformant with RFC 2132 and the server should be fixed. Also, some DHCP server configurations require an ethernet hardware address of 6 hexacdecimal numbers in the ClientID which is the default behaviour of most other DHCP clients. If your DHCP server is as desribed above, you should fix the server, or if that is not an option you can compile DUID support out of dhcpcd or use the -I, --clientid clientid option and set clientid to ''. ISC dhcpd, dnsmasq, udhcpd and Microsoft DHCP server 2003 default configurations work just fine with the default dhcpcd configuration. dhcpcd requires a Berkley Packet Filter, or BPF device on BSD based systems and a Linux Socket Filter, or LPF device on Linux based systems. FILES
/etc/dhcpcd.sh Bourne shell script that is run when we configure or deconfigure an interface. /var/lib/dhcpcd/dhcpcd.duid Text file that holds the DUID used to identify the host. /var/lib/dhcpcd/dhcpcd-interface.info Bourne shell file that holds the DHCP values used in configuring the interface. This path is passed as the first argument to /etc/dhcpcd.sh. SEE ALSO
ntp(1), resolv.conf(5), resolvconf(8), yp.conf(5), ypbind(8) STANDARDS
RFC 2131, RFC 2132, RFC 2855, RFC 3004, RFC 3361, RFC 3397, RFC 3442, RFC 3927, RFC 4361, RFC 4390, RFC 4702. AUTHORS
Roy Marples <roy@marples.name> BUGS
Please report them to http://bugs.marples.name Feb 20, 2008
All times are GMT -4. The time now is 11:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy