Main Topics
Browse All TopicsConnection is like this:
internet/isp -> cable modem -> cable modem router -> internet network
on the cable modem router, i need to know the default gateway to the internet? how do i find this out?
any suggestions would be helpful.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If your PC is set to obtain an ip address automatically, i.e DHCP, you should already obtained the default gateway address. Just open a command prompt and type ipconfig/all if you are running 2000 on and winipcfg if you are on 95 or 98. That will give you router default gateway address. Then put it in your browser and connect to it.
Mohawk1
First, the Internal Lan's default gateway is the Private IP address of the LAN side of the router.. In your case, this is usually 192.168.1.1. Your router should be set to get the WAN Default Gateway dynamically from your ISP, and will show up in the Settings Page of your router's interface (this is the Linksys Router way). If you are using Static addresses for your WAN connection, your ISP should give you all that information so you can hard code it into your router...
Just curious, why do you need these settings? Are you trying to setup the router?
FE
Connect to the settings or management page of the router. (It's often something like http://192.168.1.1 or .0.1 or .0.254).
-----Burton
Just go to: http://checkip.dyndns.org/
they will tell you WAN IP.
If you need to know your WAN ip in order to access your machines from outside, one good solution is through www.dyndns.org. This is a service that can be supported directly by the router and, if it's not, then there are clients available from dyndns. They give you a dynamic hostname that you can choose (for free). So after you have setup the service, you can have a name associated to your wan ip such as myrouter.homeip.net. And to know your IP (if you still need the numeric address) you can just do "nslookup myrouter.homeip.net".
Besides www.dyndns.org there are other sites that offer the same service.
thanks all the response, I guessed i am not specific about the diagram.
the connection is like this.
internal network -> Netscreen 5 (VPN/Firewall device) -> Cable Modem/DSL -> Internet
Here is the history behind this:
I am configuring the Netscreen 5, and I need to put a default gateway ip pointing to the Cable Modem/DSL, and therefore
I need to know the static ip address of the upstream router. I am not sure which is the upstream (next hop) router of the Netcreen, is it the Cable modem (no sure if this is actually a router) or some upstream device. Regardless, I can
find this from the ISP which is fine.
The Cable modem connection currently is assigning a dynamic ip address to the internal network. I have to change the dyanmic ip to static ip through the ISP. They were asking if there is a bridging setup or straight-through. After I explained
the setup to them, looks like it is a straight through setup. I am not sure what this has to do on assigning a ip though.
I do have a question on NAT here. If I am using the company address space which is a routable addresses space (134.x.x.x) behind the Netscreen 5, I am NOT doing NAT, is this correct? If I am using the Private address on the internal network such as
192.168.1.x, I need to configure NAT, am I correct on this?
Thanks all.
Regardless, you are still using NAT unless you configure the Netscreen to act as a Bridge. Why would you want to use Public IP's on your internal network? Unless the public IPs are registered to you (that you are using internally), you will run into problems, and this is one of the reasons behind NATing your internal network...
In your case, I assume you the modem is acting as a bridge, then you will be using the router as a router and it will use NAT Transveral for your internal LAN. If you are using Public IP's, you don't need the router, as a switch will do what you need it to do here...
FE
I have a very similar setup to yourself though with different hardware. This solution may be useful if you cannot get the modem and router to work together with the modem in bridge mode.
This was a problem I had, so the gateway for my router is the IP address of my modem. The modem deals with the IP handshaking with my ISP, and obtains all its settings from the ISP through DHCP.
ie. Modem - 192.168.0.1, Netmask 255.255.255.0
Router WAN side IP 192.168.0.2, Netmask 255.255.255.0
Router LAN side IP 192.168.1.1, Netmask 255.255.255.0, Gateway 192.168.0.1, DHCP enabled
To help you further, can you specify please the make and model of your modem so that we can see if it can provide this setup.
I should have mentioned you will find it easier to configure a setup like this if you can configure your modem first by connecting a PC to it directly. In many cases the default IP address is 192.168.0.1 as per my setup above, but it depends on the harware, hence my question above about the make and model.
Configure the modem to connect to the ISP, then when you are happy that is working, connect the modem to the WAN side of the router and the PC to one of the LAN ports in order to configure the router.
>>>The Cable modem connection currently is assigning a dynamic ip address to the internal network. I have to change the dyanmic ip to static ip through the ISP. They were asking if there is a bridging setup or straight-through. After I explained
the setup to them, looks like it is a straight through setup. I am not sure what this has to do on assigning a ip though.
if your cable modem is setup as a bridge, you can assign a single static ip address given to you from the isp to your netscreen directly and the gateway will be the ISP router at their end (not on the modem).
If your modem is setup as a router it will have an address assigned to it and you will need an additional subnet on the lan side to assign your netscreen a public ip address. Then your gateway will be the ip address assigned to the modem on the lan side.
Your isp could set you up with a 2-node subnet for this. This will create three networks at your site. Modem to world....netscreen to modem...and your lan.
hth
K
If the netscreen is configured for dynamic IP (which it should be unless the ISP has EXPLICITLY given you a static IP address), then it should be getting everything it needs from the dhcp server, including the next hop.
If you have a true static IP - FROM THE ISP - then ask them what address to use.
-----Burton
>>>ie. Modem - 192.168.0.1, Netmask 255.255.255.0
Router WAN side IP 192.168.0.2, Netmask 255.255.255.0
Router LAN side IP 192.168.1.1, Netmask 255.255.255.0, Gateway 192.168.0.1, DHCP enabled
I have a question about the Gateway 192.168.0.1, isn't this supposed to be a public ip since it is on
the WAN side?
In other words, that is the default gateway for your LAN... not a router on the internet with a public address.. What you are running is 2 private subnets here, the 192.168.0.x and a 192.168.1.x, and your modem is acting as a router, meaning you have 2 inline routers here. The best way to configure this setup would be to convert your Modem to a bridge, and let the router do its job as a router.
The way you describe this it looks like the modem is actually a router - otherwise the router WAN side wouldn't get a private IP (192.168.0.2). Looks like you really need to find this out. The router is now set up to use 192.168.0.1 as internet gateway, which is fine if the modem is a router, too, and has this IP on its "inside".
As has been said here already, if you have a static, public IP from your ISP, they should have given you all the info on gateways, netmasks and such in the documentation for the agreement you have. If you haven't got any such info, I'd be prepared to bet you have a dynamic IP from your ISP. In that case you don't need to do anything about gateways and such for your modem, because the IP that you use will be assigned together with all other values through DHCP or some equivalent. This, your dynamic IP, is held by the first router WAN side that you have at your end. This may be a built-in router in the modem, or a separate router after the modem. As I said, it looks like you are using a modem with a built-in router as your Netscreen router has a private IP on its WAN side.
/RID
>>> I have a question about the Gateway 192.168.0.1, isn't this supposed to be a public ip since it is on
the WAN side?
No the setup I described (which is the one I use) has the modem working as a router also, and it obtains the public gateway , IP address etc from the ISP by DHCP. I couldnt get my two boxes to work together with the modem in bridge mode.
What is the make and model of your modem? With that information we can establish which modes it can work in and how much it can be configured.
Going back to your original question, rid's comments are quite correct and should be the first thing we address.
Does your ISP provide dynamic IP allocation, or do you have a static IP address? Their help desk should be able to answer this question for you. If they have given you a static IP address they should also provide you with the gateway and DNS details that you need.
Most ISPs will only give you a static IP address if you have specifically requested one though, so the likely scenario is that you get IP dynamically via DHCP, in which case you don't need to configure the gateway information into the modem. DHCP will give this information to the modem when you connect.
Your modem is likely to have a configuration page though which asks whether you are using dynamic or static IP allocation, so it is important to find out from your ISP which type you have.
Peter, everyone here has provided value - and I'm going to lay out two possible proper network designs for you, only for the sake of clarity/simplicity:
(Internal Lan) <----------->(Netscreen 5)<--------------><DSL Modem>--------<Provider DSL Modem>-------<Provider Router>
134.n.n.n But NAT OFF |-------------Public Address provided by your Provider------------------
*ONLY* if the FireWall ON |-------------Static Address if they gave you an Address, Mask, and DNS---|
company Owns it DHCP OFF |--------------Dynamic Address otherwise-----------------
for LAN
interface
(Internal Lan) <----------->(Netscreen 5)<--------------><DSL Modem>--------<Provider DSL Modem>-------<Provider Router>
192.168.1.n NAT ON |-------------Public Address provided by your Provider------------------
FireWall ON |-------------Static Address if they gave you an Address, Mask, and DNS---|
DHCP depends |--------------Dynamic Address otherwise-----------------
on how you
want to manage
addresses
Just for the sake of clarity, the DSL modems have no IP addresses (per se), since they are only layer 2 devices. Some modems offer IP capability but frankly that just gets in the way, ususally - unless you have a true DMZ for some reason.
Jon
Business Accounts
Answer for Membership
by: LydiardBPosted on 2005-01-09 at 22:33:06ID: 13000565
The best way of finding you WAP IP address is to go a website where your IP address is logged - but I can't think of one at the moment.
Alternatively, if you know how to read email headers you could send youself an email (and pick it up from a webaccount). But none of that will help you at the moment, since I guess you question is more along the lines of "how do I set the router-up to get the modem working"...?
I'm confused by your diagram above. Did you mean:
internet/isp -> cable modem -> cable modem router -> INTERNAL network ???
In which case, your router should have an installation panel that you can reach through your web browser - typically 192.168.1.0 if you're getting it out of the box. You can set up the cable-modem's connection parameters from there. Can you be more specific about the steps you've taken and the problem you're trying to resolve?