06-10-2018 08:53 AM - edited 03-08-2019 03:19 PM
Hi, i have two switch connected each other with a trunk. the first switch has ip 192.168.1.11 and the secondo 192.168.1.13.
The first switch has two trunk, one connected to the core and one connected to the second switch. The second switch has only one trunk connected to the first switch
CORE-----Switch1-----Switch2
the core switch has ip 192.168.1.1
the config of the first switch is the following:
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname switch11
!
enable password 7 xxxxxxxxxxxxx
!
username xxxxx privilege 15 password 7 xxxxxxxxxxxx
no aaa new-model
clock timezone ITALY 1
clock summer-time ITALY recurring last Sun Mar 2:00 last Sun Oct 3:00
ip subnet-zero
!
no ip domain-lookup
!
!
!
no file verify auto
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
spanning-tree portfast
!
...
...
...
!
interface FastEthernet0/46
switchport voice vlan 5
spanning-tree portfast
!
interface FastEthernet0/47
switchport voice vlan 5
spanning-tree portfast
!
interface FastEthernet0/48
switchport voice vlan 5
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode trunk
switchport nonegotiate
!
interface GigabitEthernet0/2
switchport mode trunk
switchport nonegotiate
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan2
ip address 192.168.1.11 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.1.1
ip http server
snmp-server community public RO
!
control-plane
!
!
line con 0
logging synchronous
login local
line vty 0 4
logging synchronous
login local
line vty 5 15
logging synchronous
login local
!
end
The second switch has the below config:
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname switch13
!
boot-start-marker
boot-end-marker
!
enable password xxxxxxxxx
!
username administrator privilege 15 secret 5 xxxxxxxxxxxxxxxxx
username xxxxxxxxx privilege 15 password 0 xxxxxxxxxxx
!
!
no aaa new-model
clock timezone ITALY 1
clock summer-time ITALY recurring last Sun Mar 2:00 last Sun Oct 3:00
system mtu routing 1500
!
!
no ip domain-lookup
!
!
crypto pki trustpoint TP-self-signed-3343221248
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3343221248
revocation-check none
rsakeypair TP-self-signed-3343221248
!
!
crypto pki certificate chain TP-self-signed-3343221248
certificate self-signed 01
30820248 308201B1 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
xxxxxxxxxxxxxxxxxxxxxxx
quit
!
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
interface FastEthernet0/1
switchport mode access
switchport voice vlan 5
spanning-tree portfast
!
..............
............
.............
!
interface FastEthernet0/24
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode trunk
switchport nonegotiate
!
interface GigabitEthernet0/2
switchport mode trunk
switchport nonegotiate
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan2
ip address 192.168.1.13 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.1.1
ip http server
ip http secure-server
snmp-server community public RO
!
line con 0
logging synchronous
login local
line vty 0 4
logging synchronous
login local
line vty 5 15
logging synchronous
login local
!
end
the two switch are connected through one gigabit cable connect from gi0/2 to gi0/2
if i run show cdp neigh in the first switch i can see the second switch but i'm unable to ping or telnet to the second switch from the coreswitch or from the first switch. no ping. no telnet
whats' wrong.
Can you help me?
regards
Solved! Go to Solution.
06-10-2018 12:08 PM
06-10-2018 12:08 PM
06-10-2018 02:08 PM
Hi,
Are both interface g0/2 in up and up mode?
Also, can you add these 2 commands to both switches and test again?
no switchport nonegotiate
switchport trunk encapsulation dot1q
Depending on the IOS, the second command maybe default.
HTH
06-10-2018 10:25 PM - edited 06-10-2018 10:27 PM
Hi all and thanks, today i'll post show VLAN.
I don't think a problem about Trunk encap or other because all devices attached ti the second switch works and cani pass through the switch. The only problem is the ip management of the VLAN 2
06-10-2018 11:40 PM
the command "show vlan" gave me the solution. There is no vlan 2 configured so the interface vlan2 is down. thanks to all.
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