CentOS系: /etc/sysconfig/network-scripts/ifcfg-eth#
DEVICE=eth0
IPADDR=192.168.3.10
NETMASK=255.255.255.0
HWADDR=00:11:22:33:44:55
ONBOOT=yes
resolv.conf:
nameserver 192.168.3.253
nameserver 192.168.3.254
search localdomain
Debian系: /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.3.10
network 192.168.3.0
netmask 255.255.255.0
gateway 192.168.3.254
dns-nameservers 192.168.3.253 192.168.3.254
dns-search localdomain
(dns-nameservers, dns-search は resolvconf 使用時)
0 件のコメント:
コメントを投稿