本篇文章给大家带来的内容是关于如何在安装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中文网其他相关文章!