30% off every course until Sunday, October 11. Our biggest update yet, and we'd like you to try it. Applied automatically at checkout.

Choose your certification
Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.3.1. Default Route

A default route matches all destinations and is used when no more specific route exists.

IPv4:
Router(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1
Router(config)# ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0

ip default-gateway is not a routing command: it is for a switch, or a router with IP routing disabled. A routing router uses the all-zeros route above.

IPv6:
Router(config)# ipv6 route ::/0 2001:DB8:1::1

::/0 (all zeros, prefix length 0) matches every IPv6 destination, exactly as 0.0.0.0/0 does in IPv4.

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•20 professional certifications