IPアドレスの恒久的な変更
1. /etc/network/interfaces を変更iface eth0 inet static
address 192.168.0.XX
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
2. NICを再起動
# ifdown eth0
# ifup eth0
IPアドレスの一時的な変更
# ifconfig eth0 192.168.0.XXX
iface eth0 inet static
address 192.168.0.XX
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
2. NICを再起動
# ifdown eth0
# ifup eth0
# ifconfig eth0 192.168.0.XXX