如何设置Debian 临时IP地址?

Debian-Like

1 前言

一个问题,一篇文章,一出故事。
笔者今天遇到临时网络服务无法启动的情况,于是想到配置一个临时IP地址使用,于是整理此文。

2 最佳实践

2.1 获取网卡

ifconfig -a

2.2 配置临时IP地址

ifconfig enp3s0 10.168.0.9 netmask 255.255.255.0

2.3 配置临时路由(网关)

route add default gw 10.168.0.1

2.4 测试网络通讯

ping 10.168.0.1
没有评论

发表回复

Debian-Like
如何安装Ubuntu Linphone?

1 基础知识 1.1 软件介绍 Linphone 是一款开源的 VoIP(Voice over In …

Debian-Like
如何安装配置Ubuntu iptables-persistent

1 前言 一个问题,一篇文章,一出故事。 笔者今天需要在Ubuntu使用iptables,于是整理当 …

Debian-Like
如何安装Ubuntu steam?

1 基础知识 Steam是Valve公司聘请BitTorrent(BT下载)发明者布拉姆·科恩(Br …