Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to enable multiple gateways in a inter-vlan network?

Status
Not open for further replies.
Sep 21, 2004
108
US
The below link has a configuration that I am trying to do
I want vlan 11 to use 10.0.0.1 for the gateway and vlan 12 to use 66.209.104.49 for the gateway. However, vlan 11 and vlan 12 must talk to each other.

Basically, I find it is impossible to have multiple gateways and inter-vlan routing to co-exist in one network.
If you know a way, please tell me. Thank you very much.
 
The 3550 gateway is very capable of providing what you want.
Just need to create 2 layer 3 SVI's and assign relevant switch ports to vlans 11 and 12. For example

interface vlan 11
no shutdown
ip address 10.0.0.1 255.255.255.0
interface vlan 12
no shutdown
ip address 66.209.104.49 255.255.255.0

interface fa0/1
switchport mode access
switchport access vlan 11
interface fa0/2
switchport mode access
switchport access vlan 12
 
I already did your configuration.
The problem is that which gateway IP can my Vlan computers use?
In my network, If a computer in VLAN 11 uses the default gateway of 10.0.88.1, it can access VLAN 12. However, it does not know to use 10.0.0.1 to access internet. If the computer uses 10.0.0.1 for gateway, it can access internet. But VLAN 12 is not accessible.

:(
 
In the config I supplied above, vlan 11 machines always use 10.0.0.1 as a default gateway and vlan 12 machines always use 66.209.104.49

If you want to route both vlans to different internet gateways, you'll need to enable Policy Based Routing.

Something like:

interface vlan 11
policy route-map vlan11
interface vlan 12
policy route-map vlan12

route-map vlan11 deny 10
match ip address 100
route-map vlan11 permit 20
set ip default next-hop 10.0.0.1

route-map vlan12 deny 10
match ip address 101
route-map vlan12 permit 20
set ip default next-hop 66.209.104.49

access-list 100 permit 10.0.88.0 0.0.0.255 66.209.104.48 0.0.0.7
access-list 101 permit 66.209.104.48 0.0.0.7 10.0.88.0 0.0.0.255

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top