• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Check Default Gateway Of Router In Linux Command Line

How To Check Default Gateway Of Router In Linux Command Line

By Sourabh / August 1, 2022 Category: How To, Ubuntu

Find default gateway of router in Linux. Learn how to check default gateway in Linux command line. Users can easily find netmask and gateway in Linux or find router ip and default gateway in Linux terminal.

What is Gateway?

A gateway is a network node that serves as an access point to another network.

A router merely forwards packets between networks and the networking software contains a routing table that specifies which interface is used for transmission and which router on the network is responsible this transmission to a specific set of addresses. When none of these forwarding rules/route are matched for a given destination address, the default gateway is chosen for transmission.

In a home or small office environment, the default gateway is a device, such as a DSL router or cable router, that connects the local network to the Internet. It serves as the default gateway for all network devices.

Check Default Gateway of Router in Linux Command Line

Linux Ubuntu users can default gateway in command line. To do so, open a terminal and run any of the following commands:

ip route
ping _gateway

The first line starting with ‘default via’ is the gateway IP or the router’s IP address.

The ip command shows and manipulate routing, devices, policy routing and tunnels on the said network. The route command parameter is for routing table.

Primary Sidebar

Latest Posts

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

© 2025 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap