VLAN help



Hi there,

I'm studying for my CCNA and am messing around with a few different
VLAN scenarios.


Up until now, we have been taught to use different subnets for each
vlan.


e.g.
VLAN2 > 192.168.2.x
VLAN3 > 192.168.3.x


However, I would like to see what happens when you have different
VLAN's on the same subnet.


So, I've got two hosts;


Host A is on VLAN 2 and has an IP address 192.168.4.3/24
Host B is on VLAN 3 and has an IP address 192.168.4.20/24


I've configured the ports on the 2950 to enable static VLAN's for the
two ports. Up until now, there is no problem...Host A can ping other
hosts that have been assigned onto VLAN 2 and Host B can ping other
hosts on VLAN 3. Neither can ping each other.


But, I'd like to configure inter-VLAN routing. Is this not possible
because they are on the same subnet?


I've connected and configured a trunk link between the 2950 switch and
a 2600 router, and set;


2600(config)# interface f0/1
2600(config-if)# no ip address
2600(config)# no shut
2600(config)# interface f0/1.2
2600(config-subif)# encapsulation dot1q 2
2600(config-subif)# ip address 192.168.4.1 255.255.255.0
2600(config-subif)# exit
2600(config)# interface f0/1.3
2600(config-subif)# encap dot1q 3
2600(config-subif)# ip address 192.168.4.19 255.255.255.0


However, Host A can ping both 192.168.4.1 and .4.10, whereas Host B can

ping neither addresses.


Is it not possible to enable inter-vlan routing this way, or am I doing

something wrong? I assume the problem is because you are assigning two
subinterfaces on the same subnet on the router, but I thought that with

the dot1q x command you were speciyfing that only VLAN x could
communicate with it?


Would appreciate an explanation!


Thanks,
Dilan

.



Relevant Pages

  • Re: Some theory about name resolution
    ... The reason you can see other workstations on the same VLAN is becuase you ... resolves the address by doing a broadcast on your subnet looking for this ... If I ping a workstation name ...
    (microsoft.public.win2000.networking)
  • carp+pfsync+freevrrpd+jail
    ... Using carp and pfsync i have made the redundand firewall ... vlan 101 vlandev em0" ... And when host2 is ths slave and i'm starting to ping carp0 address - no traffic appears on master host - that means that the local carp interface responding to my packets.. ...
    (freebsd-stable)
  • Re: Unable to PING a single host from ISA 2006 Server
    ... You're using netmon to monitor traffic at the ISA itself? ... there is no PING request leaving the ISA server. ... When I PING other host on same VLAN as ISA and F5, I am able to capture both ...
    (microsoft.public.isa)
  • Re: DHCP Client roaming issues
    ... A "release/renew after it is moved" doesn't work. ... The renew process takes longer and the host presents it's old ip address. ... Since the client checks with the DHCP Server ... > ip-address from our dhcp server in the server vlan. ...
    (microsoft.public.windows.server.networking)
  • Re: Configure InterVLAN
    ... server on VLAN 143, from a host on VLAN 142. ... The host determines that the server is not on the same network by ... forwards it over the trunk to the router. ... The router receives the packet, strips of the VLAN tag, looks at its ...
    (comp.dcom.sys.cisco)