12-23-2003 07:48 AM - edited 03-02-2019 12:31 PM
hi
I have a router with two ethernet interfaces and two different networks. I want to connect both to a same switch and hence spilt the switch 2950xl to two vlans. How can i accomplish this please provide configuration links. I don't want to use trunks just access links
thanks
12-23-2003 11:25 AM
configure a second VLAN in the 2950 and associate that VLAN to the ports that you want to be routed via the other router interface.
12-23-2003 06:30 PM
hi
thanks do u have a link to a sample config
12-24-2003 06:45 AM
Hi,
on switch interfaces, the only thing you have to do is;
switchport access vlan
for example:
2950xl(config)#int fastEthernet 0/2
2950xl(config-if)#switchport access vlan 2
when you wrote this command under interfaces, the vlan is automaticaly created (either if it doesn't exist) and that interface is assigned to that vlan. for intervlan routing, one router interface must be assigned per vlan.
or you can do trunking configuration. trunking provides you to use only one physical interface for all vlans, so you don't waste your ethernet interfaces per vlan on your router. if you want to know how to do this, look at the link below..hope this helps..
http://www.cisco.com/en/US/tech/tk389/tk390/technologies_configuration_example09186a00800949fd.shtml
12-24-2003 06:48 AM
Hi Vlan example, in global config
interface VLAN1
ip address link1.address 255.255.255.0
no ip redirects
no ip unreachables
no ip directed-broadcast
no ip route-cache
interface VLAN2
ip address link2.address 255.255.255.0
no ip redirects
no ip unreachables
no ip directed-broadcast
no ip route-cache
VLAN port binding
interface FastEthernet0/20
description VLAN1 LAN
keepalive 10
switchport access vlan 1
no fair-queue
no cdp enable
best of luck
hari
interface FastEthernet0/21
description VLAN2 LAN
keepalive 10
switchport access vlan 2
no fair-queue
no cdp enable
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