Ubuntu Linux 如何設定 Hinet 光世代 固定IP
安裝 Server 的時候,先選擇DHCP分配IP
等全部安裝完成後,再PPPoE撥接取得固定IP即可
$ pppoeconf
記錄一下,設定完成後 interfaces 設定檔會變成這樣子
$ cat /etc/network/interfaces
# 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
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider
等全部安裝完成後,再PPPoE撥接取得固定IP即可
$ pppoeconf
記錄一下,設定完成後 interfaces 設定檔會變成這樣子
$ cat /etc/network/interfaces
# 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
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider
留言