LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2005, 02:38 PM   #1
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Rep: Reputation: 0
USB Ethernet Adapter help


I'm trying to get my Linksys USB100TX ethernet adapter to work so I can download apt-get packages from the debian server but I can't seem to the ethernet adapter to connect to the internet.

When I plug the USB eth in debian automatically detects it.

Quote:
ohci_hcd 0000:00:02.0: wakeup
usb 1-2: new full speed USB device using address 5
eth2: Linksys USB100TX
So, to connect to my router I proceed to type:
Code:
ifconfig eth2 192.168.1.102 netmask 255.2255.255.0 up
(Although I would rather have the eth adapter get its own ip address, etc. through the router's DHCP, but I don't know how to make the adapter do that yet)

I then proceed to input:
Code:
/sbin/route add defulat gw 192.168.1.1
for the default gateway.

To check the adapter can connect to the router I type:
Code:
ping 192.168.1.1
and it shows the adapter is pinging correctly.

But when I try to ping a website:
I get unknown host.

I feel like I'm missing some steps, can someone help me fill the gaps please? Thank you very much.
 
Old 09-18-2005, 02:45 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yep. You need to put the nameserver (DNS server) in /etc/resolv.conf.

For example, my /etc/resolv.conf contains:
Code:
nameserver 192.168.0.1
 
Old 09-18-2005, 02:48 PM   #3
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you for the quick reply.

Quote:
Yep. You need to put the nameserver (DNS server) in /etc/resolv.conf.
I don't seem to have a file in /etc/ called resolv.conf .
 
Old 09-18-2005, 02:51 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Then simply create one with only that as the contents.
 
Old 09-18-2005, 02:55 PM   #5
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Then simply create one with only that as the contents.
DONE! It works! THANK YOU SO MUCH MATIR!

Last edited by mcrexx; 09-18-2005 at 03:06 PM.
 
Old 09-18-2005, 03:54 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No problem. Glad we got you up and running. To use DHCP, simply install dhcpcd or dhclient. I prefer dhcpcd, but to each their own.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Ethernet adapter support? alanjay Linux - Networking 3 11-24-2005 10:48 AM
Problems with USB ethernet adapter basse- Linux - Networking 0 12-29-2004 03:34 PM
USB ethernet adapter failing Smurfen Linux - Hardware 0 11-20-2004 10:50 AM
Installing a usb ethernet adapter cowboy45 Linux - Hardware 2 10-09-2004 03:44 AM
USB Ethernet Adapter Installation Problems zebedee Linux - Laptop and Netbook 0 11-18-2003 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration