Skip to content

Instantly share code, notes, and snippets.

@skaji
Created March 9, 2014 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skaji/9442544 to your computer and use it in GitHub Desktop.
Save skaji/9442544 to your computer and use it in GitHub Desktop.

ubuntu

/etc/networking/interfaces

auto eth0
iface eth0 inet static
    address 192.168.0.17
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    dns-nameservers 192.168.0.1

dnsの設定はresolverプログラムにより自動的に/etc/resolv.confが変更されて反映される

centos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment