You are not logged in.

#1 2008-05-03 12:38:30

lazylogic
Member
Registered: 2008-04-20
Posts: 18

How to find the correct gateway address?

My connection to the internet is through an adsl modem to a service provider. This modem is connected to a wireless router, Linksys WRT54G

In the configuration file /etc/rc.conf of my laptop's Arch setup - I've forgotten to edit the gateway address and keep it at its defaulted 192.168.0.1

However, today I've install Arch in my desktop and (I actually remembered) edit the gateway address to 192.168.1.1

Both my laptop and desktop can access the internet , though the gateway address is different.
How is this possible ?



To confuse myself further, I've access the router through firefox keying in the address 192.168.1.1 (that's why I think the gateway should be 192.168.1.1) and got to this page which tells me that the gateway address is actually 10.0.0.2.

gateway.jpg

So, what is the REAL gateway address and how can I find it?

hmm


I'd read the faq
and the wiki
then the guides
and went googling, before posting here big_smile

Offline

#2 2008-05-03 13:52:52

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: How to find the correct gateway address?

Your gateway should be your router's IP in your situation.

Is there a reason you're trying to statically input the gateway address? DHCP should do it for you.
http://wiki.archlinux.org/index.php/Con … or_DHCP_IP

Offline

#3 2008-05-03 14:45:22

lazylogic
Member
Registered: 2008-04-20
Posts: 18

Re: How to find the correct gateway address?

Aaron wrote:

Your gateway should be your router's IP in your situation.

Is there a reason you're trying to statically input the gateway address? DHCP should do it for you.
http://wiki.archlinux.org/index.php/Con … or_DHCP_IP

Nope, no actual reason to try to statically input the gateway addess big_smile

only thing is - in the default installation /etc/rc.conf, the gateway is stated as

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

So when I installed it in my desktop , when I saw that the address is "wrong", I updated it to 192.168.1.1 to "correct" it.


Any idea which is the correct gateway address?  or  maybe how to find out which is the correct address?


I'd read the faq
and the wiki
then the guides
and went googling, before posting here big_smile

Offline

#4 2008-05-03 14:48:49

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: How to find the correct gateway address?

That '!' tells you that the gateway setting is *not* being used. It can be anything - it's just a template for people that need to use static IP config.

Offline

#5 2008-05-03 22:24:58

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: How to find the correct gateway address?

Maybe the 10.0.0.x networt is your isp network and the gateway 10.0.0.2 is in the ISP servers. SO the correct gateway for your LAN will be your router address: 192.168.1.1

Offline

#6 2008-05-03 22:41:22

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: How to find the correct gateway address?

deleted

Last edited by Misbah (2012-02-14 04:44:11)

Offline

#7 2008-05-06 02:45:45

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: How to find the correct gateway address?

My guess from the screen shot is that you have a separate Modem and Router?

If that's the case, then you are actually running 2 networks:
1) Your LAN (192.168.1.x)
2) Between the Router and Modem (10.x.x.x)

So when one of your clients on the LAN tries to connect to google.com, it makes the request to the router, the router routes it through to the modem, then the modem on to your ISP.

The IP's need to be different on each 'side' of the router, otherwise it won't be able to work out what's where and how to route smile

Offline

#8 2008-05-06 10:00:55

DkSoul
Member
Registered: 2005-11-24
Posts: 34

Re: How to find the correct gateway address?

Is your modem actually a router with an ADSL modem in it?

It seems that your linksys is configured to dhcp, you should be able to configure your computer in a number of ways:
  - use 192.168.1.1 as your gateway (and let your linksys route your packets to its default gateway, 10.0.0.2)
  - reconfigure your computer to the 10.0.0.0/24 network with 10.0.0.2 gateway (use linksys only as a wireless bridge)
  - use dhcp and let the routers decide your ip and gateway

Hope it helps wink
DkSoul

Offline

Board footer

Powered by FluxBB