我有一根以太网电缆(不是交叉电缆)来连接我的笔记本电脑和我的台式机 ubuntu 机器。我想传输大量数据。这样的电缆可以吗?我相信在两台 Windows 机器之间可以建立这样的连接(尽管我不完全确定)。
我希望我的私有 IP 地址192.168.xxx.xxx是固定的并且不改变,这可能吗?我正在使用 Ubuntu 14.04。即使我改变网络,我也需要它工作吗?谢谢
我想将我的网络配置迁移到 netplan。我一直在使用 ifup/down 和 /etc/network/interfaces 文件来配置我的静态 IP,但这已被弃用,并且在 17.10 版本中将取消支持。
然而
sudo netplan ifupdown-migrate
Run Code Online (Sandbox Code Playgroud)
返回
enp0s3: method static is not supported
Run Code Online (Sandbox Code Playgroud)
那么我该如何转换这个/etc/network/interfaces节呢?
auto enp0s3
iface enp0s3 inet static
address 192.168.0.123
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8 8.8.4.4
Run Code Online (Sandbox Code Playgroud)
谢谢你。
我的 eth0 使用 DHCP 来获取互联网的 IP 地址。但是我仍然需要为我的 LAN 设置一些静态 IP。以下是我在 /etc/network/interface 中的设置。剧本有问题吗?当我尝试启动网络时,我总是失败。
我通过ifconfig检查了IP。发现 eth0:3 已设置,但其他。我可以知道有什么问题吗?
1 auto lo
2 iface lo inet loopback
3
4 #auto eth0
5 #iface eth0 inet dhcp
6
7 auto eth0:1
8 iface eth0:1 inet static
9 address 192.168.20.222
10 netmask 255.255.255.0
11 gateway 192.168.20.1
12
13 auto eth0:2
14 iface eth0:2 inet static
15 address 192.168.30.222
16 netmask 255.255.255.0
17 gateway 192.168.30.1
18
19 auto eth0:3
20 iface eth0:3 inet static
21 address 192.168.211.222 …Run Code Online (Sandbox Code Playgroud)