Find the answer to your Linux question:
Results 1 to 3 of 3
Hey there! I just recently got my CentOS box up and running but i got the ethernet working through my wall (directly to ethernet port on computer). Now i was ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2012
    Posts
    96

    Connected CentOS box to router through ethernet and now no internet.


    Hey there!

    I just recently got my CentOS box up and running but i got the ethernet working through my wall (directly to ethernet port on computer). Now i was told that its more reliable to run this through a router if i want to use it as a home server (which i am also trying to get configured - trying to get my domain to point to my server). But now that the computer is plugged into the router which is plugged into the wall i am unable to connect to the internet.

    Moreover when i ifconfig it displays the same IP as before which is weird because i assumed that it would take on an IP from the router.

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Hi,

    you've probably configured it to use a static ip configuration. You can either change it to the new IP configuration and correct the default gateway or use DHCP and let the box configure itself (i.e. talking to the router and retrieving the ip configuration automatically). Todays routers come all with a DHCP server. You most probably just have to configure the interface to use DHCP. I am not familiar with CentOS, but this looks like the documentation that explains how to configure it.

    Cheers

  3. #3
    Just Joined!
    Join Date
    May 2012
    Posts
    96
    Quote Originally Posted by Kloschüssel View Post
    Hi,

    you've probably configured it to use a static ip configuration. You can either change it to the new IP configuration and correct the default gateway or use DHCP and let the box configure itself (i.e. talking to the router and retrieving the ip configuration automatically). Todays routers come all with a DHCP server. You most probably just have to configure the interface to use DHCP. I am not familiar with CentOS, but this looks like the documentation that explains how to configure it.

    Cheers
    Ahh of course! God i was being foolish! Thanks so much for the info! Appreciate it!

Posting Permissions

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