很久沒來寫文章了,最近又來寫一下好了~~(真是太偷懶了)

剛好電腦重灌,乾脆就一步一步把電腦需要安裝的東西,寫起來好了~

因為在圖形化介面下設定固定IP,電腦重開機會跑掉。

雖說還是可以用圖形化介面設定之後IP可以不會跑掉,但是還是把它寫在文字模式下的config檔,讓它跑不掉@@~

設定如下:

固定寫死ip位置:/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 static
address ***.***.***.***
netmask ***.***.***.***
gateway ***.***.***.***

------------------------------------------------------------------------------------------------

設定完後,還需設定DNS的設定檔

設定DNS:/etc/resolv.conf
--------------------------------------------------------------------
# Generated by NetworkManager
nameserver ***.***.***.***
--------------------------------------------------------------------
當然,星號就是要打上IP的位置~

如此一來IP便可設定好~~~當然,需要把你的網卡重新起動才行!

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 maxron 的頭像
    maxron

    Zero_Maxima---水能淡性是吾友 竹解虛心是我師 ---

    maxron 發表在 痞客邦 留言(0) 人氣()