Pomiń nagłówek
PodręcznikiSpis treściPoprzedniNastępnyPomoc

ifconfig

Polecenie “ifconfig” umożliwia wyświetlenie i konfigurację protokołu TCP/IP (adres IP, maska podsieci, adres nadawania, adres bramy domyślnej) drukarki.

Przeglądanie ustawień

msh> ifconfig

Konfiguracja IPv4

msh> ifconfig "interface_name" "parameter" "address"

  • Jeśli nazwa interfejsu nie została wprowadzona, jest ona automatycznie ustawiana na interfejs Ethernet.

  • Wartość wlan można określić jedynie w przypadku zainstalowania interfejsu IEEE 802.11.

Nazwa interfejsu

Skonfigurowany interfejs

ether

Interfejs Ethernet

wlan

Interfejs IEEE 802.11

Poniższy zapis pokazuje sposób konfigurowania adresu IPv4 192.168.15.16 w interfejsie Ethernet.

msh> ifconfig ether 192.168.15.16

Konfiguracja IPv6

msh> ifconfig ether inet6 "interface_name" "printer_name"

Poniższy zapis pokazuje sposób konfigurowania adresu IPv6 2001:DB8::100 w interfejsie Ethernet, z prefiksem o długości 64 bajtów.

msh> ifconfig ether inet6 2001:DB8::100 64

Konfiguracja maski sieci

msh> ifconfig "interface_name" netmask "address"

Poniższy zapis wyjaśnia sposób konfigurowania maski podsieci 255.255.255.0 w interfejsie Ethernet.

msh> ifconfig ether netmask 255.255.255.0

Konfiguracja adresu rozsyłania

msh> ifconfig "interface_name" broadcast "address"

Zmiana interfejsu

msh> ifconfig "interface" up

  • W przypadku korzystania z modułu interfejsu IEEE 802.11 można wybrać interfejs Ethernet lub IEEE 802.11.

Uwaga