Last-modified: 2011-12-26 (月) 01:24:43
LinuxTips/固定IPにしたい(Debian)

概要

方法

  1. /etc/network/interfaceを編集。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
    
    -
    !
    -
    !
    -
    !
    -
    !
    -
    !
    
    # ホットプラグ有効
    allow-hotplug eth0
    # 割り当て方法(固定)
    iface eth0 inet static
    # IPアドレス
    address 192.168.50.100
    # サブネットマスク
    netmask 255.255.255.0
    # ゲートウェイ
    gateway 192.168.50.1

検証時の環境