05-16-2007 08:05 AM - edited 03-05-2019 04:07 PM
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.
05-16-2007 08:10 AM
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
05-16-2007 08:17 AM
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?
05-16-2007 08:22 AM
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
05-16-2007 08:28 AM
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
05-16-2007 08:39 AM
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
05-16-2007 09:02 AM
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.
05-16-2007 09:10 AM
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.
05-16-2007 09:43 AM
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.
05-16-2007 09:53 AM
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.
?????
05-16-2007 10:26 AM
that port must have the "switchport access vlan" command as well.
05-17-2007 12:24 AM
that mean i configure all port on switch with "switchport access vlan" command
05-17-2007 12:27 AM
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
05-18-2007 03:11 AM
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.
05-21-2007 03:40 AM
any suggestion????
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide