Unsolved
This post is more than 5 years old
5 Posts
0
3874
April 10th, 2012 14:00
Another VLAN Routing Post
I have a 100Mb Ethernet over Fiber connection. I have added the vlan 10 on both switches at each seperqte location. I assigned an IP address on each side in the same subnet. 10.1.1.1/24 and 10.1.1.2/24. I assigned my port to the same vlan 10 on my side. I can ping the 10.1.1.1 on the switch I am connected to using an IP address of 192.168.XXX.XXX without any problem using the IP Routing globally set. My understanding is that the two switches should talk automatically without any routing enabled between them as they are on the same vlan 10 and in the same subnet. I tried the configuration on both sides without routing enabled and with routing disabled. I also tried the config with both sides in general mode and trunk mode. I also tried it with just a member of the vlan 10 etc. I have no access into the ISP equipment on either side to see what may be happening to the packets. My question would then be does the Ethernet ports on both ISP devices require to be in the same VLAN as it would in intervlan routing? Thank you for your responses.


DELL-Willy M
802 Posts
1
April 10th, 2012 16:00
Vlans communicate at Layer 2 of the OSI model.
Layer 2 = Switch
Layer 3 = Router
When you put an IP on the interface that is connecting to the other device it essentially turns that into a Routed interface. When you have both devices set up where you are routing between each other you would need to enable vlan routing on both devices.
If you have your vlan and you client devices all connected on a switch level (connected with Trunk) then you would not need vlan routing enable to communicate between devices on the same vlan.
Here is some example commands:
console# configure
console(config)#ip routing
console(config)# interface vlan 10
console(config-if-vlan10)# ip address 10.0.0.1 255.255.255.0
console(config-if-vlan10)# routing (Enables routing for the specific vlan)
console(config-if-vlan10)# exit
console(config)# interface ethernet 1/g3
console(config-if-1/g3)# switchport access vlan 10
console(config-if-1/g3)# exit
console(config)# ip route 11.0.0.0 255.255.255.0 10.0.0.5
console(config)# exit
console# show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
C 10.0.0.0/24 [0/0] directly connected, vlan 10
S 11.0.0.0/24 [1/0] via 10.0.0.5, vlan 10
or you can enable from the VLAN Database mode:
console(config)# ip routing
console(config)# interface vlan 10
console(config-if-vlan100)# ip address 172.16.100.1 /24
console(config-if-vlan100)# exit
console(config)# vlan database
console(config-vlan)# vlan routing 10
console(config-vlan)# end
Show IP Interface command reference:
console# show ip interface
Management Interface:
IP Address..................................... 192.168.2.1
Subnet Mask.................................... 255.255.255.0
Default Gateway................................ 0.0.0.0
Burned In MAC Address.......................... 00FC.E390.0000
Network Configuration Protocol Current......... None
Management VLAN ID............................. 1
Routing Interfaces:
Netdir Multi
Interface IP Address IP Mask Bcast CastFwd
---------- --------------- --------------- -------- --------
vlan 10 172.16.0.1 255.255.0.0 Disable Disable
Hope this helps,
Keep us updated
sneezzy
5 Posts
0
April 11th, 2012 09:00
Here is my current config on both side of the Ethernet over Fiber Span
---------- Near Side -------------
show run
!Current Configuration:
!System Description "PowerConnect 6248P, 3.3.3.3, VxWorks 6.5"
!System Software Version 3.3.3.3
!Cut-through mode is configured as disabled
!
configure
vlan database
vlan 10
vlan routing 10 1
vlan association subnet 10.1.1.0 255.255.255.0 10
exit
stack
member 1 5
exit
ip address 192.168.200.230 255.255.252.0
ip default-gateway 192.168.200.81
ip routing
interface vlan 10
routing
ip address 10.1.1.1 255.255.255.0
exit
!
interface ethernet 1/g48
switchport mode general
switchport general acceptable-frame-type tagged-only
switchport general allowed vlan add 10
exit
exit
console#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
C 10.1.1.0/24 [0/1] directly connected, vlan 10
console#ping 10.1.1.2
Pinging 10.1.1.2 with 0 bytes of data:
----10.1.1.2 PING statistics----
4 packets transmitted, 0 packets received, 100% packet loss
round-trip (msec) min/avg/max = <10/<10/<10
console#ping 10.1.1.2 1
Pinging 10.1.1.1 with 0 bytes of data:
Reply From 10.1.1.1: icmp_seq = 0. time <10 msec.
Reply From 10.1.1.1: icmp_seq = 1. time <10 msec.
Reply From 10.1.1.1: icmp_seq = 2. time <10 msec.
Reply From 10.1.1.1: icmp_seq = 3. time <10 msec.
----10.1.1.1 PING statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (msec) min/avg/max = <10/<10/<10
------------- FAR SIDE ---------------------
console#show run
!Current Configuration:
!System Description "Powerconnect 6248P, 3.2.1.3, VxWorks 6.5"
!System Software Version 3.2.1.3
!Cut-through mode is configured as disabled
!
configure
vlan database
vlan 10
vlan routing 10 1
vlan association subnet 10.1.1.0 255.255.255.0 10
exit
stack
member 1 5
member 2 5
member 3 5
member 4 2
exit
ip address 192.168.20.33 255.255.255.0
ip default-gateway 192.168.20.1
ip routing
interface vlan 10routing
ip address 10.1.1.2 255.255.255.0
exit
monitor session 1 destination interface 4/g26
monitor session 1 source interface 4/g48
monitor session 1 mode
!
interface ethernet 4/g30
description 'Fiber'
switchport mode general
switchport general acceptable-frame-type tagged-only
switchport general allowed vlan add 10
exit
exit
console#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
C 10.1.1.0/24 [0/1] directly connected, vlan 10
console#ping 10.1.1.1
Pinging 10.1.1.1 with 0 bytes of data:
----10.1.1.1 PING statistics----
4 packets transmitted, 0 packets received, 100% packet loss
round-trip (msec) min/avg/max = <10/<10/<10
console#ping 10.1.1.1 2
Pinging 10.1.1.2 with 0 bytes of data:
Reply From 10.1.1.2: icmp_seq = 0. time <10 msec.
Reply From 10.1.1.2: icmp_seq = 1. time <10 msec.
Reply From 10.1.1.2: icmp_seq = 2. time <10 msec.
Reply From 10.1.1.2: icmp_seq = 3. time <10 msec.
----10.1.1.2 PING statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (msec) min/avg/max = <10/<10/<10
sneezzy
5 Posts
1
April 11th, 2012 10:00
I found that this ccommand was not required so I did a "no switchport general acceptable-frame-type tagged-only"
Thanks for the help.