Home
Certification Preparation
Cisco
CCNA & CCENT
What's wrong
fpso
I'm tryin to ping my computer to the router using the switch as my default gtwy. Heres my layout, what's wrong?
SW1
switchport access fa0/1 - 2
vlan 10
int vlan 10
ip add 10.1.10.1 255.0.0.0
int range fa0/1 - 2
switchport mode access
switchport access vlan 10
ip default-gateway 10.1.10.10 255.0.0.0
RTR1
int fa0/1
ip add 10.1.10.2 255.0.0.0
PC1
ip add 10.1.10.3 255.0.0.0
DG 10.1.10.10 255.0.0.0
Find more posts tagged with
Comments
atippett
fpso
wrote:
»
using the switch as my default gtwy.
this is your problem
MAC_Addy
The router should be the default gateway.
WastedHat
Trying changing PC1's default gateway to the switch SVI address - 10.1.10.1
If you want to communicate with a switch over IP then you use a Switched Virtual Interface, like the one you defined with the "int vlan" command.
The "ip default-gateway" is telling the switch what it's default gateway is. So you need to put the address of the router in there- ip default-gateway 10.1.10.2
I'm not sure if this setup works with a Layer 2 switch. If it won't work then you need to change PC1's default gateway to the router.
fpso
Thanks, that's what I get for staying up all night
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of