01-27-2016 10:32 AM - edited 03-08-2019 03:33 AM
I have a 1921, trying to setup port g0/1 as a trunk port to access our two vlans. Devices will have been tagged with clan id of 10. I assume that I am fundamentally missing something, because I can not set switchport mode trunk on g0/1.
Current configuration : 2785 bytes
!
! Last configuration change at 01:57:02 UTC Thu Jan 28 2016
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname c1921
!
boot-start-marker
boot system flash:c1900-universalk9-mz.SPA.154-3.M4.bin
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
!
!
!
ip dhcp excluded-address 10.0.10.1
ip dhcp excluded-address 10.0.20.1
!
ip dhcp pool LAN10
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 8.8.8.8
!
ip dhcp pool LAN20
network 10.0.20.0 255.255.255.0
default-router 10.0.20.1
dns-server 8.8.8.8
!
!
!
ip domain name tlf.com
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
cts logging verbose
!
!
license udi pid CISCO1921/K9 sn FTX151200G2
!
!
username jeffrey privilege 15 secret 5 $1$QaZy$DytGXhB7n8MplLSwxp8s70
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description WAN
ip address dhcp
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1/0
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1/1
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1/2
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1/3
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1/4
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1/5
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1/6
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface GigabitEthernet0/1/7
switchport access vlan 10
no ip address
spanning-tree portfast
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 10.0.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Vlan20
ip address 10.0.20.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 10 interface GigabitEthernet0/0 overload
!
!
!
access-list 10 permit 10.0.10.0 0.0.0.255
access-list 10 permit 10.0.20.0 0.0.0.255
access-list 10 permit 10.0.90.0 0.0.0.255
access-list 10 deny any
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end
01-27-2016 12:47 PM
The gi0/1 is a L3 interface and cannot be configured as a trunk port.
It is not like the gi0/1/x ports which are L2 not L3 ports.
I don't understand though because you have setup the vlans and the L3 vlan interfaces already.
Do you have a separate switch you want to connect using a trunk link ?
Jon
01-27-2016 05:38 PM
I would love to connect another switch using g0/1 as a trunk line. It will most likely go to a sphere cluster that will have a virtual switch passing different plan tags.
01-28-2016 03:21 AM
If you want to connect a trunk to gi0/1 then you need to use subinterfaces on the gi0/1 interface for the vlans/IP subnets you want to pass.
You can do this but are the vlans/IP subnets different ones than those already configured on your router ?
Jon
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide