Search in uioop.blogspot.com

Friday, July 20, 2007

HOWTO get a wireless router talking to your ADSL router.

HOWTO get a wireless router talking to your ADSL router.

Introduction

So you've had an ADSL router for years and have just acquired a brand new wireless router. You connect the two and find that things don't work at all, or that the behavior is inconsistent. This document describes how to connect these two routers the right way.

The method described here is for networks with two routers - one wireless router and one ADSL router. If you have one device that does both functions, then you shouldn't have any problems configuring the network and therefore wouldn't be reading this ;-). If the wireless router supports bridging and you know how to configure it, that would be a better configuration than what is described here. However, since most (cheap) wireless routers don't support bridging, we'll stick to a method that works on either kind.

Concepts

A router is a device that inter-connects (atleast) two different networks. Its primary function is to forward data from one network to another (when required) and vice-versa. For example, the ADSL router connects the Internet (WAN) to the Local Area Network (LAN). On the WAN, the router is identified by a public (globally unique) IP address assigned by the ISP and on the LAN the router is identified by a private IP address.

When a device on the LAN connects to the Internet, the ADSL router also does something called as Network Address Translation. This enables multiple hosts to share a single upstream connection. To anyone on the outside, all traffic coming from the LAN appears as coming from the globally unique public IP assigned to the ADSL router.

Configuration

Since both our devices are routers, they can only forward data between two different networks. For the wireless router to forward data to the ADSL router, they need to be in two different networks. This network configuration that we'll implement is illustrated in the following diagram -

ADSL Router

The ADSL router connects to the ISP (WAN) and obtains an IP address through DHCP or has an IP statically configured. (We do not change this configuration). Enable Network Address Translation on the ADSL router and enable DNS server (or DNS relay).

On the LAN side, configure 192.168.1.1 as the IP address of the ADSL router (with 255.255.255.0 as the subnet mask) and enable DHCP server so that wired clients can pick up network configuration automatically. Set aside a range of IP addresses for use by the DHCP server in the 192.168.1.x range (say 192.168.1.100-192.168.1.200). In the DHCP server settings, set the DNS server IP as 192.168.1.1 if required.

Wireless Router

In this setup, the wireless router forwards traffic between wireless clients and the ADSL router. As far as it is considered, the ADSL router is its ISP - its connection to the Internet. Configure 192.168.1.2 as its WAN IP address (subnet mask: 255.255.255.0), with the ADSL router as the default route (192.168.1.1). If a DNS server's IP is required, use 192.168.1.1. Disable NAT as it is not needed in this configuration.

On its LAN side, configure 192.168.2.1 as the IP address of the wireless router (subnet mask: 255.255.255.0) and enable DHCP server so that wireless clients can pick up network configuration automatically. Set aside a range of IP addresses for use by the DHCP server in the 192.168.2.x range (say 192.168.2.100-192.168.2.200). In the DHCP server settings, set the DNS server IP as 192.168.1.1 (ADSL router). If this setting is not available, then enable DNS server (or DNS relay) with the same settings as in the ADSL router device.

Configure a ESSID (name) for your wireless network and some form of security and privacy like WEP and configure WEP keys on your wireless router. MAC address filters can also be used to disallow unauthorised use of the wireless network.

Switch

The switch (or a hub) is needed if we have wired clients. If either the ADSL router or the wireless router has additional ports to connect the wired clients, then the need for the switch is obviated. Usually there is no explicit configuration changes needed on small switches.

Clients

Set up clients to obtain IP address and DNS information through DHCP and you should be good to go! Wireless clients need to know the ESSID of the wireless network and the WEP key to be able to talk to your wireless router.

Conclusion

Thats it, your setup should be up and running flawlessly. Do remember to save the configuration on all devices!

Wireless Router Recommendation

The network configuration detailed in this document will work with any wireless router. In any case, here are a few additional features to look for in a wireless router -

  1. Ethernet ports for wired clients - eliminates need for a switch if we have wired clients
  2. Bridging support

  3. ADSL support in the wireless router itself - eliminates the need for a separate ADSL router

Monday, June 25, 2007

How to recover from a corrupted registry that prevents Windows XP from starting

How to recover from a corrupted registry that prevents Windows XP from starting

http://support.microsoft.com/?kbid=307545

SmartPhone - 让多种输入法共存,输入法切换无需再重启系统

让多种输入法共存,输入法切换无需再重启系统

举例说明安装多种IME的输入法(如A4、国笔),EXE的输入法就不必说了(如无敌快手)。
本帖例子:在575机型的2003系统上安装国笔2006Sp1、A4输入法和哈工大InSunIME输入法。

1.分别安装输入法(安装顺序任意),国笔、A4、InSunIme,安装过程中和完成后都不要重启系统。

2.在\Storage\下新建目录IME,并把这四个文件:\Storage\GbIME2.dll,\Storage\windwos\ZTA4.dll,\Storage\windwos\ZTA4.ver,\Storage\windwos\InSunIM.dll,移动到新目录\Storage\IME下。


3.编辑手机注册表,最好用电脑端编辑工具,这样视图大,容易看清楚。请在编辑前分别对其分支做好备份。删除该键值下面的所有项目[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Layouts]
增加以下项目(均为字符串类型):

CODE:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Layouts\e00b0409]
"Ime File"="\\Storage\\IME\\InSunIM.dll"
"Keyboard Layout"="00000409"
"Layout Text"="InSun IME"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Layouts\00000409]
"Layout File"="kbdmouse.dll"
"Matrix"="kbdmouse.dll"
"PS2_AT"="kbdmouse.dll"
"Layout Text"="US"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Layouts\e00a0409]
"PHONE IME"="ZTA4 IME"
"Ime File"="\\Storage\\IME\\ZTA4.dll"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Layouts\e00c0409]
"Ime File"="\\Storage\\IME\\GbIME2.dll"
"PHONE IME"="GBIme"

4.重启系统。

5.切换输入法:控制当前输入法的键值是[HKEY_CURRENT_USER\Keyboard Layout\Preload\1]下面的默认值的数据。由以上得知:当默认值等于e00c0409,那么当前输入法就是国笔同样是e00a0409时,当前输入法就是A4,是e00b0409当前输入法就是InSunIME。不需要重启系统,更改后会在下一个打开的输入窗口起效。

6.附注:
第1点说明:安装是为了把输入法所需要的文件都放到指定的目录,像国笔,还有些文件是在\Storage\Program Files\gbf下的。当然如果你知道需要哪些文件,可以不安装,自己手动复制所需的文件(具体什么文件,这个可以用WinCE CAB Manager分析CAB安装包得知)

第2点说明:新建目录是为了方便管理,把dll放到一个目录这样一目了然。

第3点说明:e00b0409这个键名称可以任意,不过最好形如e00b0409、e00c0409或者e0010409、e0020409等。其中这个键00000409不能删除,这是哈工大InSunIME输入法需要的。这些键值是怎么知道的,也是用WinCE CAB Manager分析CAB安装包得知的,再作了小小的修改。

第4点说明:输入法切换,将在切换之后的新开启的输入窗口起效的。也就是说,你可以同时使用不同的输入法,例如:起先输入法是国笔,打开新建短信窗口;然后不关闭新建短信窗口,再切换成A4输入法,打开记事本程序,你会发现:回到新建短信窗口,依然是使用国笔,切换到记事本程序,却是使用A4输入法。两种输入法都在被系统调用。

对于内存占用是比较关心的话题:系统正在调用的输入法会消耗内存的,不调用的输入法是不会占用内存的,简单的说,如果没有任何一个程序在使用国笔输入法(且国笔不是当前默认的输入法),那么国笔将不会占用内存,这点你可以很简单的测试,当输入法由国笔切换成A4,发现剩余内存会多出700KB左右。比较遗憾的是这种方法国笔输入法在任务栏不能显示状态(数字状态可以显示),如图:好在这点无关紧要,不影响使用。

附件: 切换成A4输入法.zip (2007-2-3 23:44, 563 bytes)
附件: 切换成InSunIM输入法.rar (2007-2-3 23:44, 20 bytes)
附件: 切换成国笔输入法.rar (2007-2-3 23:44, 576 bytes)
附件: [懒得按上面键值编辑,就用这个吧]] Layout.rar (2007-2-3 23:48, 447 bytes)

http://bbs.tompda.com/viewthread.php?tid=2128828

Thursday, June 21, 2007

How do I block websites with hosts

Open a DOS command window, type:
notepad C:\WINDOWS\system32\drivers\etc\hosts

Windows Vista = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC
Win 98/ME = C:\WINDOWS


Put the following line in hosts:
127.0.0.1 www.google.com

File > Save.

Now try to open http://www.google.com with any web browser on the PC.

Remove the line you added from hosts to restore access to the Googl;e
web site

Editors Note: in most cases a large HOSTS file (over 135 kb) tends to slow down the machine. This only occurs in W2000/XP/Vista. Windows 98 and ME are not affected.

To resolve this issue (manually) open the "Services Editor"

  • Start | Run (type) "services.msc" (no quotes)
  • Scroll down to "DNS Client", Right-click and select: Properties
  • Click the drop-down arrow for "Startup type"
  • Select: Manual, or Disabled (recommended) click Apply/Ok and restart. [more info]

When set to Manual you can see that the above "Service" is not needed (after a little browsing) by opening the Services Editor again, scroll down to DNS Client and check the "Status" column. It should be blank, if it was needed it would show "Started" in that column. There are several Utilities that can reset the DNS Client for you ... [more info]

Editors Note: The above instructions are intended for a single (home-user) PC. If your machine is part of a "Domain", check with your IT Dept. before applying this work-around. This especially applies to Laptop users who travel or bring their machines home. Make sure to reset the Service (if needed) prior to connecting (reboot required) to your work Domain ...

JBF sends along this Tip: IPCOP running a DHCP server needs the local PC DNS Client enabled to function.

Reset the DNS Client with a simple batch file (submitted by: Ronny Ong - 2K/XP only)

DnsManual.bat (resets the DNS Client to Manual) [right-click and select: Save Target As]
DnsDisabled.bat (resets the DNS Client to Disabled) [right-click and select: Save Target As]
To use: double-click on the downloaded file and reboot that's it ...




http://www.mvps.org/winhelp2002/hosts.htm

Thursday, June 14, 2007

GOOGLE SEARCH






























AVG Internet Security 2013

Total Pageviews

Contributors