FrontPage / FreeBSD / Network / ipaddress


FrontPage/FreeBSD/Network

sysinstallから編集

configure

  • > networking
  • > interfaces
  • > choose "dc0" (ethernet interface card)
  • > IPv6, DHCP: No
  • > ipv4 gateway: 192.168.1.11
  • > exit

=>変更される(?)設定ファイル

  • /etc/rc.conf ifconfig_(devname)="inet (ipaddress) netmask 255.255.255.0" defaultrouter="192.168.1.1" hostname="(hostname.example.jp)"
  • /etc/hosts 127.0.0.1 localhost.(example.jp) localhost 192.168.1.x (hostname.example.jp) (hostname) 192.168.1.x (hostname.example.jp).
  • /etc/resolv.conf domain (example.jp) nameserver 192.168.1.1

設定の確認

ping ifconfig dig (url) (参考) http://www.jp.freebsd.org/QandA/HTML/net.html