Файлы System/bin Android 12. Справочник.


  Все     Команда     Скрипт     Служба     Приложение  

ifconfig
Настроить сетевой интерфейс

Симлинк на: [ ToyBox ]

Тип файла: команда
  Рус  
Toybox 0.8.4-android multicall binary:  (see toybox --help) 
usage:  ifconfig [-aS] [INTERFACE [ACTION...]]


Display or configure network interface.

With no arguments, display active interfaces. First argument is interface
to operate on, one argument by itself displays that interface.

  • -a All interfaces displayed, not just active ones

  • -S Short view, one line per interface Standard ACTIONs to perform on an INTERFACE: ADDR[/MASK] - set IPv4 address (1.2.3.4/5) and activate interface add|del ADDR[/LEN] - add/remove IPv6 address (1111::8888/128) up|down - activate or deactivate interface Advanced ACTIONs (default values usually suffice): default - remove IPv4 address netmask ADDR - set IPv4 netmask via 255.255.255.0 instead of /24 txqueuelen LEN - number of buffered packets before output blocks mtu LEN - size of outgoing packets (Maximum Transmission Unit) broadcast ADDR - Set broadcast address pointopoint ADDR - PPP and PPPOE use this instead of "route add default gw" hw TYPE ADDR - set hardware (mac) address (type = ether|infiniband) Flags you can set on an interface (or -remove by prefixing with -): arp - don't use Address Resolution Protocol to map LAN routes promisc - don't discard packets that aren't to this LAN hardware address multicast - force interface into multicast mode if the driver doesn't allmulti - promisc for multicast packets
  • [ ToyBox ]     [ ManLinux ]