cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1011
Views
5
Helpful
1
Replies

Cisco 2960 trunk configuration

DaivaPrasad3147
Level 1
Level 1

Hii, 

Required help in configuring the trunk mode in cisco switch 2960. 

In my firewall I have created vlan 10,20 30 and 40. 

Vlan 10 is the native vlan. 

In my  firewall all ports I have made vlan 10 as native and all allowed vlans.

Now from one of the firewall port I have connected to cisco 2960 switch port. 

 

In switch there was default vlan 1 and it was in access mode. 

 

I have shutdown the interface vlan 1 by entering below commands.

Interface vlan 1 

Shutdown 

Exit. 

 

 

And then I have entered below commands. 

Interface range gigabit Ethernet 1/0/1-48 

Switchport mode trunk

Switchport trunk native vlan 10 

Switchport trunk allowed vlan all. 

Exit. 

 

 

Nd then for Checking I entered. 

Sh vlan 

It was showing only vlan 1. There was no vlan 10.

And then I entered  

Sh Interface trunk 

Then it was showing vlan 10 as native vlan.

 

I tested by connecting the laptop from one of the switch port. 

I was getting apipa ip.

I was not able to access internet. 

 

Should I create 

Int vlan 10 

Ip x.x.x.x x.x.x.x 

Int vlan 20 

Ip x.x.x.x x.x.x.x 

Int vlan 30 

Ip x.x.x.x x.x.x.x 

In switch ?? 

 

And then should I try with 

Interface range gigabit Ethernet 1/0/1-48 

 

Switchport mode trunk

 

Switchport trunk native vlan 10 

 

Switchport trunk allowed vlan all. 

 

Exit. 

 

How exactly. 

 

My concern is that I want to create trunk native vlan 10 and allow all remaining vlans. and wt ever the devices connecting to that switch like ap nd all should get native vlan 10 ip. 

 

So kindly suggest what exact commands I need to use in switch nd I should be able to internet and I should be getting native vlan 10 ip

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Reply 1

amikat
Level 7
Level 7

Hi,

You do not need to create "interface vlan x" but you should create vlans instead, ie:

vlan 10

exit

vlan 20

exit

vlan 30

exit

vlan 40

exit

copy run start

I would expect that you configure trunk port only towards FW, the rest may perhaps be configured as access ports. With your configuration (range & trunk, ie. all trunks) all the devices connected can operate within vlan 10 only if they do not support tagging.

Best regards,

Antonin

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