Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Connect a subred to switch with VLAN

I want to connect a subred to switch Cisco Catalyst 4503, for this I make the following steps:

- Add a new Vlan

- Add a new interface

- I assign to this new interface the created Vlan

- enables "Ip routing" mode.

- For new vlan interface I assign IP address

and I list

Now, in these steps where I specify or is related the port of the switch that I will connect to subred ?. because in the interface I specify the modulate / and numbers of the interface, not the port.

Some body could help

Thank you in advance.

7 REPLIES
New Member

Re: Connect a subred to switch with VLAN

You must go under the individual interface you want to be on that vlan and configure it.

interface gi 2/0/2

switch port mode access

switchport access vlan yy (yy is your vlan)

HTH

Robert

New Member

Re: Connect a subred to switch with VLAN

Ok, I already have defined the interface

But, where I specify the port interface to which will be connected my subred ?

Thank you

New Member

Re: Connect a subred to switch with VLAN

Once you assign the port to that VLAN it becomes part of that subnet. Any client you put on that port will need to use the address you configured on the switch or a router on the same subnet as the vlan you created as its default gateway so it can communicate with other subnets or vlans.

HTH

New Member

Re: Connect a subred to switch with VLAN

I send an outline to explain to me better.

I want to communicate from the subred 10.30.0.0 /24 to the subred 192.168.100.0 /24

In the switch I have to specify the route ?

route 192.168.100.0 255.255.255.0 192.168.101.2

sured 192.168.100.0 /24

|

|

ROUTE

| interface 192.168.101.2 /24

|

|

|

| port VLAN 2 interface 192.168.101.3 /24

SWITCH

| VLAN 1

|

| subred 10.30.0.0 /24

Thank you

New Member

Re: Connect a subred to switch with VLAN

If both interfaces or vlans are on the switch you will be able to route them as connected. You dod not have to build static routes to each interface on the swithc. Once you assign the IP address and subnet mask to the Vlan it knows that is the interface. Now if you have another router that you are trying to talk to with theother networks. You will have to configure a static route from the router to the switch. One inteface on the router will need to be on a common VLAN on the switch.

HTH

New Member

Re: Connect a subred to switch with VLAN

If you could send me the configs I can help you more with this.

New Member

Re: Connect a subred to switch with VLAN

OK, I created route in the router.

But I have created static route from de switsh to route to comunicate with subnet thats is in the route ?

Sorry in these moments I am not with the switch for send config.

Thank you

160
Views
0
Helpful
7
Replies
CreatePlease to create content