Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLAN routing problem.

Status
Not open for further replies.
Jan 16, 2003
60
US
I am currently testing in the lab a new configuration I am proposing for my network. I cannot get this to work for the life of me, and I do not know why. Here is the scenario, and any help would be greatly appreciated.

I have 2 Cisco 2950T switches w/Gigabit uplinks. One cisco 3750 Gigabit Layer 2/3 Switch Router. They are connected in star fashion with the 3750 being the center of the star.

I have defined 3 VLANS (1,10,20).
VLAN10 = 192.168.2.X
VLAN20 = 192.168.3.X
VLAN1 = 192.168.1.X

I have the 2950's set to 802.1Q trunking to the 3750. The 3750 has IP routing enabled. I have created two additional VLAN interfaces for the 3750. Native VLAN for the switches is VLAN1. Forwarding all VLAN traffic.

Now I have three test computers. Two are plugged into different 2950's, and one is plugged into the 3750. From the switches CLI I can ping any ip address. From the actual computers themselves I am having a problem.

Computer 1 = VLAN1 (3750)
Computer 2 = VLAN10 (2950)
Computer 3 = VLAN20 (2950)

Computer 2 & 3 can ping any address on VLAN10 & VLAN20. But nothing on VLAN1. The computer on VLAN1 cannot ping anything on either VLAN10 & VLAN20. So there is a problem with routing between a member of VLAN1 & any other VLAN. Please help me figure this out.

Here are the sample configuration abbreviated.

3750
----
interface GigabitEthernet1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
!
interface Vlan1
ip address 192.168.1.2 255.255.255.0
no ip mroute-cache
!
interface Vlan10
ip address 192.168.2.2 255.255.255.0
!
interface Vlan20
ip address 192.168.3.2 255.255.255.0
!

SHOW IP ROUTE information
-----
Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, Vlan1
C 192.168.2.0/24 is directly connected, Vlan10
C 192.168.3.0/24 is directly connected, Vlan20

2950 Configuration
------
!
interface FastEthernet0/1
switchport access vlan 10
no ip address
!
interface GigabitEthernet0/2
switchport mode trunk
no ip address
!
interface Vlan1
ip address 192.168.1.19 255.255.255.0
no ip route-cache
!

 
Did you try to set the trunking port (gigabit) to be a member of the VLAN's you want to route with the trunking port??

___________________________________
--... ...--, Eric.
 
By default it is a member of VLAN1. As far as I know you cannot make a port a member of multiple VLANs.
 
For testing purposes, I made the computer on the 3750 switch a member of VLAN10 or VLAN20, and it communicated perfectly. It seems like the trunks native vlan being 1 will not route between them, and VLAN10 / 20.

The solution would to not use VLAN1. Any reason why it will not do this?
 
You can make a port a member of more than one VLAN. Add this to your gigabit switch uplink:

switchport trunk allowed VLAN 1,10,20

___________________________________
--... ...--, Eric.
 
make sure that the other switches are all agreeing on who is the native vlan

switchport trunk native xxxx
 
That worked.

Making sure that both sides had the same VLAN solved the problem. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top