 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

10th March 2006, 02:38 AM
|
|
Registered User
|
|
Join Date: Feb 2006
Posts: 162

|
|
|
Help please
I've been trying to get internet on my linux computer. I have the cable modem hooked up to my router and my computers are hooked up with the router. sthe only problem is when I connect to the internet it doesn't work, yet when I u?sed a generic modem it works. It works on my windows computer. Whats wrong?
__________________
BURN THE WINDOWS!
|

10th March 2006, 04:23 AM
|
|
Registered User
|
|
Join Date: Feb 2005
Location: Buffalo, Ny
Posts: 875

|
|
|
To start with, post the results of: ifconfig
Jeff
|

12th March 2006, 12:03 AM
|
|
Registered User
|
|
Join Date: Feb 2006
Posts: 162

|
|
|
Okay I see one problem it was set to static IP addr adress. I changed it to automatic ip. the ip address its connnecting to is 127.0.0.1 but stil now internet. I tried ifconfig it says no such command.
__________________
BURN THE WINDOWS!
|

12th March 2006, 01:15 AM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
|
First of all, 127.0.0.1 is the loopback interface. You aren't going to go anywhere with that address.
Second, switch to root with su - (yes, put the dash), then run ifconfig. Post your results here.
/etc/sysconfig/network-scripts/ifcfg-eth0 should be something like this
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:00:00:00:00:00 (yours will read differnt)
ONBOOT=yes
TYPE=Ethernet
/etc/resolv.conf should contain the IP address of your DNS server. I suspect the problem is here.
nameserver 192.168.1.1 (yours may be different). Point to the IP address of your router.
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
Last edited by pparks1; 12th March 2006 at 01:17 AM.
|

12th March 2006, 01:46 AM
|
|
Registered User
|
|
Join Date: Feb 2006
Posts: 162

|
|
|
Sorry Newbe. it says
link encap:Ethernet Hwaddr 00:12:17:4E:3B:B8
inet addr:192.168.1.101 Bcast:192.168.1.255 mask:255.255.255.0
inet6 addr: fe80::212:17ff:fede:3bb8/64 Scope:link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:94 errors: 0 dropped:0 overruns:0 frame:0
TX packets:159 errors :0 drooped:0 overruns:0 carriers:0
Collisions:0 txqueuelen:100
RX bytes:7967 (7.7KiB) Tx bytes:13227 (12.9 KiB)
interrupt:9 Base adrress:0x4c00
for the ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:12:17:4e:3b:b8
ONBOOT=yes
TYPE=Ethernet
__________________
BURN THE WINDOWS!
|

12th March 2006, 01:52 AM
|
|
Registered User
|
|
Join Date: Feb 2006
Posts: 162

|
|
Quote:
|
Originally Posted by pparks1
First of all, 127.0.0.1 is the loopback interface. You aren't going to go anywhere with that address.
Second, switch to root with su - (yes, put the dash), then run ifconfig. Post your results here.
/etc/sysconfig/network-scripts/ifcfg-eth0 should be something like this
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:00:00:00:00:00 (yours will read differnt)
ONBOOT=yes
TYPE=Ethernet
/etc/resolv.conf should contain the IP address of your DNS server. I suspect the problem is here.
nameserver 192.168.1.1 (yours may be different). Point to the IP address of your router.
|
How do I redirect it to the router?
__________________
BURN THE WINDOWS!
|

12th March 2006, 05:39 AM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Central Wyoming
Posts: 637

|
|
Basic settings of IP networking:
IP addy - individual machine identifier
netmask - defines the local network
gateway - defines how to pass traffic out of the local network
All three pieces have to be right for traffic to flow off your LAN. Say, to the Inet.
issue the 'route' command (again, as root like suggested above, using the su - command first)
You should see something like:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
IP addy on the default line should be your router's LAN side IP addy.
If you had a static IP setup before, chances are your route is still set to the old gateway. You can reset it by issuing:
#route del default <enter>
Then setup the new default route with:
#route default gw 192.168.0.1 <enter>
Just be sure you've got the right IPs for your network. 192.168.0.1 is pretty common, but by no means the only one it could be.
|

12th March 2006, 05:24 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
Quote:
|
How do I redirect it to the router?
|
Modify, /etc/resolv.conf and make it ;
nameserver x.x.x.x (where x.x.x.x is the IP addr of your router) (hint, probably 192.168.1.1)
Then, double check your default gateway, by running route (it should look like this)
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
If not, route del default
route default gw 192.168.1.1
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
|

12th March 2006, 10:22 PM
|
|
Registered User
|
|
Join Date: Feb 2006
Posts: 162

|
|
|
I tried both ways and I have it saying this.
DESTINATION GATEWAY
192.168.1.0 *
169.254.0.0 *
DEFAULT 192.168.1.101
the only probelm is it still dosen't connect to the internet.
__________________
BURN THE WINDOWS!
|

13th March 2006, 04:01 AM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
|
The default gateway is NOT 192.168.1.101. Your actual machine is 192.168.1.101.
You need it to read default gateway of 192.168.1.1
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
|

14th March 2006, 01:28 AM
|
|
Registered User
|
|
Join Date: Feb 2006
Posts: 162

|
|
|
okay I did that and I am still not having the internet. What do I do next?
__________________
BURN THE WINDOWS!
|

14th March 2006, 05:35 AM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Central Wyoming
Posts: 637

|
|
|
What does the command 'route' return now?
What is the current output of 'ifconfig'?
What's the (confirmed) LAN IP of your router?
|

14th March 2006, 05:52 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
|
try this;
ping 216.109.117.110 (see if that works). (it's the IP for yahoo, just not using the name)
ping 192.168.1.1 (make sure that you can see your router....if that is your router IP address).
As zotter requested, please post the output of
route
ifconfig
/etc/resolv.conf
And yes< tell us for sure what the lan IP of your router is.
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
|

16th March 2006, 06:41 PM
|
|
Registered User
|
|
Join Date: Feb 2006
Posts: 162

|
|
|
for ifconfig I get:
inet addr:192.168.1.101 Bcast:192.168.1.255 mask 255.255.255.0
for route:
DESTINATION GATEWAY
192.168.1.0 *
169.254.0.0 *
DEFAULT 192.168.1.1
for resolv.conf:
nameserver 67.21.15.2
nameserver 67.21.15.18
Okay I tired to ping and it says unkown host.
I am nost sure how to get the router's address.
__________________
BURN THE WINDOWS!
|

16th March 2006, 08:14 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
Well, if you did ping 216.109.117.110 and couldn't get a response, it's likely that your gateway is incorrect.
When you tried to ping 192.168.1.1, did that not work either?
You are going to need to figure out what your router's IP address is? Hint: From a windows machine that works, run ipconfig and see what your gateway is. That should be the router. To double check, from the Windows machine that works, http://router_ip_address. You should get the web based admin page. This is the router IP address that needs to be set for your default gateway.
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 14:18 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|