ネットワークの設定

「ネットワークの設定」の編集履歴(バックアップ)一覧に戻る

ネットワークの設定 - (2013/04/12 (金) 20:43:11) のソース

ここではネットワークの設定を行います。

Slackwareではnetconfigを使ってネットワークの設定を行うことができます。
ルートとして実行して、一連の質問に答えていくことで、/etc/rc.d/rc.inetXに設定が書き込まれ、
ネットワークデーモン起動時に自動的に接続することができます。

#contents

**ネットワークデバイスの確認
ifconfigを使用することによって、あなたのマシンで使用できるネットワークデバイスを確認することができます。
 $ ifconfig
 eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
         ether 00:18:f3:00:e0:ad  txqueuelen 1000  (Ethernet)
         RX packets 0  bytes 0 (0.0 B)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 0  bytes 0 (0.0 B)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
 lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
         inet 127.0.0.1  netmask 255.0.0.0
         inet6 ::1  prefixlen 128  scopeid 0x10<host>
         loop  txqueuelen 0  (Local Loopback)
         RX packets 319  bytes 21693 (21.1 KiB)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 319  bytes 21693 (21.1 KiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
         inet 192.168.11.11  netmask 255.255.255.0  broadcast 192.168.11.255
         inet6 fe80::213:2ff:fe60:263a  prefixlen 64  scopeid 0x20<link>
         ether 00:13:02:60:26:3a  txqueuelen 1000  (Ethernet)
         RX packets 5840  bytes 4508057 (4.2 MiB)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 5100  bytes 704542 (688.0 KiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
その他、ifconfigはネットワーク設定などにも使用できます。