Please see the show run - Thnks. Timolthy
PC
||
Catalyst 2950 Port/12 <----- Hub ------> Cisco Router (192.168.22.1)
||
||
DCHP server (192.168.22.20)
The Vlans can ping between them in static ip addresses
can not get IP address from DCHP srv
(3 scopes, 22.x vlan1, 33.x vlan2, 44.x vlan3)
-------------------
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1
=================
vlan 2
name VLAN2_33.x
!
vlan 3
name VLAN3_44.x
!
vlan 100
!
interface FastEthernet0/1
switchport trunk allowed vlan 1
switchport mode access
no ip address
!
interface FastEthernet0/2
switchport trunk allowed vlan 1
switchport mode access
no ip address
!
interface FastEthernet0/3
switchport trunk allowed vlan 1
switchport mode access
no ip address
!
interface FastEthernet0/4
switchport trunk allowed vlan 1
switchport mode access
no ip address
!
interface FastEthernet0/5
switchport access vlan 2
switchport trunk allowed vlan 2
switchport mode access
no ip address
!
interface FastEthernet0/6
switchport access vlan 2
switchport trunk allowed vlan 2 <-- If I turn off this then cannot ping other
switchport mode access
no ip address
spanning-tree portfast trunk
!
interface FastEthernet0/7
switchport access vlan 2
switchport trunk allowed vlan 2
switchport mode access
no ip address
!
interface FastEthernet0/8
switchport access vlan 2
switchport trunk allowed vlan 2
switchport mode access
no ip address
!
interface FastEthernet0/9
switchport access vlan 3
switchport trunk allowed vlan 3
switchport mode access
no ip address
!
interface FastEthernet0/10
switchport access vlan 3
switchport trunk allowed vlan 3
switchport mode access
no ip address
!
interface FastEthernet0/11
switchport access vlan 3
switchport mode access
no ip address
!
interface FastEthernet0/12
switchport mode trunk <-- Did not show allowed vlan all
no ip address
duplex full
speed 100
!
interface Vlan1
ip address 192.168.22.2 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.22.20 <-- DHCP Srv IP.connected to port 12)
ip http server
+++++Switch interface fa 0/12 +++++
(config-if)#switchport trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
native Set trunking native characteristics when interface is in trunking
mode
pruning Set pruning VLAN characteristics when interface is in trunking mode
(config-if)#switchport trunk allowed vlan all
--- available to set and has been set
Options available:
(config-if)#switchport trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
native Set trunking native characteristics when interface is in trunking
mode
pruning Set pruning VLAN characteristics when interface is in trunking mode
(config-if)#switchport trunk pruning vlan ?
WORD VLAN IDs of the allowed VLANs when this port is in trunking mode
add add VLANs to the current list
except all VLANs except the following
none no VLANs
remove remove VLANs from the current list
++++++++++++++
ALSO: in any port if I turn off the 'switchport trunk allowed vlan x' then it will not be able to ping to other vlan ip address (diff subnet)
=====================
Router
interface FastEthernet0/0
no ip address
no ip redirects
ip local-proxy-arp
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 1 native
ip address 192.168.22.1 255.255.255.0
ip helper-address 192.168.22.20
!
interface FastEthernet0/0.2
encapsulation dot1Q 2
ip address 192.168.33.1 255.255.255.0
ip helper-address 192.168.22.20
!
interface FastEthernet0/0.3
encapsulation dot1Q 3
ip address 192.168.44.1 255.255.255.0
ip helper-address 192.168.22.20 <-- DHCP Srv IP addr.