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