cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
509
Views
4
Helpful
6
Replies

Different vlans with different gateways but do not have Intervlan.

jib15
Level 1
Level 1

Hi Guys, 

Good day! I have a question referencing the picture below. 

How can I make a different vlan with a different gateway on each vlan that do not have inter-VLAN routing.

What I need to achieve are:

 

1. Different vlans and needs to be connected outside each via NAT. 

2. No Intervlan routing needed. 

 

Thank you and will be much appreciated your insights. 

 

jib15_1-1697187507470.png

 

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame
1. Different vlans and needs to be connected outside each via NAT. 

This you can do standard NAT Setup to reach Internet since you have only 1 Internet connection

basic nat NAT config add more IP addres in ACL to work :

https://www.balajibandi.com/?p=1796

2. No Intervlan routing needed. 

 Since router aware of all the routing, you can use ACL on the interface not to connect other VLAN Address space

 

access-list 100 deny ip 192.168.10.0 0.0.0.255 192.168.20.0 0.0.0.255
access-list 100 permit ip any any
!
int vlan 10  or subinterface in the router.
ip access-group 100 in

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

6 Replies 6

M02@rt37
VIP
VIP

Hello @jib15 

On this topology, Gw of each vlan should be hosted by the router..... then communication should be done beween VLAN...except if you implement ACL !

For NAT, perform a static NAT overload on interface serial 0/3/0:

ip nat inside source list 10 interface Serial0/30/ overload

-- configure standard ACL #10 matching he subnet 192.168.10.0/24:

access-list 10 permit 192.168.10.0 0.0.0.255

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Hello M02@rt37,

Thank you for your response! this makes sense. I just forgot that we can use ACL to restrict the connection on each vlan as I had implemented the sub-interface on the router. 

You're very welcome @jib15 !

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

balaji.bandi
Hall of Fame
Hall of Fame
1. Different vlans and needs to be connected outside each via NAT. 

This you can do standard NAT Setup to reach Internet since you have only 1 Internet connection

basic nat NAT config add more IP addres in ACL to work :

https://www.balajibandi.com/?p=1796

2. No Intervlan routing needed. 

 Since router aware of all the routing, you can use ACL on the interface not to connect other VLAN Address space

 

access-list 100 deny ip 192.168.10.0 0.0.0.255 192.168.20.0 0.0.0.255
access-list 100 permit ip any any
!
int vlan 10  or subinterface in the router.
ip access-group 100 in

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello @balaji.bandi,

 

This makes sense to me now! except this that makes me confused a bit on "int vlan 10  or subinterface in the router." I know the sub interface but how about the int vlan, do you mean possible to make as a gateway to vlan instead?  

Btw, Thank you so much for your response! appreciated!

 

that is example

if you are using Router - you need to apply that ACL in the interface where the traffic leaving (that is the reason i mentioned "or")

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card