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