[CentOS] Gateway question
Levente Birta
blevi.linux at gmail.com
Wed Aug 10 13:07:56 UTC 2016
On 10/08/2016 15:28, Jonathan Billings wrote:
> On Wed, Aug 10, 2016 at 09:29:15AM +0300, Levente Birta wrote:
>> I read the document again ... and this talk about accessing this multi-homed
>> host from the internet...
>> I have all this configured and working!
>
> You say this is working because of the output here?
>
> # ip route show default via 192.168.1.1 dev enp3s0
> default via 192.168.1.1 dev enp2s0
> 169.254.0.0/16 dev enp2s0 scope link metric 1002
> 169.254.0.0/16 dev enp3s0 scope link metric 1003
> 192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.12
> 192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.13
>
Yep...
default is:
# ip route show
default via 192.168.1.1 dev enp2s0
169.254.0.0/16 dev enp2s0 scope link metric 1002
169.254.0.0/16 dev enp3s0 scope link metric 1003
192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.12
192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.13
and this way not work
Then with the following command:
#route add default gw 192.168.1.1 dev enp3s0
Hurray ... work :)
--
Levi
More information about the CentOS
mailing list