debian(linux)系统网络配置
2021/12/27 7:13:24
本文主要是介绍debian(linux)系统网络配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
就debian10为例,
1.桌面环境下网络设置有线网络进行四项配置
桌面可以选择GNOM经典模式
debian10 手动有线网络配置IP192.168.8.xxx;子网掩码255.255.255.0;网关192.168.8.1;DNS114.114.114.114
win7虚拟机网络配置对IPV4属性进行IP四项配置192.168.8.xxx
2.有无桌面环境都可用vi系统文件进行配置
配置静态ip:
1.编辑网络配置文件
vi /etc/network/interfaces
添加:
auto eth0
iface eth0 inet static
address 192.168.8.xxx
netmask 255.255.255.0
gateway 192.168.8.1
2.设置DNS
vi /etc/resolv.conf
添加:
nameserver 114.114.114.114
3.重启网卡
ifdown eth0
ifup eth0
或ifconfig eth0 down
ifconfig eth0 up
4.重启网络
/etc/init.d/networking restart
service networking restart
这篇关于debian(linux)系统网络配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业
- 2024-03-20Linux运维的第二周总结
- 2024-03-13how to count number of directories in linux