Options

What's wrong

fpsofpso Member Posts: 84 ■■□□□□□□□□
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

Comments

  • Options
    atippettatippett Member Posts: 154
    fpso wrote: »
    using the switch as my default gtwy.

    this is your problem
  • Options
    MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    The router should be the default gateway.
    2017 Certification Goals:
    CCNP R/S
  • Options
    WastedHatWastedHat Member Posts: 132 ■■■□□□□□□□
    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.
  • Options
    fpsofpso Member Posts: 84 ■■□□□□□□□□
    Thanks, that's what I get for staying up all night
Sign In or Register to comment.