Artificial intelligent assistant

What is difference between the gateway in ifcfg-ens192 and the one print by route when i cat the file /etc/sysconfig/network-scripts/ifcfg-ens192 a line showing the gateway for ens192: GATEWAY=10.2.2.2 but when i run netstat -r or route Destination Gateway Genmask Flags MSS Window irtt Iface default gateway 0.0.0.0 UG 0 0 0 ens192 10.2.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ens192 10.2.3.0 0.0.0.0 255.255.255.0 U 0 0 0 ens256 Gateway seems to be 0.0.0.0 what is the difference between the two gateway? i am so confused..

You misunderstand the meaning of a gateway. You need a gateway for reaching an IP address which is not link-local.

`10.2.2.0/255.255.255.0` **is** link-local thus you do not need a gateway for it. This entry does not show which gateway is used but which interface is used for this subnet.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a2fcbb0b347c64296ad3dde46df19b91