Bug 1420554 - ifquery command not found in any RHEL packages
Summary: ifquery command not found in any RHEL packages
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: PackageKit
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Richard Hughes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1347518
TreeView+ depends on / blocked
 
Reported: 2017-02-09 00:01 UTC by Kiran
Modified: 2019-07-30 15:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-30 15:46:20 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Kiran 2017-02-09 00:01:20 UTC
Description of problem:

We are using ifquery command in ubuntu to figure out the order in which bond interfaces need to be brought up for contrail dpdk-vrouter. Trying to do similar thing for RHEL-7 but unable to find the ifquery command.

http://www.computerhope.com/unix/ifup.htm

Comment 1 Edu Alcaniz 2017-02-09 13:34:43 UTC
On Red Hat only we use the commands and manage by Network Manager sometimes


ifup(8)                                                        System Administration tools and Daemons                                                       ifup(8)

NAME
       ifup - bring a network interface up

       ifdown - take a network interface down

SYNOPSIS
       ifup CONFIG [boot]

       ifdown CONFIG

DESCRIPTION
       The  ifup  and  ifdown  commands  may  be  used to configure (or, respec- tively, deconfigure) network interfaces based on interface definitions in the files
       /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-<configuration>

       These scripts take one argument normally: the name of the configuration (e.g. eth0). They are called with  a  second  argument  of  "boot"  during  the  boot
       sequence so that devices that are not meant to be brought up on boot (ONBOOT=no, see below) can be ignored at that time.

FILES
       /etc/sysconfig/network

       /etc/sysconfig/network-scripts/ifcfg-<configuration>
              The file defining an interface.

SEE ALSO
       /usr/share/doc/initscripts-*/sysconfig.txt


/etc/network/interfaces are on  /etc/sysconfig/network-scripts/ at RHEL, you can find config files, ifup, ifdown but normally there are manage by Network Manager.

after command ip could configure many things


[stack@orange-undercloud-osp10 network-scripts]$ ip a help
Usage: ip address {add|change|replace} IFADDR dev IFNAME [ LIFETIME ]
                                                      [ CONFFLAG-LIST ]
       ip address del IFADDR dev IFNAME [mngtmpaddr]
       ip address {save|flush} [ dev IFNAME ] [ scope SCOPE-ID ]
                            [ to PREFIX ] [ FLAG-LIST ] [ label LABEL ] [up]
       ip address [ show [ dev IFNAME ] [ scope SCOPE-ID ] [ master DEVICE ]
                         [ type TYPE ] [ to PREFIX ] [ FLAG-LIST ]
                         [ label LABEL ] [up] ]
       ip address {showdump|restore}
IFADDR := PREFIX | ADDR peer PREFIX
          [ broadcast ADDR ] [ anycast ADDR ]
          [ label IFNAME ] [ scope SCOPE-ID ]
SCOPE-ID := [ host | link | global | NUMBER ]
FLAG-LIST := [ FLAG-LIST ] FLAG
FLAG  := [ permanent | dynamic | secondary | primary |
           [-]tentative | [-]deprecated | [-]dadfailed | temporary |
           CONFFLAG-LIST ]
CONFFLAG-LIST := [ CONFFLAG-LIST ] CONFFLAG
CONFFLAG  := [ home | nodad | mngtmpaddr | noprefixroute | autojoin ]
LIFETIME := [ valid_lft LFT ] [ preferred_lft LFT ]
LFT := forever | SECONDS
TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | macvtap |
          bridge | bond | ipoib | ip6tnl | ipip | sit | vxlan |
          gre | gretap | ip6gre | ip6gretap | vti | nlmon |
          bond_slave | ipvlan | geneve | bridge_slave | vrf | macsec }

Comment 2 Richard Hughes 2019-07-30 15:46:20 UTC
This isn't a PackageKit bug.


Note You need to log in before you can comment on or make changes to this bug.