Hi,
Welcome to LQ!
Quote:
Originally Posted by DavidLukens
I was given a 2wire Gateway Modem to connect my HP 64bit computer to the internet. It is a Ubuntu 10.04 LTS. The connections to the DSL and the Internet are all good, but the computer does not talk to the modem. All the driver information I can fond for this driver list only windows programs as compatible ones. Is this compatible with linux?
DavidLukens
|
There are several models of 2wire Gateway Modems, it would be nice to know the specific model your have.
The IP for most 2wire is '192.168.1.254'. You can use the 2wire as DNS by editing the '/etc/resolv.conf' file and placing 'nameserver 192.168.1.254' within.
You will need to setup the '/etc/resolv.conf' with your ISP nameservers.
Sample '/etc/resolv.conf;
Code:
#Verizon third level DNS
#place your ISP DNS first thus ahead of the Verizon DNS
nameserver 192.168.1.254 #2wire Gateway Modem can be used if you do not know ISP DNS. If you do then place # at the front
#of this line then insert ISP DNS in place of xxx.xxx.xxx.xxx below
nameserver xxx.xxx.xxx.xxx #place your ISP DNS here, if not then place # at front of this line
nameserver 4.2.2.1 #fall back
nameserver 4.2.2.2 #fall back
You may want to look at the '/etc/resolv.conf' file before modifying it.
You can place '192.168.1.254 gateway.2wire.net' into your '/etc/hosts' file for name resolution locally.
A few things you would need to know; available IP, Gateway, device Ethernet. Hopefully all drivers & firmware are in place and the Ethernet device is available.
We know the IP for the 2wire as '192.168.1.254' and that will be your gateway address. IP for your systems device should be within the range so hopefully '192.168.1.10' is available since you only have one system on the LAN at this point. Be sure to use a known good cable to connect the NIC(Network Interface Card) in your system to the available LAN port on the 2wire.
First, IP available for your LAN? We are using '192.168.1.10'.
What is the Gateway? 2wire address is '192.168.1.254'.
Device is Ethernet (Eth0,1,2,3)? We are assuming 'eth0'
I would setup a static IP first, do as root from cli (I have used direct resolution for commands by placing '/sbin' before each command. As root the path should be correct therefore no need for '/sbin');
Code:
~#/sbin/ifconfig -a #get recognized devices. Hopefully eth0 is shown and available' If so then proceed
~#/sbin/ifconfig eth0 192.168.1.10 #assign static IP to eth0
~#/sbin/route add default gw 192.168.1.254 #set gateway for Ehternet device eth0
You can now confirm the device assignments by;
Code:
~#/sbin/ifconfig -a #show device information
~#/sbin/route -n #show kernel route table
You should see the IP assignment for eth0 within the '~#/sbin/ifconfig -a' output.
Sample 'route -n';
Code:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 1 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
To check this out;
Code:
~#ping 192.168.1.254 #Your 2wire gateway address, OK if you get a valid response
~#ping 74.125.225.70 #Google IP, if you get a response to ping then OK
~#ping google.com #If you get a valid response then DNS OK if not then check '/etc/resolv.conf' for valid nameserver address
HTH!
EDIT: FYI: I suggest that you look at '
How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.