*NetWork [#na9a6dd7]

RIGHT:更新日&lastmod();

**ipアドレスの追加及びルーティング情報の追加 [#ud061bbe]

ネットワークのON/OFF

 /sbin/ifconfig eth0:0 down
 /sbin/ifconfig eth0:0 up
 /sbin/ifconfig eth0:0 192.244.75.3


ipアドレスの追加:
 /sbin/ifconfig eth0:1 192.244.75.3
 /sbin/ifconfig eth0:2 192.244.75.5

ルーティング情報の追加/更新:
 /sbin/route add default gw 192.244.75.21
 /sbin/route del default gw 192.244.75.21
 /sbin/route add -net 192.244.75.0 gw 10.0.0.2 netmask 255.255.255.0 metric 1
 /sbin/route add -net 10.0.0.0 netmask 255.0.0.0 eth0

defaultゲートウェイの追加:
 /sbin/route add -net default gw 192.244.75.9

ネットワークの接続状態表示

 netstat --numeric-ports 
 稼働中のインターネット接続(w/oサーバー)
 Proto 受信-Q 送信-Q 内部アドレス            外部アドレス            状態
 tcp        0      0 192.244.75.253:4040     192.244.75.254:1035     ESTABLISHED
 tcp        0    140 192.244.75.253:22       219.109.252.82:6307     ESTABLISHED
 稼働中のUNIXドメインソケット (w/oサーバー)
 Proto RefCnt フラグ      タイプ     状態         Iノード パス
 unix  13     [ ]         DGRAM                    678    /dev/log
 unix  3      [ ]         STREAM     CONNECTED     1621498
 
 ------------中略------------------------------------------------

**ネットワークデバイスの設定等 [#pf590563]

/etc/sysconfigの中にもあるがデバイス名については

''/etc/udev/rules.d/70-persistent-net.rules

 # This file was automatically generated by the /lib/udev/write_net_rules
 # program run by the persistent-net-generator.rules rules file.
 #
 # You can modify it, as long as you keep each rule on a single line.
 
 # Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rule written by anaconda)
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:40:ca:97:92:63", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

にある

また Vine5.xからネットワークの起動が~

/etc/rc.d/init.d/network から /etc/rc.d/init.d/NetworkManager

に変更になったようだ


--------------------------------------------------------------------------------
RIGHT:[[元ページ:http://wwwism.dyndns.org/hp/linux/network.htm]]


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS