summerdike
Instructor
I have two operational Vlan's on cisco switch (Vlan1 and Vlan23). The 3550 switch is connected to Router (PC router) that has another network connected including internet.
I can ping from hosts between Vlan's. So inter-vlan routing is working.
I can not ping from Vlan23-host to internet (& rest of network).Ping 172.16.2.1 does not work.
I CAN ping from host on vlan1 to the whole network.
What is wrong with configuration?
Ip address of switch is 172.16.2.2/24
Ip address of router to rest of network is 172.16.2.1/24
Configuration of switch (capture):
demoswitch1#show running-config
Building configuration...
Current configuration : 3336 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service sequence-numbers
!
hostname demoswitch1
!
!
ip subnet-zero
ip routing
!
ip domain-name eon.local
ip name-server 172.30.0.1
ip name-server 172.30.0.3
!
vmps server 172.16.2.2 primary
spanning-tree mode pvst
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport access vlan 21
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport access vlan dynamic
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
spanning-tree portfast
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport access vlan 2
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
spanning-tree portfast
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport mode dynamic desirable
!
interface FastEthernet0/11
switchport access vlan 23
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 23
switchport trunk encapsulation dot1q
switchport mode access
switchport voice vlan 2
spanning-tree portfast
!
interface FastEthernet0/13
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport mode dynamic desirable
switchport voice vlan 2
spanning-tree portfast
!
interface FastEthernet0/19
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport mode dynamic desirable
switchport voice vlan 1
spanning-tree portfast
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport trunk pruning vlan none
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport trunk allowed vlan 1,1001-1005
switchport trunk pruning vlan none
switchport mode dynamic desirable
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
ip address 172.16.2.2 255.255.255.0
!
interface Vlan2
no ip address
!
interface Vlan21
ip address 172.17.0.1 255.255.0.0
!
interface Vlan22
no ip address
!
interface Vlan23
ip address 172.19.0.1 255.255.0.0
!
interface Vlan24
no ip address
!
interface Vlan26
no ip address
!
router rip
network 172.16.0.0
network 172.19.0.0
network 172.30.0.0
network 172.32.0.0
network 192.168.1.0
!
ip default-gateway 172.16.2.1
ip classless
ip route 0.0.0.0 0.0.0.0 172.30.0.1
ip route 0.0.0.0 0.0.0.0 172.16.2.1
ip http server
!
!
!
end
______________________________
"Reload and Restart Requested
System Initiated"
I can ping from hosts between Vlan's. So inter-vlan routing is working.
I can not ping from Vlan23-host to internet (& rest of network).Ping 172.16.2.1 does not work.
I CAN ping from host on vlan1 to the whole network.
What is wrong with configuration?
Ip address of switch is 172.16.2.2/24
Ip address of router to rest of network is 172.16.2.1/24
Configuration of switch (capture):
demoswitch1#show running-config
Building configuration...
Current configuration : 3336 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service sequence-numbers
!
hostname demoswitch1
!
!
ip subnet-zero
ip routing
!
ip domain-name eon.local
ip name-server 172.30.0.1
ip name-server 172.30.0.3
!
vmps server 172.16.2.2 primary
spanning-tree mode pvst
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport access vlan 21
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport access vlan dynamic
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
spanning-tree portfast
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport access vlan 2
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
spanning-tree portfast
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport mode dynamic desirable
!
interface FastEthernet0/11
switchport access vlan 23
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 23
switchport trunk encapsulation dot1q
switchport mode access
switchport voice vlan 2
spanning-tree portfast
!
interface FastEthernet0/13
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport mode dynamic desirable
switchport voice vlan 2
spanning-tree portfast
!
interface FastEthernet0/19
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport mode dynamic desirable
switchport voice vlan 1
spanning-tree portfast
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport trunk pruning vlan none
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport trunk allowed vlan 1,1001-1005
switchport trunk pruning vlan none
switchport mode dynamic desirable
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
ip address 172.16.2.2 255.255.255.0
!
interface Vlan2
no ip address
!
interface Vlan21
ip address 172.17.0.1 255.255.0.0
!
interface Vlan22
no ip address
!
interface Vlan23
ip address 172.19.0.1 255.255.0.0
!
interface Vlan24
no ip address
!
interface Vlan26
no ip address
!
router rip
network 172.16.0.0
network 172.19.0.0
network 172.30.0.0
network 172.32.0.0
network 192.168.1.0
!
ip default-gateway 172.16.2.1
ip classless
ip route 0.0.0.0 0.0.0.0 172.30.0.1
ip route 0.0.0.0 0.0.0.0 172.16.2.1
ip http server
!
!
!
end
______________________________
"Reload and Restart Requested
System Initiated"