1、输入验证码激活,不激活不能使用网络服务
2、启用网卡 ifconfig eth0 up
3、配置网络 vi /etc/network/interfaces,填写网卡eth0相关信息

auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.1.104.210
netmask 255.255.0.0
gateway 10.1.1.1
pre-up ip addr flush dev $IFACE
4、配置外网地址
root@Linx:~# cat /etc/resolv.conf
nameserver 114.114.114.114
5、重启网络服务 /etc/init.d/networking restart
6、配置允许root远程登陆 vim /etc/ssh/sshd_config

本文介绍了如何在Linux系统中通过激活网卡、配置网络接口、设置静态IP、修改DNS服务器和重启网络服务来完成基础网络设置,还涉及root远程登陆的配置。

1万+

被折叠的 条评论
为什么被折叠?



