這篇文章帶給大家的內容是關於如何在安裝debian-7.11.0-amd64後進行網絡配置,有一定的參考價值,有需要的朋友可以參考一下,希望對你有所幫助。
1、新安裝一個wheezy,注意如果網路自行通過DHCP配置了需要回退並手動設置,伺服器當然要固定IP。在選擇功能組件時最少要選擇“桌面環境”和“開發環境”(安裝後再增加組件用tasksel,但是這時才安裝gnome如何啟動還沒研究過,我每次都安裝了桌面的,只用字元介面管理檔案系統太酸爽了,受不了,並且collective.documentviewer預覽doc,docx,pdf時需要LibreOffice)。安裝完成後重新啟動
2、網路參數設定
nano /etc/network/interfaces(ESXi中e1000網路卡或Hyper-V中的Legacy Network Adapter)
#/etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.16.97.205 netmask 255.255.255.0 network 10.16.97.0 broadcast 10.16.97.255 gateway 10.16.97.254
cat /etc/NetworkManager/system-connections/Wired\ connection\ 1(Hyper-V中的動態網路卡)
[802-3-ethernet] duplex=full [connection] id=Wired connection 1 uuid=5370c0e8-8c4b-4c45-8ed9-d39e0ed25a5a type=802-3-ethernet timestamp=1532837205 [ipv6] method=auto ip6-privacy=2 [ipv4] method=manual dns=202.103.44.150; addresses1=10.16.97.205;24;10.16.97.254;
查看Hyper-V動態網路卡「Wired connection 1"、「802-3-ethernet" 、eth0、UUID之間關係的兩個指令
nmcli con nmcli dev
重啟NetworkManager
#service network-manager restart
nano /etc/resolv.conf
#/etc/resolv.conf nameserver 114.114.114.114
nano /etc/hostname
#/etc/hostname mydebian205
nano /etc/hosts
#/etc/hosts 127.0.0.1 localhost 10.16.97.205 mydebian205.mydomain.net mydebian205
3、檢視版本
cat /etc/issue
Debian GNU/Linux 7 \n \l
cat /etc/debian_version
7.11
uname -a
Linux mydebian205 3.2.0-4-amd64 #1 SMP Debian 3.2.78-1 x86_64 GNU/Linux
4、設定APT
nano /etc/apt/sources.list
#/etc/apt/sources.list deb http://mirrors.163.com/debian/ wheezy main non-free contrib deb http://mirrors.163.com/debian/ wheezy-updates main non-free contrib deb http://mirrors.163.com/debian/ wheezy-backports main non-free contrib deb-src http://mirrors.163.com/debian/ wheezy main non-free contrib deb-src http://mirrors.163.com/debian/ wheezy-updates main non-free contrib deb-src http://mirrors.163.com/debian/ wheezy-backports main non-free contrib deb http://mirrors.163.com/debian-security/ wheezy/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ wheezy/updates main non-free contrib
用新的sources.list更新
#apt-get update
安裝遠端桌面服務和習慣用的文字編輯器joe
apt-get install xrdp joe
註銷,通用配置完成,並且可以遠端控制了。
以上是如何在安裝debian-7.11.0-amd64後進行網路配置的詳細內容。更多資訊請關注PHP中文網其他相關文章!