2012年1月4日

Ubuntu Server 改ip位址

1.改 /etc/hosts
2.改/etc/hostname
3.注意/etc/resolv.conf
4.改 /etc/network/interface後 /etc/init.d/networking restart
   參考:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback


auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider


auto eth0
iface eth0 inet manual
# The primary network interface
auto eth1
iface eth1 inet static
        address 192.168.1.1
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search wuhon.local

5.netstat -tlnup檢查各項服務是否啟動

沒有留言:

張貼留言