Re: nmcli and gateway question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-08-03 09:36, ToddAndMargo via users wrote:
> On 2020-08-02 18:26, Samuel Sieb wrote:
>> On 8/2/20 6:22 PM, ToddAndMargo via users wrote:
>>> I am not after what the gateway address is, but rather
>>>
>>> 1) if gateway is up or not
>>
>> That can only be determined by pinging it or something past it.
>
> That is one way of doing it, but it gives a lot
> more information than I want.  It tell me the
> Internet is working.  I am not testing that.
>
> I only want to know if the device is connected to the
> gateway and the gateway is up.

So, ping the gateway?

>
>>
>>> 2) if my device connected to the gateway that is up
>>
>> Since you should know which interface goes to the gateway, why isn't it enough to check if the interface is connected?
>
> I am setting up my iptables so it is universal.  This
> is only one of about 15 parameters I read from the
> system.
>

Define "connected to".  If by mean "accessible" then a ping or may do.  That is assuming the gateway
is configured to respond to pings.  "Connected" usually means a connection is established.  As in an
ssh session.


-- 
The key to getting good answers is to ask good questions.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux