Setting routing between two networks - 2 interfaces - Windows 7
up vote
0
down vote
favorite
I have two network interfaces on one computer COMP-A.
First interface IP 10.10.10.34 /255.0.0.0
Second interface IP 192.168.0.23 /255.255.255.0
Computer via first interface is connected to network A (other computers)
Computer via second interface is connected to network B.
I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.
I also need access to devices from network B.
Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.
For example:
I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.
windows-7 networking routing
add a comment |
up vote
0
down vote
favorite
I have two network interfaces on one computer COMP-A.
First interface IP 10.10.10.34 /255.0.0.0
Second interface IP 192.168.0.23 /255.255.255.0
Computer via first interface is connected to network A (other computers)
Computer via second interface is connected to network B.
I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.
I also need access to devices from network B.
Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.
For example:
I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.
windows-7 networking routing
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have two network interfaces on one computer COMP-A.
First interface IP 10.10.10.34 /255.0.0.0
Second interface IP 192.168.0.23 /255.255.255.0
Computer via first interface is connected to network A (other computers)
Computer via second interface is connected to network B.
I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.
I also need access to devices from network B.
Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.
For example:
I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.
windows-7 networking routing
I have two network interfaces on one computer COMP-A.
First interface IP 10.10.10.34 /255.0.0.0
Second interface IP 192.168.0.23 /255.255.255.0
Computer via first interface is connected to network A (other computers)
Computer via second interface is connected to network B.
I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.
I also need access to devices from network B.
Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.
For example:
I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.
windows-7 networking routing
windows-7 networking routing
asked Dec 6 '16 at 12:48
krzych
6111
6111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:
Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.
When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.
After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:
route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:
Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.
When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.
After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:
route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)
add a comment |
up vote
0
down vote
According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:
Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.
When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.
After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:
route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)
add a comment |
up vote
0
down vote
up vote
0
down vote
According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:
Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.
When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.
After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:
route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)
According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:
Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.
When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.
After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:
route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)
answered Dec 6 '16 at 13:47
mtak
10.9k23153
10.9k23153
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1153496%2fsetting-routing-between-two-networks-2-interfaces-windows-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown