Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switch and Router Configuration vlan problem

Status
Not open for further replies.

msr976

Technical User
Mar 20, 2006
19
0
0
US
The problem I am having is that I can't ping from the router to the switch or vise versa. Just need some advise what I may be doing wrong here.



Switch 3500 Series

Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
!
ip subnet-zero
vtp file server

!
!
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
switchport access vlan 10
!
interface FastEthernet0/5
switchport access vlan 10
!
interface FastEthernet0/6
switchport access vlan 10
!
interface FastEthernet0/7
switchport access vlan 20
!
interface FastEthernet0/8
switchport access vlan 20
!
interface FastEthernet0/9
switchport access vlan 20
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface Fast
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface VLAN1
ip address 192.168.1.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
!
ip default-gateway 192.168.1.1
!
line con 0
transport input none
stopbits 1
line vty 5 15
!
end

Router 2600 Series

Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
ip subnet-zero
!
!
!
!
!
interface Ethernet0/0
no ip address
no ip directed-broadcast
!
interface Ethernet0/0.1
description default
encapsulation dot1Q 1
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast
!
interface Ethernet0/0
description accounting
encapsulation dot1Q 10
ip address 192.168.2.1 255.255.255.0
no ip directed-broadcast
!
interface Ethernet0/0.20
description marketing
encapsulation dot1Q 20
ip address 192.168.3.1 255.255.255.0
no ip directed-broadcast
!
interface Serial0/0
no ip address
no ip directed-broadcast
shutdown
!
router rip
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
!
ip classless
no ip http server
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end
 
My VLANs are very rusty...so forgive me if this is incorrect.

I think that the problem (or at least one problem) could be on the router...

interface Ethernet0/0
description accounting
encapsulation dot1Q 10
ip address 192.168.2.1 255.255.255.0
no ip directed-broadcast

This should be interface 0/0.10 (for VLAN 10 defined in the switch config)

Also....shouldn't the physical interface on the switch that connects to the router have an IP address?

do a "show ip int brief" command on the swtich and post back....

Also do a "show vlans" command on the switch and post the results.


'When all else fails.......read the manual'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top