ADSL2+, VOIP, Wireless router Setup

最近装上了TPG的NAKED ADSL2+,还配了一个MYNETFONE的VOIP电话,总体还可以。最大的问题是我家的电话插口只有一个,只好把电脑搬到厅里,再加上笔记本拉根线,很不方便。几年前在国内时给姥姥姥爷家搞一个无线路由,现在我不在那里,路由器也不用了。老婆这次回国帮带来了,虽说有点老了,54M带宽的,但足够用了。经过一番痛苦折腾,终于搞定了。感慨一:隔行如隔山啊,以前上学里对电脑比较感兴趣,略懂一二,这些年没怎么摸过,而且新技术发展神速,一堆堆的新名字感觉自己又老了;感慨二:实践必须有理论指导,插来插去,瞎设一通,完全凭感觉,一会这行,一会那不行,最后把自己都搞乱套了。没有理论指导就是瞎搞,不太确切地说:“践”而无“论”而罔!最后参考一个澳洲本地非常不错的论坛whirlpool,加上自己动手解决几个小问题,搞定了。

基本上有两种方法:1。跳过无线路由器的WAN,禁用DHCP;2。桥接MODEM
我选用了第一种方法,原因是不愿修改本来好好的MODEM了。

一点备忘,只适合我自己的机器和MODEM:
IP: 192.168.20.100     101,102。。。可用于其它机器
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.20.1
DNS Servers . . . . . . . . . . . : 192.168.1.1

以下是转自whirlpool论坛的:
方法一: http://forums.whirlpool.net.au/forum-replies.cfm?t=933517

This tutorial is for those people that have an ADSL modem/router and wish to add a wireless router, this tutorial sets the primary router as the control device and sets the wireless router as a switch and wireless access point (removing control and extra abilities of the wireless router)

Note for airport Extreme users, the airport extreme auto senses dual routers and will switch its self to bridge mode thus not requiring the following set up.

This tutorial does not apply to cable modem users, with the exception of BigPond cable customers with an SBG900 modem which is also a wireless router.

Cable modem users can just go out and buy a wireless router and connect it to their modem and it should just work without issue.

If you wish to let the wireless router have control and just turn the modem/router into a basic modem try this tutorial instead.

Bridge mode, adding a wireless router
/forum-replies.cfm?t=814956

Introduction

It seems more and more people are adopting wireless devices to add to their existing networks. This causes an issue when their primary internet connection device (eg modem) also contains a router. The reason being is most wireless devices also have a built in router as well.

Having two routers creates two networks with two DHCP servers and two NATs, this causes an issue when port forwarding and UPnP need to be employed on devices (eg computers) connected to the 2nd router.

To eliminate the second router we need to bypass its Wan section and essentially turn the device into a network switch with a wireless access point

Note for this tutorial

modem/router will be called – primary router

wireless router will be called secondary router

Cables used should standard network patch cables cat 5e 0r cat 6, new routers and modems can detect the type of cable and correct as needed.

CAT 5 cables can only be used for 10/100 ethernet connections. You will need CAT5e or CAT 6 if using 10/100/1000 ethernet.


Step One

Identifying ip addressing range (primary router)

The first thing we need to do is identify the DCHP IP address of the primary router.

To do this connect your computer to the primary router and allow it to connect as normal, ensuring it can connect to the internet.

Click on start and click run

Type “cmd” (without the quotation marks)

Click ok

When the cmd window opens type “ipconfig”

Your connection information should appear

Take note of the following and write then down as they will be needed shortly

  • ip address =
  • subnet mask =
  • default gateway =

You can now close the command window and disconnect the computer from the primary router


Step Two

Changing address of the secondary router and disabling dhcp

Power up the secondary router, but do not connect it to the primary router as of yet.

Connect your computer to lan 4 port on the secondary router and allow it to connect.

Connect to the web UI of the secondary router (see your secondary routers user manual for details of how to access).

In the web UI you need to change the routers lan gateway address, usually this will be something like 192.168.1.1 or 192.168.0.1 or even 10.1.1.1 etc.

We need to change it to the same ip range of the primary router.

So if for example your default gateway of the primary router is 192.168.1.1

We then change the secondary routers ip address to lets say 192.168.1.240
and save.

Then go to the DHCP section of the secondary router and click the radio button etc that says enable/disable DHCP server, ensuring the DHCP server is disabled.

Save changes and apply.

Disconnect your computer from the secondary router, and power off both the secondary router and your computer.


Step Three

Bypass WAN

With the primary router connected to the internet and working correctly:

Connect a standard ethernet cable from Lan1 port on the Primary router to Lan 1 port on the secondary router and power up the secondary router.

Connect your computer to lan ports 2, 3 or 4.

You can now connect to the secondary router’s UI by typing the IP address we set earlier (eg 192.168.1.240) and setup the wireless section of the secondary router.


From now on all control except for wireless connectivity is controlled from the primary router as we have bypassed the control functionality of the secondary router.

To port forward you enter the details as required in the primary router and if using http://portforward.com/guides.htm, follow the details for the primary router.


Adding a tip for VoIP:

If you use WAN-bypass on a VoIP/router such as the Netgear WGR613V , there is an extra step to get voip working.

You must add static routes to your gateway for the VoIP server or protocols and DNS, so the ATA is not trying to use your disconnected WAN port. Even better would be to have it run a DHCP client, or manually set a default gateway, but the Netgear devices at least do not allow that. Seting static routes is the only way I see to fix it.

Thanks to mike for this tip.


pete

An alternate way to make the primary router just a modem and allow the secondary router to have control is called bridge mode and you can find the tutorial here:

Bridge mode, adding a wireless router

Advertisements

About yhtian

I am an academic researcher working on Offshore Geotechnical Engineering. My blog aims to write down some work related trivial things and tricks about software, programming. It is basically a memo for me to back up some thoughts and small details. But I am more than happy if someone would visit and discuss.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s