eld*_*ino 2 linux debian static-ip interface
我正在尝试将我的 Debian 机器(Lenny)配置为使用静态 IP 地址。这是我的接口文件目前的样子:
# This file describes the network interfaces available on your system.
# and how to activate them. For more information, see interfaces
#The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.200
network 192.168.1.1
netmask 255.255.255.0
Run Code Online (Sandbox Code Playgroud)
这就是我所做的。我进入我的路由器设置并将其动态 IP 范围更改为 192.168.1.2 到 192.168.1.100。所以我可以使用 100 以上的任何东西作为我的静态地址。然后我进入接口文件并编辑为您在上面看到的内容。我将地址设置为 192.168.1.200,因为这超出了我的路由器为动态地址保留的范围,我还将网络设置为 192.168.1.1,因为这是我的路由器的 IP 地址。
我不确定我出了什么问题,但我没有连接到互联网。我不确定我有正确的 IP 地址。
有任何想法吗?
| 归档时间: |
|
| 查看次数: |
5554 次 |
| 最近记录: |