cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2227
Views
0
Helpful
19
Replies

Vlan Configuration

dcgtechnologies
Level 1
Level 1

Hello, I am new to the forum and I am in the process configuring a VLAN from switch1 to switch2. The Vlan is connected to Switch 1 on port Gi1/0/1 and I had it configured with my old Cisco Aironet AP on port Gi1/0/24 and it worked great. But now I have bought a Cisco 3750X switch which we can call switch 2. I am putting my new Cisco Aironet AP on port Gi1/0/48 on Switch 2 and it is not working at all and from what I can see I am missing the port for the VLAN 2 I would need to add to get it to work properly. When I plug it back in to port Gi1/0/24 it works great as they are on the same switch, but when I go to port Gi1/0/48 on Switch 2 it does not work at all. Can someone please help me on the solution to this? I am thinking I might need to trunk the uplink ports but I am not sure as everything I have on VLAN1 works perfectly. Any ideas? Thank you.

19 Replies 19

Hi

If your AP connected to port G1/0/48 then that should have below config. If AP is not there, pls plug your PC to that port & make that port active prior to test.

 

int g1/0/48

description AP01

switchport mode access

switchport access vlan 2

spanning-tree portfast

 

If G1/1/1 of SW2 connected to SW1, then SW2 should have below configs

 

int g1/1/1

description Trunk to SW1

switchport mode trunk

 

With those config, please check it again

 

HTH

Rasika

Ok so here is the config I am shooting for

SW1 Port G1/0/1 has the Firewall with Vlan 1 and Vlan 2 (VLAN 2 hands out DHCP Addresses)

SW2 Port 1/0/48 - Physical port for AP using VLAN 2

Interconnect on SW1 (3750G) GigabitEthernet1/0/25
to Interconnect to SW2 (3750X) GigabitEthernet 1/1/1

Everything is working great currently no matter what I plug into SW2 Port 1/0/48 VLAN 1 only. VLAN 2 is not working at all. I have tried trunking that port it does not work at all. See the output from the trunking below for Switch 2:
interface GigabitEthernet1/0/48
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1-2
switchport mode trunk
!
interface GigabitEthernet1/1/1
!
interface GigabitEthernet1/1/2
!
interface GigabitEthernet1/1/3
!
interface GigabitEthernet1/1/4
!
interface TenGigabitEthernet1/1/1
!
interface TenGigabitEthernet1/1/2
!
interface Vlan1
ip address x.x.x.x
!
ip default-gateway x.x.x.x
ip http server
ip http secure-server
!
!
line con 0
line vty 0 4
password
login
line vty 5 15
password
login
!
ntp server
end

SW2#show interfaces GigabitEthernet 1/0/48 trunk

Port Mode Encapsulation Status Native vlan
Gi1/0/48 on 802.1q other 1

Port Vlans allowed on trunk
Gi1/0/48 none

Port Vlans allowed and active in management domain
Gi1/0/48 none

Output from trunking on Switch 1:

SW1#show interfaces GigabitEthernet 1/0/24 trunk

Port Mode Encapsulation Status Native vlan
Gi1/0/24 on 802.1q trunking 1

Port Vlans allowed on trunk
Gi1/0/24 1-2

Port Vlans allowed and active in management domain
Gi1/0/24 1-2
Port Vlans in spanning tree forwarding state and not pruned
Gi1/0/24 1-2

I am using the switchport command. What commands do I need to run to get the config above. I hope you and I are on the same page here :) thank you.

I think we are talking about two different things here. I am trying to trunk the port on SW1 Gi1/0/1 (Firewall connected to this port) to SW2 port Gi1/0/48 (AP is connected to this port) over SW1 Interconnect Port Gi1/0/25 to SW2 Interconnect Gi1/1/1. The default VLAN 1 is setup fine and is communicates just perfectly on both switches no matter what port I connect a device too. The VLAN 2 is not working at all on SW2, but works fine on Switch 1 on Port Gi1/0/24 which is trunked correctly. I have a trunk established on SW1, but SW2 port Gi1/0/48 is not configured for trunking. See output below for SW2 trunking:

 

SW2#show interfaces GigabitEthernet 1/0/48 trunk

Port Mode Encapsulation Status Native vlan
Gi1/0/48 on 802.1q other 1

Port Vlans allowed on trunk
Gi1/0/48 none

Port Vlans allowed and active in management domain
Gi1/0/48 none

Port Vlans in spanning tree forwarding state and not pruned

 

See output below for SW1 trunking for port 1/0/24:

SW1#show interfaces GigabitEthernet 1/0/24 trunk

Port Mode Encapsulation Status Native vlan
Gi1/0/24 on 802.1q trunking 1

Port Vlans allowed on trunk
Gi1/0/24 1-2

Port Vlans allowed and active in management domain
Gi1/0/24 1-2

Port Vlans in spanning tree forwarding state and not pruned
Gi1/0/24 1-2

 

When I get SW2 port Gi1/0/48 configured for VLAN 2 correctly I will be eliminating SW1 Port GI1/0/24 from VLAN2 and the trunk. How can I fix this and what are the commands to achieve this? Thank you all.

G1/0/24 of SW1 has right trunk port configuration, apply the same config on G1/0/25 of SW1 and G1/1/1 on SW2

 

G1/0/48 on SW2 has to be access port (if AP is local mode). 

 

Hope that clears

 

Rasika

Perfect! That is awesome! Works well!

Review Cisco Networking products for a $25 gift card