LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-30-2005, 01:00 PM   #1
awagner99
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
Setting up a home network - can't connect to router


Ok, so I'm setting up a home network, and having a problem. I have a server (which will eventually run apache, sendmail, etc.), and that's hooked up to a cable modem. That works beautifully. On a second NIC (onboard, actually), I have a connection to a router. Another computer also connects to the router. Neither computer seems to be able to ping the router. Nor can I point the browser to 192.168.0.1 from either computer. It times out on the server and gets refused right away on the second desktop. Any help is appreciated. Andrew
 
Old 01-30-2005, 01:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,892

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Do you want to configure the server as a gateway/router?
How are the PC's connected to the router? Are you using the router as a switch only?

Are you assigning static IP addresses or DHCP? What are the IP's of each PC?
 
Old 01-30-2005, 02:07 PM   #3
awagner99
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michaelk
Do you want to configure the server as a gateway/router?
How are the PC's connected to the router? Are you using the router as a switch only?

Are you assigning static IP addresses or DHCP? What are the IP's of each PC?
Sorry, I should have been more clear. Yes, I'm using the server as a router. What I called the router (which is an actual D-Link wireless router), i'm using as a switch (nothing connected to the WAN port). The server is getting a dynamic IP from the cable modem, and has a static IP address of 192.168.0.10 on its second NIC. The router is supposed to come with a preset static IP of 192.168.0.1, and the other computer i have set to a static IP of 192.168.0.2.
 
Old 01-30-2005, 02:17 PM   #4
forest777
LQ Newbie
 
Registered: Jan 2005
Location: Québec, Canada
Distribution: Slackware, old school
Posts: 11

Rep: Reputation: 0
1: be sure to use a "computer to hub/switch", ethernet cable.
2: be sure that the IP, 192.168.0.1, for the router is the good one
3: try to reset the configuration of the router
4: a Hub just connect computers cables together, the switchs are more sophisticated, be sure it is not just a hub you have
5: try to ping directly the second computer connected to the router.
6: you will never be able to ping or access the router through a port, if your network, inside both computers, doesn't match the network of the router. (192.168.0.*)

First, If you are sure that's the IP address of the router is good, put a static IP in both computer. Like 192.168.0.2
for the first, and 192.168.0.3 for the second with a netmask of 255.255.255.0 and try again to ping the router. Now the network will match.
Or get the IP through the DHCP server of the router.


I hope it can help.
Sorry for my bad english.
 
Old 01-30-2005, 02:20 PM   #5
forest777
LQ Newbie
 
Registered: Jan 2005
Location: Québec, Canada
Distribution: Slackware, old school
Posts: 11

Rep: Reputation: 0
DHO! you posted your second post before I click on submit
 
Old 01-30-2005, 02:27 PM   #6
forest777
LQ Newbie
 
Registered: Jan 2005
Location: Québec, Canada
Distribution: Slackware, old school
Posts: 11

Rep: Reputation: 0
I do recommend a port scanning.
Try: nmap -P0 192.168.0.1

it will not try to ping the router.
You will see if you can access a port, to be able to configure the switch. It can use a different port than 80.

And ping might be blocked by the switch built-in firewall, if he has one.

Last edited by forest777; 01-30-2005 at 02:29 PM.
 
Old 01-30-2005, 02:43 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,892

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Can you ping the two PCs?
 
Old 01-30-2005, 09:23 PM   #8
awagner99
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Problem solved

I was able to resolve this problem. Thanks for all the suggestions. There was a messed up rule in my firewall that was borking things up.
 
  


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
Setting up router (Linksys WRT54G v5) to connect to internet (SUSE 9.3) Jongi Linux - Networking 2 11-15-2005 01:33 PM
Home network setup with network firewall/router Gates1026 Linux - Networking 4 01-17-2005 08:26 PM
help! setting for connect internet via ADSL router(suse 9.1) mysurface Linux - Networking 0 10-21-2004 03:00 AM
home network router problem sprachy Linux - Networking 4 04-21-2004 11:38 AM
setting up a home network, unix/win2k box to connect with xp system Cher Linux - Networking 7 03-11-2004 01:41 AM


All times are GMT -5. The time now is 09:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration