[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cable modem configuration -- DHCP? (was Re: internet)



Karsten M. Self wrote:
on Sat, Nov 15, 2003 at 08:05:55AM -0500, Ed and Pat Reilly (epreilly@earthlink.net) wrote:

HI,
I have setup debian on my pc along with windows 98 se. I've had redhat
and suse before and they recognized my cable connection and set it up.
How can I get debian to recognize my internet connection?


Very likely your cable modem/gateway uses DHCP to provide internal
network addresses.  You'll need to install a dhcp client -- dhcp-client
should work, though there are several others packaged for Debian.


Then edit /etc/network/interfaces so it looks something like this:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
# automatically added when upgrading
auto eth0
iface eth0 inet dhcp
#iface eth0 inet static
#       address 192.168.123.2
#       netmask 255.255.255.0
#       gateway 192.168.123.1

This tells your system to use dhcp on your ethernet card labeled "eth0" (which is a standard nickname for the first nic found in the box).

Now you need to restart networking, either by rebooting, or by running:
  /etc/init.d/networking stop
followed by
  /etc/init.d/networking start
(You could theoretically use "/etc/init.d/networking restart", but the separate steps work better in my experience.)

Now you should be able to ping, ftp, telnet, browse the web, check email, etc.

--
Kent



Reply to: