cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
435
Views
0
Helpful
1
Replies

Problem with VLAN

johnross400
Level 1
Level 1

Two Switches, SW1 & SW2, are connected through their F0/10 interfaces and two routers are connected to each Switch ? using F0/24 interfaces.

I am trying to ping from R1 to R2 but I can?t get it to work!

Switch2#

Interface FastEthernet0/10

switchport trunk encapsulation dot1q

switchport trunk native vlan 44

switchport trunk allowed vlan 7,44

switchport trunk

Interface FastEthernet0/7

Description Engineering

Switchport access vlan 7

Switchport mode access

Interface FastEthernet0/24

Description Sales

No Switchport

Ip address 172.16.129.1 255.255.255.0

Interface Vlan44

Ip address 172.16.128.1 255.255.255.0

Switch1#

Interface FastEthernet0/10

switchport trunk encapsulation dot1q

switchport trunk native vlan 44

switchport trunk allowed vlan 7,44

switchport trunk

Interface FastEthernet0/7

Description Engineering

Switchport access vlan 7

Switchport mode access

Interface FastEthernet0/24

Description Sales

No Switchport

Ip address 172.16.129.5 255.255.255.0

Interface Vlan44

Ip address 172.16.128.2 255.255.255.0

Router1#

Interface FastEthernet0/0

Ip address 172.16.129.4 255.255.255.0

Router2#

Interface FastEthernet0/0

Ip address 172.16.129.3 255.255.255.0

Can someone please suggest how I can do this. If I use the switchport access command on the F0/24 interfaces I can then use VLAN44, however I cannot then give this port an ip address.

1 Reply 1

Richard Burts
Hall of Fame
Hall of Fame

John

I am not clear from your posting whether you want the switches to process as layer 2 switches or as layer 3 switches. And what you have seems to be a combination of both.

Both switches declare VLAN 44 as the management VLAN and configure addresses in that VLAN and trunk that VLAN so that part is good. The router configuration is done on the physical interface and there is no trunking so it can not access any other VLAN and can not do inter-VLAN routing. And the switch configures Fa0/24 as a routed port not a VLAN port. So the router ports are not part of VLANs and are not carried over the trunk.

There is a VLAN 7 configured but there is no VLAN interface for it on the switches and no ability to route for it on the routers. So something needs to be done if the devices in that VLAN need to communicate with anything outside that VLAN.

It seems to me that there are several possible solutions:

- you can make the switch to router connection into a trunk, enable trunking on the router, and do inter-VLAN routing on the routers. (let the switches operate as layer 2 switches)

- you can make the switch ports connecting to the routers access ports, configure a VLAN interface for that VLAN and do inter-VLAN routing on the switches. (Let the switches operate as layer 3 switches)

Either approach can work, but it needs to be consistently implemented.

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card