Unsolved
This post is more than 5 years old
1 Rookie
•
14 Posts
0
33886
January 30th, 2006 18:00
Communication between VLANs
Hi,
I'm having diffculty trying to figure out communication between vlans. I've tried the White Paper examples but without much luck.
As a test I have 1 Powerconnect 5324 connected to one 6024 router.
Vlan setting are as followed on switch5324:
Vlan1 is set to 192.168.0.0 subnet
Vlan2 is set to 192.168.2.0 subnet
DHCP assigning is fine. I can ping from host 192.168.0.1 to host 192.168.2.1, however I am unable to do the opposite. I would like to configure it such that hosts on VLAN 1 can communicate with hosts on VLAN 2 and vice versa.
What am I doing wrong? I have followed the examples from articles on Vlan based segmentation and Vlan routing whitepaper, even though they are not entirely based on the switchs that I have.
Is there any other better examples?
0 events found
No Events found!


DELL-Cuong N.
1K Posts
0
January 31st, 2006 17:00
Arion
1 Rookie
•
14 Posts
0
January 31st, 2006 19:00
-----------------------------
switchport mode trunk
exit
vlan database
vlan 2-4
exit
interface range ethernet g(1-3)
switchport trunk allowed vlan add 2
exit
interface range ethernet g(1-3)
switchport trunk allowed vlan add 3
exit
interface range ethernet g(1-3)
switchport trunk allowed vlan add 4
exit
interface vlan 2
name Servers
exit
interface vlan 3
name "Engineering/Art Team"
exit
interface vlan 4
name IT
exit
interface vlan 1
ip address 192.168.0.1 255.255.255.0
exit
interface vlan 2
ip address 192.168.1.1 255.255.255.0
exit
interface vlan 3
ip address 192.168.2.1 255.255.255.0
exit
interface vlan 4
ip address 192.168.3.1 255.255.255.0
exit
ip route 192.168.0.0 255.255.255.0 192.168.0.2
ip route 192.168.0.0 255.255.255.0 192.168.2.2
ip route 192.168.1.0 255.255.255.0 192.168.1.2
ip route 192.168.2.0 255.255.255.0 192.168.2.2
ip route 192.168.3.0 255.255.255.0 192.168.3.2
ip dhcp relay address 192.168.0.2
ip dhcp relay enable
OOB host Configuration
-----------------------------
ip address 192.168.0.210 255.255.255.0
exit
interface out-of-band-eth 1
ip default-gateway 192.168.0.1
exit
interface ethernet g1
switchport mode trunk
exit
vlan database
vlan 2-4
exit
interface ethernet g1
switchport trunk allowed vlan add 2
exit
interface range ethernet g(9-20)
switchport access vlan 3
exit
interface ethernet g1
switchport trunk allowed vlan add 3
exit
interface ethernet g1
switchport trunk allowed vlan add 4
exit
interface vlan 2
name Servers
exit
interface vlan 3
More: , Quit: q, One line:
[Kname "Engineering/Art Team"
exit
interface vlan 4
name IT
exit
interface vlan 1
ip address 192.168.0.203 255.255.255.0
exit
interface vlan 2
ip address 192.168.1.1 255.255.255.0
exit
interface vlan 3
ip address 192.168.2.1 255.255.255.0
exit
interface vlan 4
ip address 192.168.3.1 255.255.255.0
exit
ip default-gateway 192.168.0.1
snmp-server community private rw
ip domain-name i3dimensions.com
ip name-server 192.168.0.2
Arion
1 Rookie
•
14 Posts
0
January 31st, 2006 19:00
DELL-Cuong N.
1K Posts
0
January 31st, 2006 19:00
DELL-Cuong N.
1K Posts
0
January 31st, 2006 20:00
Just a clarification. You said one of your client is connected to port 8 on the 5324 and the other to port 17. You said the one connected to port 8 is VLAN 3 and the one to port 17 is VLAN 1? According to your config, port 9-20 belongs to VLAN 3 (access mode) and port 8 is not configured so it must be the default access mode member of only VLAN 1.
Also the "default gateway" configuration on the 5324 doesn't do what you think it might. The 5324 is an L2 switch. It doesn't do any routing at all so the "default gateway" configuration only affects the management interface. It is used only when the management application on the switch attempts to send a packet. It is not used to cause packets not meant for management inteface to be "routed" to particular interface.
VLAN 1 is a special "management VLAN" and should probably not be used for non-management traffic. Probably you might want to assign a different VLAN (other then 1) for your production traffic. VLAN 1 should be used only to access the management interface on the switch.
So knowing that the 5324 does not do routing, if port 8 and 17 are not on the same VLAN then the two PCs on those ports would not be able to communicate with each others. The L2 switch will not forward across VLANs.
If you connected your PCs on the 6024 then you could use the 6024 L3 (routing) feature to route between those VLAN and the 6024 would change the VLAN tags when it route the packets between the two VLANs (again don't use VLAN 1 for production traffic).
Cuong.
DELL-Cuong N.
1K Posts
0
February 1st, 2006 16:00
Arion
1 Rookie
•
14 Posts
0
February 1st, 2006 16:00
Hi,
You said I can route between the two vlans if I were to "connect the PC's onto the "6024" and use the L3 routing. So does that mean if I have two 5324 switches that are connected to the 6024, one switch is Vlan 2 and the other switch is Vlan 3, if I were to connect PC's on each switch they are not able to communicate with eachother (Vlan 2 to Vlan 3), even though they are connected to the 6024 which does the routing? Does that mean inorder for me to have the two vlans to communicate, the PC's will have to be DIRECTLY connected to the 6024 rather than the switches?
DELL-Cuong N.
1K Posts
0
February 1st, 2006 16:00
BTW, you should NOT use VLAN 1 for user traffic. VLAN 1 is used only for management traffic. You might want to change your setup to use another VLAN instead of 1.
Cuong.
Arion
1 Rookie
•
14 Posts
0
February 1st, 2006 16:00
Arion
1 Rookie
•
14 Posts
0
February 2nd, 2006 19:00
Hi Cuong,
I'm sorry, but I'm still can't get the two PC's to communicate.
Here is my current config:
Router Configuration
-----------------------------
interface range ethernet g(1-3)
switchport mode trunk
exit
vlan database
vlan 2-4
exit
interface range ethernet g(1-3)
switchport trunk allowed vlan add 2
exit
interface range ethernet g(1-3)
switchport trunk allowed vlan add 3
exit
interface range ethernet g(1-3)
switchport trunk allowed vlan add 4
exit
interface vlan 2
name Servers
[0mMore: , Quit: q, One line:
exit
interface vlan 3
name "Engineering/Art Team"
exit
interface vlan 4
name IT
exit
interface vlan 1
ip address 192.168.0.1 255.255.255.0
exit
interface vlan 2
ip address 192.168.1.1 255.255.255.0
exit
interface vlan 3
ip address 192.168.2.1 255.255.255.0
exit
interface vlan 4
ip address 192.168.3.1 255.255.255.0
exit
ip route 192.168.0.0 255.255.255.0 192.168.0.2
ip route 192.168.0.0 255.255.255.0 192.168.2.2
ip route 192.168.1.0 255.255.255.0 192.168.1.2
[0mMore: , Quit: q, One line:
ip route 192.168.2.0 255.255.255.0 192.168.2.2
ip route 192.168.3.0 255.255.255.0 192.168.3.2
ip dhcp relay address 192.168.0.2
ip dhcp relay enable
5324A Switch Configuration
-----------------------------
interface ethernet g1
switchport mode trunk
exit
vlan database
vlan 2-4
exit
interface ethernet g1
switchport trunk allowed vlan add 2
exit
interface range ethernet g(9-20)
switchport access vlan 3
exit
interface ethernet g1
switchport trunk allowed vlan add 3
exit
interface ethernet g1
switchport trunk allowed vlan add 4
exit
interface vlan 2
name Servers
exit
interface vlan 3
More: , Quit: q, One line:
[Kname "Engineering/Art Team"
exit
interface vlan 4
name IT
exit
interface vlan 1
ip address 192.168.0.203 255.255.255.0
exit
interface vlan 2
ip address 192.168.1.1 255.255.255.0
exit
interface vlan 3
ip address 192.168.2.1 255.255.255.0
exit
interface vlan 4
ip address 192.168.3.1 255.255.255.0
exit
ip default-gateway 192.168.0.1
ip name-server 192.168.0.2
More: , Quit: q, One line:
[Kconsole# show run
interface ethernet g1
switchport mode trunk
exit
vlan database
vlan 2-5
exit
interface ethernet g1
switchport trunk allowed vlan add 2
exit
interface ethernet g1
switchport trunk allowed vlan add 3
exit
interface range ethernet g(9-20)
switchport access vlan 4
exit
interface ethernet g1
switchport trunk allowed vlan add 4
exit
interface vlan 2
name Network
exit
interface vlan 3
More: , Quit: q, One line:
[Kname Servers
exit
interface vlan 4
name "Engineering/Art Team"
exit
interface vlan 5
name IT
exit
interface vlan 1
ip address 192.168.5.203 255.255.255.0
exit
interface vlan 2
ip address 192.168.0.1 255.255.255.0
exit
interface vlan 3
ip address 192.168.1.1 255.255.255.0
exit
interface vlan 4
ip address 192.168.2.1 255.255.255.0
exit
interface vlan 5
ip address 192.168.3.1 255.255.255.0
More: , Quit: q, One line:
[Kexit
ip default-gateway 192.168.5.1
ip name-server 192.168.0.2
5324B Switch Configuration
--------------------------------------
interface ethernet g1
switchport mode trunk
exit
interface ethernet g2
switchport mode trunk
exit
vlan database
vlan 2-5
exit
interface range ethernet g(3-22)
switchport access vlan 2
exit
interface range ethernet g(1-2)
switchport trunk allowed vlan add 2
exit
interface range ethernet g(1-2)
switchport trunk allowed vlan add 3
exit
interface range ethernet g(1-2)
switchport trunk allowed vlan add 4
exit
interface vlan 2
More: , Quit: q, One line:
[Kname Network
exit
interface vlan 3
name Servers
exit
interface vlan 4
name "Engineering/Art Team"
exit
interface vlan 5
name IT
exit
interface vlan 1
ip address 192.168.5.202 255.255.255.0
exit
interface vlan 2
ip address 192.168.0.1 255.255.255.0
exit
interface vlan 3
ip address 192.168.1.1 255.255.255.0
exit
interface vlan 4
ip address 192.168.2.1 255.255.255.0
More: , Quit: q, One line:
[Kexit
interface vlan 5
ip address 192.168.3.1 255.255.255.0
exit
ip default-gateway 192.168.5.1
ip name-server 192.168.0.2 192.168.0.5
console#
I have PC1 connected to port G9 of 5324A which is on VLAN4 and PC2 connected to port G7 on 5324B on VLAN2. What am I configuring wrong on the Router, that is not allowing them to communicate?
DELL-Cuong N.
1K Posts
0
February 3rd, 2006 14:00
Hi Arion,
I must have confused you with my earlier answers - sorry about that. So this time let me be a bit more precise:
I'm going to give you a more detail example below but first here is the routing algorithm in summary assuming you are trying to route a packet to IP address A:
Ok so let's go back to your simplest scenario and use a single 6024 and a single 5324 and two PCs:
Ok I hope this is a bit clearer. Let me know if this helps any. I can also recommend some additional books or links to more information if you like.
Cuong.
Arion
1 Rookie
•
14 Posts
0
February 3rd, 2006 17:00
DELL-Cuong N.
1K Posts
0
February 3rd, 2006 18:00
Hi Arion, you are correct, once you set the mode to trunk then the other options (accept tag only and pvid set to 4095) are basically done automatically and once you set the mode to access then the other options (allow untag and pvid set to the same as the port VLAN membership which may only be one VLAN) are also automatic. Normally when I configure the switch I just do everything using general mode so that I get the configurations exactly as I want it. The trunk and access modes are really only convenient but if you know what you want then using general mode is actually more flexible.
There are several books that would help:
Good luck,
Cuong.