How to access both internet and office intranet(with LAN) at the same time.
Do you use both intranet and internet at your office? Do you need to change and replug the LAN cable every time while switching to/from internet or intranet? or how often have you thought while working in your office that I wish I could watch a video on YouTube or may be check Facebook timeline and also use your office intranet network at the same time. Don’t worry, I will show you how to do this.
In order to use two network at the same time you need to have two separate Network Interface Card(NIC) installed on your PC/Laptop. One is LAN adapter through which you will be using your office intranet network and other is wireless adapter(wi-fi) to get access to the internet.
My office has a intranet whose IP params are as follows. We will be using these parameters in this entire post and also while assigning IP manually to LAN adapter:
IP address: 10.161.18.17
subnet mask: 255.255.255.248
primary DNS(if any):10.199.222.193
secondary DNS(if any):10.199.222.193
Open command prompt→Right click→Run as administrator
In command prompt we need to add a persistent route so that you can use both internet and intranet. Now type: route add -p 10.0.0.0 mask 255.0.0.0 10.161.18.17 and press Enter.
Here in our example we are using a Class A IP address. For class A IP address subnet mask is 255.0.0.0. Now you might think what if someone’s IP is like 172.24.36.24(Class B) or 126.96.36.199(Class C). Don’t worry i will cover that too. Before that you need to know what class your IP belongs to. Follow this infographic to know.
I have included two examples of Class B and Class C on above infographic. I hope those will clear your doubts. If you have any query please ask on comment section below.
Once you have added the route on command prompt, next step will be assigning IP manually to LAN adapter.
A. GO to
For windows xp: control panel→network and internet connection( or network connection)→local area connection
For windows vista: control panel→network and internet→network and sharing center→Manage Network connection(on left side)
For windows 7/8/10: control panel→network and internet→network and sharing center→change adapter settings( on top left corner.)
B. Right click on Local Area Connection → properties → internet protocol version 4(TCP/IPv4)
Note: If you want to delete the route, add this command on cmd(open with administrator right): route delete 10.0.0.0
We have done all the staffs for Intranet. Now in order to access internet just turn on the WiFi of your PC/Laptop. That’s it.
I hope now you will be able to use both internet and intranet. You may also check whether you are connected to both network or not by using these two command on COMMAND PROMPT:
ping www.google.com ( To check Internet)
ping 10.199.222.193 ( This is the DNS of intranet that i am using, To check Intranet)
If you have liked the post then please do share. This will really help us. And if you want us to send more interesting topics to your inbox then please subscribe the blog. Thank You.