修改 /etc/network/interfaces 參數設定
如果是要 Static IP (動態 IP)寫以下:
auto eth0
iface eth0 inet dhcp
如果是要 Static IP (固定/靜態 IP)寫以下:
auto eth0
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.254
如果是要 PPPoE 寫以下:
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
沒有留言:
張貼留言