Linux   « < tag > カッコの使い方 | HOME | Virus Scan - McAfee VirusScan Command Line Scanners - V5.10 »

 ■ Network

# nano /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.81.255.255
HWADDR=00:18:8B:8B:9A:F4
IPADDR=10.81.255.11
NETMASK=255.255.255.0
NETWORK=10.81.255.0
ONBOOT=yes
TYPE=Ethernet


If DHCP, BOOTPROTO=dhcp

(full details)
DEVICE='eth0'
BOOTPROTO='none'
BROADCAST='192.168.5.255'
IPADDR='192.168.5.3'
NETMASK='255.255.255.0'
NETWORK='192.168.5.0'
ONBOOT='yes'
GATEWAY='192.168.5.1'
TYPE='Ethernet'
USERCTL='no'


# nano /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.waterbee.net
DOMAINNAME=waterbee.net
GATEWAY=192.168.0.1


# nano /etc/hosts
127.0.0.1 localhost.waterbee.net localhost localhost.localdomain localhost
192.168.0.20 localhost.waterbee.net localhost
IPアドレス 正式なホスト名 ホストの別名


# nano /etc/resolv.conf
search waterbee.net
domain waterbee.net
nameserver 192.168.0.20
nameserver 20.238.95.2
nameserver 20.238.95.2


# nano /etc/host.conf
order hosts,bind

multi on <<<=== if multiple IP on one server


# /etc/init.d/network restart

投稿者 tomopugh : 2007年03月06日 15:49

Comment

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)