cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
350
Views
0
Helpful
2
Replies

one server, two subnet

rajibchicago
Level 1
Level 1

I am currently working on a migration project. We have two LANs running parrallal during the migration, one 192.168.1.0 and the new 10.1.1.0. Now I have a user (10.1.1.6) needs to access a server (192.168.1.7) on the other LAN. No other inter lan access is required. Now if I put a 2nd NIC on the file server and connect that NIC to the 10.1.1.0 LAN switch and assign 10.1.1.10 static IP , gw 10.1.1.1 on the 2nd NIC, will this is work? Our objective is to only provide one user (10.1.1.6) to the server and every thing else will remain unchanged and working. Thanks for your help.

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

If you do what you are suggesting then all 10.1.1.x addresses will be able to connect to the server on it's 10.1.1.10 address.

Also having 2 default-gateways on a server is not a good idea and in the scenario you describe you don't need it. So you could just address the 2nd NIC as 10.1.1.10 but do not put in a default-gateway of 10.1.1.1.

That way a host in 10.1.1.x can still communicate with the server and because they are on the same subnet the server can communicate back with the host.

However that doesn't solve you other problem ie. only allowing 10.1.1.6 and no other 10.1.1.x addresses.

Do you not have a router or L3 switch that connects to both LANs ? If so the easiest thing to do is use an acl to restrict traffic between the 2 LANs so only 10.1.1.6 can talk to the 192.168.1.7 address ie. you don't then need a 2nd NIC.

If you don't have a router you may be able to use a firewall on the server and control access to the 10.1.1.10 NIC address.

Jon

View solution in original post

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

If you do what you are suggesting then all 10.1.1.x addresses will be able to connect to the server on it's 10.1.1.10 address.

Also having 2 default-gateways on a server is not a good idea and in the scenario you describe you don't need it. So you could just address the 2nd NIC as 10.1.1.10 but do not put in a default-gateway of 10.1.1.1.

That way a host in 10.1.1.x can still communicate with the server and because they are on the same subnet the server can communicate back with the host.

However that doesn't solve you other problem ie. only allowing 10.1.1.6 and no other 10.1.1.x addresses.

Do you not have a router or L3 switch that connects to both LANs ? If so the easiest thing to do is use an acl to restrict traffic between the 2 LANs so only 10.1.1.6 can talk to the 192.168.1.7 address ie. you don't then need a 2nd NIC.

If you don't have a router you may be able to use a firewall on the server and control access to the 10.1.1.10 NIC address.

Jon

Thanks you for your reply. I am thinking may be I will create a vlan and put that host and server 2nd nic only on that VLAN.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card