Apple Xserve Up Mac OS X Server Dokumentacja Strona 66

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 329
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 65
66 Chapter 6 Setting Network Preferences
Viewing Port Names and Hardware Addresses
To list all port names with their Ethernet (MAC) addresses:
$ sudo networksetup -listallhardwareports
To list hardware port information by port configuration:
$ sudo networksetup -listallnetworkservices
An asterisk (*) in the results marks an inactive configuration.
To view the default (en0) Ethernet (MAC) address of the server:
$ serversetup -getMacAddress
To view the Ethernet (MAC) address of a port:
$ sudo networksetup -getmacaddress (
devicename
|"
portname
")
To scan for new hardware ports:
$ sudo networksetup -detectnewhardware
This command checks the computer for new network hardware and creates a default
configuration for each new port.
Viewing or Changing MTU Values
All data transmitted over a network travels in data packets. The size of a packet is called
a maximum transmission unit (MTU), which if too large or too small will affect
performance. To change the MTU size for a port, use the networksetup tool.
To view the MTU value for a hardware port:
$ sudo networksetup -getMTU (
devicename
|"
portname
")
To list valid MTU values for a hardware port:
$ sudo networksetup -listvalidMTUrange (
devicename
|"
portname
")
To change the MTU value for a hardware port:
$ sudo networksetup -setMTU (
devicename
|"
portname
")
Viewing or Changing Media Settings
To view media settings for a port:
$ sudo networksetup -getMedia (
devicename
|"
portname
")
To list valid media settings for a port:
$ sudo networksetup -listValidMedia (
devicename
|"
portname
")
To change media settings for a port:
$ sudo networksetup -setMedia (
devicename
|"
portname
") subtype [option1]
[option2] [...]
Przeglądanie stron 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 328 329

Komentarze do niniejszej Instrukcji

Brak uwag