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

inter-vlan routing

hi

i have a switch 4500 interconected to 2 switch and i configure vlan and vtp on switchs.

i want to configure inter-vlan routing without router(just with catalyst 4500)

but i dont know what port can i configure and how.

can you help please.

18 REPLIES
Cisco Employee

Re: inter-vlan routing

Hi Friend,

If your 4500 runs IOS then you can configure logical interfaces or vlan interfaces and configure ip address on each interface for respective vlans.

Something like this

interface vlan

ip address x.x.x.x x.x.x.x

interface vlan

ip address x.x.x.x x.x.x.x

Also make sure you have a trunk connection from 4500 switchport to other 2 switches.

HTH

Ankur

*Pls rate all helpfull post

New Member

Re: inter-vlan routing

yes i configured 2 vlan with 172.16.0.1 and 10.0.0.1.

and i configure trunk on ports connection to other switchs.

but if connect 2 pc to 2 switch if they have ip address in the same subnet they ping them selfs.

but if they have ip address in different subnet(vlan) they don't ping themselfs.

thats means the inter-vlan routing is not configured.

how can i configur it?

Cisco Employee

Re: inter-vlan routing

Hi Friend,

When you connect 2 machines to the switch with different subnet ip range so you also connect the machines on 2 different vlans on switchport.

Can you also run "sh ip route" command on 4500 switch and confirm if you see your 2 vlans showing as connected route?

Regards,

Ankur

New Member

Re: inter-vlan routing

i have :

172.16.0.0/24 is subnetted, 1 subnets

c 172.16.0.0 is directly connected, vlan2

10.0.0.0/24 is subnetted, 1 subnets

c 10.0.0.0 is directly connected, vlan1

Cisco Employee

Re: inter-vlan routing

Hi Friend,

This confirms that inter vlan routing configuration is fine. Now make sure you have trunk connection between all switches allowing both the vlans.

And when you connect your machines on switches the switchport must be configured with access vlan 1 and 2 respectively.

Somehting like this

interface fa0/1

switchport mode access

switchport access vlan 1

interface fa0/2

switchport mode access

switchport access vlan 2

Now when you connect your machines on 2 ports make sure you configure them with thie own subnet range ip address and also assign them the gateway address which you have configured on respective vlan interfaces on 4500 switch.

HTH

Ankur

*Pls rate all helpfull post

New Member

Re: inter-vlan routing

i m sorry, i dont know how cani make sure that i have trunk connection between all switches.

and the command : switchport mode access, if she associate this switchport to work just with vlan1, i dont want this because i want mobility.

can you explain more plz.

Green

Re: inter-vlan routing

Yoyo,

As Ankur posted, you must assign a vlan to the interface. It sounds like you want the switch to figure out what address is on the client and assign that vlan to the port...it doesn't work that way. If you want to do dynamnic vlan assignment you should look into 802.1x.

New Member

Re: inter-vlan routing

i m sorry, i dont know how cani make sure that i have trunk connection between all switches.

and the command : switchport mode access, if she associate this switchport to work just with vlan1, i dont want this because i want mobility.

can you explain more plz.

New Member

Re: inter-vlan routing

thank you very much for your help.

with switchport .... that work very fine.

but just in this port, if a pc change port on the same switch that not work.

?????

Green

Re: inter-vlan routing

that port must have the "switchport access vlan" command as well.

New Member

Re: inter-vlan routing

that mean i configure all port on switch with "switchport access vlan" command

Cisco Employee

Re: inter-vlan routing

Hi Friend,

All the ports on which your wired machines will be connecting should be configured as "switchport mode access" and then with "switchport access vlan" these commads will let the machine fall into some vlan and without these commands machines will not fall into any vlan and will remain in vlan 1 always because by default all ports are assigned to vlan 1.

Mobility is not possible for your wired machines. If you want mobility scenario you need to have Wireless network setup. If you want to assign machines on different vlans depening on user identiy you have to configure 802.1x where dynamic vlan values can be returned on user basis.

HTH

Ankur

*Pls rate all helpfull post

New Member

Re: inter-vlan routing

no i want mobility with ip address.

if i connect a pc on switchport1 (for exempl)

if pc has adress 10.0.0.2 he is in vlan1

and if pc has adress 172.16.0.2 he is in vlan2

without changing port.

New Member

Re: inter-vlan routing

any suggestion????

New Member

Re: inter-vlan routing

On your 4500 switch

1. create the 2 vlans, e.g.

#vlan 10

#name Admin

#vlan 11

#name Exec

2. create virtual interfaces, e.g.

#interface vlan10

#ip address 10.1.10.0 255.255.255.0

#interface vlan11

#ip address 10.1.11.0 255.255.255.0

These IP addresses will be your gateways for each vlan you create

3. go to the ports that connect to your other switches and establish trunking

#interface gi 0/1

#switchport trunk encap dot1q

#switchport mode trunk

#switchport trunk allowed vlan 1,10,11

4. Confirm that IP Routing is running on your 4500 switch, if not run the command

#ip routing

On the other switches, establish trunking on the port that connects to the 4500. Can use a similar configure as about Step 3

On the ports on the other switches that client machines are connected to, configure them something like:

#interface gi 0/1

#switchport access vlan 11

Thats the most basic config that should get it up and running

New Member

Re: inter-vlan routing

hi,

thankyou for your help,

with this config it's work fine.

but a problem is the client machine is not in one switchport all time, that why i can't do switchport access vlan 11 for exemple for inter gi 0/1.

is there another way plz

New Member

Re: inter-vlan routing

If its a client that needs to be in multiple vlans, the configure the port that it connects to as a trunk port and trunk all the vlans it needs to connect to

Bronze

Re: inter-vlan routing

The only way I know to accomplish this is the method mentioned above...802.1x authentication, where you would have to authenticate and depending on a users login credentials a certain VLAN would be dynamically applied.

http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/12114ea1/3550scg/sw8021x.htm

616
Views
0
Helpful
18
Replies
CreatePlease to create content