LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB Ethernet Adapter help (https://www.linuxquestions.org/questions/linux-newbie-8/usb-ethernet-adapter-help-364590/)

mcrexx 09-18-2005 02:38 PM

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.

Matir 09-18-2005 02:45 PM

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

mcrexx 09-18-2005 02:48 PM

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 :( .

Matir 09-18-2005 02:51 PM

Then simply create one with only that as the contents.

mcrexx 09-18-2005 02:55 PM

Quote:

Then simply create one with only that as the contents.
DONE! It works! THANK YOU SO MUCH MATIR!:D

Matir 09-18-2005 03:54 PM

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.


All times are GMT -5. The time now is 05:16 AM.