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?

switchport access fa0/1 - 2
vlan 10

int vlan 10
ip add

int range fa0/1 - 2
switchport mode access
switchport access vlan 10

ip default-gateway

int fa0/1
ip add

ip add


  • 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 -

    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

    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.