- 精华
- 0
- 帖子
- 3211
- 威望
- 0 点
- 积分
- 3345 点
- 种子
- 23 点
- 注册时间
- 2007-1-8
- 最后登录
- 2024-4-16
|
楼主 |
发表于 2018-10-26 11:01 · 吉林
|
显示全部楼层
送雨 发表于 2018-10-25 23:05
这里改:/etc/dhcpcd.conf
编辑,加入最后两段,分别对应无线和有线的手动ip地址设定,你打开文件,里面 ...
照葫芦画瓢 依然没成功 心态崩了·········没有代码和网络常识··· 192.0.106是固定的IP ,完全不知道哪里错了·····快要抑郁症了
# Example static IP configuration:
#interface eth0
#static ip_address=192.168.0.10/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
interface eth0
static ip_address=192.168.0.106/24
static routers=192.168.0.1
static domain_name_servers=8.8.8.8
interface wlan0
static ip_address=192.168.0.121/24
static routers=192.168.0.1
static domain_name_servers=8.8.8.8
"dhcpcd.conf" 67L, 1934C written 65,35 bot
|
|