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

Trunk and Data vlan configuration between cisco 2960 and SG300-20

Ayub
Level 1
Level 1

Hi All, 

I have one 2960 and one SG-300-20 switch: 

- Need to configure trunk ports between them

- Need to configure managment vlan (10) and svi for management vlan on SG-300-20

- Need to configure data vlan (20) and svi for data vlan on cisco SG-300-20 

 

I tried alot but didnt work for me. Please share sample configuration. 

1 Reply 1

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Try the below config. The trunk link will be between the first port on both switches. I have configured a DHCP pool for VLAN10, so that if you connect a device to Gi1/0/2 on the 2960 you should pick up a lease in the 192.168.10.0/24 subnet.

 

SG300:

!
set system mode router
!
vlan 10
vlan 20
!
int vlan 10
  ip address 192.168.10.254 255.255.255.0
!
int vlan 20
  ip address 192.168.20.254 255.255.255.0
!
int gi0
  description "TRUNK TO 2960"
  switchport trunk allowed vlan add 10,20
!
ip dhcp server
ip dhcp pool network DHCP_POOL10
  address 192.168.10.0 /24
  default-router 192.168.10.254
  dns-server 1.1.1.1
!
ip dhcp excluded-address 192.168.10.254
!

2960:

!
vlan 10
vlan 20
!
int gi1/0/1
desc TRUNK_TO_SG300 switchport mode trunk switchport trunk allowed vlan add 10,20 ! int gi1/0/2 switchport mode access switchport access vlan 10 spanning-tree portfast !

 

cheers,

Seb.

Review Cisco Networking for a $25 gift card