How to find default gateway in CentOs7 Minimal Server:

IP addr  is the command used to check the IP address of a CentOs7 minimal server .

Sample Output:

In order to find the default gateway of CentOs7 minimal server, Use the command

route -n 

Sample Output:

[root@CentOs7]# route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

0.0.0.0         192.168.55.2    0.0.0.0         UG    100    0        0 ens33

192.168.55.0    0.0.0.0         255.255.255.0   U     100    0        0 ens33

Keywords: CentOs7 , DHCP, Network, Networking, Linux , Default Gateway , IP address, Command , Route -n , Genmask , Gateway, IP , IP addr , IP Link , Routing .

Leave a Reply

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny