2012年2月12日 星期日

網站主機換IP後設置

1.編輯etc/rc.conf
ifconfig_網路介面卡="inet xxx.xxx.xxx.xxx(欲更改的IP) netmask 255.255.255.0"
defaultrouter="xxx.xxx.xxx.xxx(欲更改的default gateway)"
2.修改etc/hosts
127.0.0.1 localhost
xxx.xxx.xxx.xxx localhost(區網內IP)
xxx.xxx.xxx.xxx localhost(對外WAN IP)
其餘照舊即可