Link to home
Start Free TrialLog in
Avatar of jbell72
jbell72

asked on

CAnt ping from my switch to connected router

I am not sure why, but I can not ping from inside my switch to the connected router.

Switch:

interface FastEthernet0/48
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface VLAN1
 no ip address
 ip helper-address 192.168.1.150
 no ip directed-broadcast
 no ip route-cache
 shutdown
!
interface VLAN100
 description Voice_Vlan_Bldg1
 ip address 192.168.1.251 255.255.255.0
 ip helper-address 192.168.1.150
 no ip directed-broadcast
 no ip route-cache


interface Ethernet0/0
 ip address 192.168.1.252 255.255.255.0
 no ip directed-broadcast

A straight thru cable connects f0/48 on switch to e0/0 on router.
Avatar of Glen Krinsky
Glen Krinsky
Flag of United States of America image

Can you show us the config for your router?
You need to setup the router side to do trunking as well, or remove the trunking from the switch side.

Take a look at:

http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/336-cisco-router-8021q-router-stick.html
Avatar of jbell72
jbell72

ASKER

basic router:
interface Ethernet0/0
 ip address 192.168.1.252 255.255.255.0
 no ip directed-broadcast
!
interface Ethernet0/0.1
 encapsulation dot1Q 100
 ip address 10.0.1.1 255.255.255.0
 no ip directed-broadcast
!
interface Ethernet0/0.2
 no ip directed-broadcast
!
ip classless
no ip http server
!
!
line con 0
 transport input none
line aux 0
line vty 0 4
 login
Thas your problem.  Trunking is setup on your switch, but not your router.
Avatar of jbell72

ASKER

removed trunkport from switch, still nothing.
Are you trying to ping the ip of E 0/0 on your router?
How is port 48 configured now?
Avatar of jbell72

ASKER

yes, and e0/0.1. Attempting from inside of my switch consoled in.
I'd try setting a default gateway on your switch to point to the router and see what happens...
Avatar of jbell72

ASKER

interface FastEthernet0/47

And nothing follows.....
You probably also want to setup the management VLAN on the switch, along with the default gateway.
ASKER CERTIFIED SOLUTION
Avatar of Glen Krinsky
Glen Krinsky
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jbell72

ASKER

management vlan is vlan 100, nevermind the description.
Avatar of jbell72

ASKER

nope, tried all fo what was  just said separately.
Avatar of jbell72

ASKER

wait! Something worked!
Avatar of jbell72

ASKER

I removed gw command and it still works. SO what worked was putting port 48 in access vlan 100? I know it works right now, but is that right? It should be a trunk port. My goal is to get vlan 10 working on the router to use as a voice vlan and gw of 10.0.1.1 since my switch is layer 2. I have a phone plugged into f0/1.

interface Ethernet0/0.1
 encapsulation dot1Q 10
 ip address 10.0.1.1 255.255.255.0
 no ip directed-broadcast
Avatar of jbell72

ASKER

So I can ping back and fourth from router to switch, I can even  ping from 10.0.1.1 to the switch. However, my home dhcp server and call manager is 192.168.1.150. I can ping from erotuer to .150 but from interface 0/0.1 10.0.1.1 I can not ping the call manager...
Router#ping
Protocol [ip]:
Target IP address: 192.168.1.150
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.0.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.150, timeout is 2 seconds:
.....