US Robotics USR2410 Instrukcja Instalacji Strona 58

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 67
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 57
54 6. Manual System Configuration
/etc/network/interfaces:
#List of automatically initialised interfaces:
auto lo
#Definition of the loop−back interface:
iface lo inet loopback
#Definition of the WLAN0 interface and scheme mappings:
mapping wlan0
script /usr/local/bin/netscheme
#Definition of the WLAN0 scheme "wlan0−home":
iface wlan0−home inet dhcp
wireless_mode managed
wireless_nick <nick>
wireless_essid <essid>
wireless_channel <channel>
wireless_enc on
wlan_ng_authtype opensystem
wlan_ng_priv_key128 true
wlan_ng_key0 01:02:03:04:05:06:07:08:09:0A:0B:0C:0D
wlan_ng_key1 11:12:13:14:15:16:17:18:19:1A:1B:1C:1D
wlan_ng_key2 21:22:23:24:25:26:27:28:29:2A:2B:2C:2D
wlan_ng_key3 31:32:33:34:35:36:37:38:39:3A:3B:3C:3D
up /usr/local/bin/profile−select
down /usr/local/bin/profile−deselect
#Definition of the ETH0 interface and scheme mappings:
mapping eth0
script /usr/local/bin/netscheme
#Definition of the ETH0 scheme "eth0−work":
iface eth0−work inet static
address xxx.yyy.zzz.149
netmask 255.255.255.0
broadcast xxx.yyy.zzz.255
network xxx.yyy.zzz.0
gateway xxx.yyy.zzz.254
dns_domain <fqdn>
dns_nameservers xxx.yyy.1.1 xxx.yyy.1.5
up /usr/local/bin/profile−select
down /usr/local/bin/profile−deselect
#Definition of the ETH0 scheme "eth0−local":
iface eth0−local inet static
address 10.0.0.1
netmask 255.255.255.0
broadcast 10.0.0.255
network 10.0.0.0
gateway 10.0.0.2
up /usr/local/bin/profile−select
down /usr/local/bin/profile−deselect
#Definition of the ETH0 scheme "eth0−dhcp":
iface eth0−dhcp inet dhcp
up /usr/local/bin/profile−select
down /usr/local/bin/profile−deselect
The script /usr/local/bin/netscheme reads the current network scheme for the giveninterface, which is savedin
the file /var/stete/network/scheme.$INTERFACE.
/usr/local/bin/netscheme:
#!/bin/sh
INTERFACE=$1
SCHEMEFILE=/var/state/network/scheme.$INTERFACE
touch $SCHEMEFILE
cat $SCHEMEFILE
The twointerfaces eth0 and wlan0 and their associated schemes are managed by the twoscripts /usr/local/bin/
eth0 and /usr/local/bin/wlan0, respectively,which differ only in the definition of the assigned interface.
Przeglądanie stron 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 66 67

Komentarze do niniejszej Instrukcji

Brak uwag