Linux Internet Connection
I have Yukon gigabit ETH0 that is active. I can see
and interact with the home network (windows pc's), but I can not connect
to the Internet.
I have a cable modem connected to a router all pc's
are connected to the router. I can connect to the internet from each of
the other pc's.
I am using DCHP.
Check networking setting under windows, and set the same
for linux, including IP address, gateway, route, and so forth.
Post up the outputs of:
$ /sbin/ifconfig eth0
(this contains your IP address, etc)
and
$ /sbin/route
(this should show your default gateway)
and
$ cat /etc/resolv.conf
(this holds your DNS servers)
Some useful example commands:
To set your IP address to 192.168.0.10, subnet etc:
# ifconfig eth0 192.168.0.10 broadcast
192.168.0.255 netmask 255.255.255.0
To set your gateway as 192.168.0.254:
# /sbin/route add -net default gw
192.168.0.254 netmask 0.0.0.0 metric 1
Try pinging google via IP (216.239.59.99),
if you can then chances are all you need to do is to
put your ISPs DNS servers into
/etc/resolv.conf, eg:
search .
nameserver 158.43.240.3
"...and set the same for linux, including IP address..."
Er...I'm sure you're aware that you don't want to use
exactly the same IP address as is being used on another machine, just one
that is in the same subnet.
Have a Linux Problem
Linux Forum
- Do you have a Linux Question?
Linux Books
Linux Certification,
System Administration, Programming, Networking Books
Linux Home: Linux
System Administration Hints and Tips
(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
All product names are trademarks of their respective
companies.
The site www.gotothings.com is in no way affiliated with
or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.
|