Debian系統下配置網絡方法教程多篇
- 實用文精選
- 關注:5.52K次
Debian簡介 篇一
廣義的Debian是指一個致力於創建自由操作系統的合作組織及其作品,由於Debian項目眾多內核分支中以Linux宏內核為主,而且 Debian開發者 所創建的操作系統中絕大部分基礎工具來自於GNU工程 ,因此 “Debian” 常指Debian GNU/Linux。
非官方內核分支還有隻支持x86的Debian GNU/Hurd(Hurd微內核),只支持amd64的Dyson(OpenSolaris混合內核)等。這些非官方分支都存在一些嚴重的問題,沒有實用性,比如Hurd微內核在技術上不成熟,而Dyson則基礎功能仍不完善。
“Debian” 正式發音為 /ˈdɛ。bi.ən/ ,Debian 是國際化協作項目,官方未指定任何非英文名稱。
Debian系統下如何配置網絡 篇二
1、設置IP地址、網關
cp /etc/network/interfaces /etc/network/ # 備份原有配置文件
vi /etc/network/interfaces # 編輯網網卡配置文件
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0 # 開機自動連接網絡
allow-hotplug eth0
iface eth0 inet static # static表示使用固定ip,dhcp表述使用動態ip
address # 設置ip地址
netmask # 設置子網掩碼
gateway # 設置網關
按 ESC 鍵,然後輸入 :eq 保存並退出。
下面的版本便於複製, 因為配置文件裏最好不要有中文:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address
netmask
gateway
2、設置dns
cp /etc /etc # 備份原有dns配置文件
vi /etc # 編輯配置文件
nameserver
nameserver # 設置首選dns
nameserver # 設置備用dns
按 ESC 鍵,然後輸入 :eq 保存並退出。
下面的版本便於複製, 因為配置文件裏最好不要有中文:
nameserver
nameserver
nameserver
3、重啟網絡
service networking restart # 重啟網絡
至此,IP地址、網關、DNS配置完成,現在系統已經可以上網了。
- 文章版權屬於文章作者所有,轉載請註明 https://wenfanwang.com/shiyongwen/shiyongjingxuan/1mmndw.html