Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: New to linux, cannot connect to internet

  1. #11

    Re:New to linux, cannot connect to internet

    When I tried
    /sbin/dhcpcd eth0

    result was

    bash: /sbin/dhcpcd: No such file or directory

    I dont know what is going wrong? please help

    Roy

  2. #12

    Re:New to linux, cannot connect to internet

    There is no file called that in FC3 I don't think.

    You may want to try /sbin/dhclient eth0 instead

    At least thats what it is in FC2 anyway.

  3. #13

    Re:New to linux, cannot connect to internet

    Hi All,

    Thanks a lot for your help. I can connect to internet now.


    I run this command

    [root@localhost ~]# /sbin/dhclient eth0

    Internet Systems Consortium DHCP Client V3.0.1
    Copyright 2004 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/products/DHCP

    sit0: unknown hardware address type 776
    sit0: unknown hardware address type 776
    Listening on LPF/eth0/00:e0:18:7b:9f:67
    Sending on LPF/eth0/00:e0:18:7b:9f:67
    Sending on Socket/fallback
    DHCPREQUEST on eth0 to 255.255.255.255 port 67
    DHCPACK from 10.164.184.1
    bound to 67.184.92.138 -- renewal in 135125 seconds.

    Once I run this command I am unable to open any application. Even a browser

    So what I did was. I first opened a browser and then run this command and then the I can connect to internet.

    Only problem is that, I have to run this command each time I start the computer and once I run this command I am unable to open any application. But I am happy now. I been working desperately on this

    Thanks a lot again
    Roy.


  4. #14

    Re:New to linux, cannot connect to internet

    try
    Code:
     /sbin/dhclient eth0 &

  5. #15
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:New to linux, cannot connect to internet

    [quote author=roy link=board=4;threadid=10233;start=0#msg92438 date=1108516024]
    Once I run this command I am unable to open any application. Even a browser[/quote]
    What DE (Desktop Environment) are you using? Gnome or KDE?
    If you are using Gnome with Terminal in full screen, you can right click on the top and select to display only the window. Or you can minimize it if it fills up your screen.
    You can't use any other application only for that session. You can open up anothe one and use it.
    Or if you want, press "Ctrl+Alt+F1" all at once, log in there and issue the command you want. Then do "Ctrl+Alt+F7" to get back to the X session.

    Only problem is that, I have to run this command each time I start the computer
    That's because you didn't enable the DHCP to start at boot time when you installed Fedora. Check it out here for more info.

    I believed it's in System Setting --> Network area. I haven't used Fedora or Red Hat for a while so I'm going off of memory while helping others install Linux systems at Installfests.

    Once you get that step over, you are good for the rest to connect to the Net. That's all that to it.

  6. #16

    Re:New to linux, cannot connect to internet

    This is actually pretty simple to fix.

    Start a text editor (VIM, PICO, or the like) and edit the following file:
    /etc/sysconfig/network-scripts/ifcfg-eth0 and make sure the the BOOTPROTO= is set to DHCP and ONBOOT=yes.
    This should run dhcp at every bootup.

    10ded

  7. #17

    Re:New to linux, cannot connect to internet

    Hi All,
    I have edited /etc/sysconfig/network-scripts/ifcfg-eth0
    But still I have to run /sbin/dhclient eth0 command each time I start the computer.

    Thanks
    Roy

  8. #18

    Re:New to linux, cannot connect to internet

    from the cli run the following:
    chkconfig --list | less

    and look for the status of the dhclient or dhcp service. To set it to start during bootup:
    chkconfig --level 345 dhcpd on
    This starts the dhcp deamon at run levels 3, 4, and 5. This can also be done with the dhcp client.
    If you have any questions about chkconfig type
    man chkconfig at the cli

    10ded

  9. #19

    Re:New to linux, cannot connect to internet

    Hi,
    When I tried
    chkconfig --list | grep dh

    This was the result.
    dhcpd 0ff 1ff 2ff 3n 4n 5n 6ff

    dhcpd 0ff 1ff 2ff 3n 4n 5n 6ff
    dhcrelay 0ff 1ff 2ff 3ff 4ff 5ff 6ff


    3, 4 and 5 of dhcpd are on because I executed this command
    chkconfig --level 345 dhcpd on

    But still DHCP is not running during boot up.

    I am going nuts(if i am not already).


    Thanks
    Roy

  10. #20

    Re:New to linux, cannot connect to internet

    Ok, add level 2 to the chkconfig runlevels. If that doesnt work, try setting up a cron job or put a script in your profile that executes during startup.

    10ded

Similar Threads

  1. Another try at preserving our "FREEDOM"
    By Fatal Error in forum General Chat
    Replies: 0
    Last Post: 03-10-2005, 10:48 PM
  2. Linux security is a 'myth', claims Microsoft
    By genesis in forum Windows - General Topics
    Replies: 4
    Last Post: 01-30-2005, 10:51 PM
  3. How do I connect to the internet
    By cwatkiuk in forum Suse
    Replies: 1
    Last Post: 08-09-2003, 01:37 AM
  4. PCMCIA nic on peanut linux
    By rioguia in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 07-05-2002, 05:46 PM
  5. Preorder your Linux for PS2 now!
    By rick420 in forum Linux - General Topics
    Replies: 4
    Last Post: 04-05-2002, 05:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •