route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.3.2 0.0.0.0 UG 100 0 0 enp0s8
10.0.3.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s8
192.168.1.3 192.168.1.129 255.255.255.255 UGH 100 0 0 enp0s3
192.168.1.128 0.0.0.0 255.255.255.128 U 100 0 0 enp0s3
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
第一行结果中的 gatway就是