无线网络netctl不能设置静态ip?

其他Linux/Unix/BSD/OSX等发行版讨论
回复
lethe
帖子: 98
注册时间: 2008-04-29 18:59

无线网络netctl不能设置静态ip?

#1

帖子 lethe »

修改/etc/netctl/wlp3s0-YoYo文件

代码: 全选

Description='Automatically generated profile by wifi-menu'
Interface=wlp3s0
Connection=wireless
Security=wpa
ESSID=YoYo
IP=static
Key=********
Address='192.168.1.100'
Gateway='192.168.1.1'
DNS=('211.139.5.30')
然后systemctl restart
solcomo@lethe:/home/solcomo> sudo systemctl restart [email protected]
[sudo] password for solcomo:
Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
systemctl status显示
solcomo@lethe:/home/solcomo> sudo systemctl status [email protected] 13-06-18 12:03
[email protected] - Networking for netctl profile wlp3s0x2dYoYo
Loaded: loaded (/usr/lib/systemd/system/[email protected]; static)
Active: failed (Result: exit-code) since 二 2013-06-18 12:01:38 CST; 1min 37s ago
Docs: man:netctl.profile(5)
Process: 2563 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)

6月 18 12:01:38 lethe systemd[1]: Starting Networking for netctl profile wlp3s0x2dYoYo...
6月 18 12:01:38 lethe systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
6月 18 12:01:38 lethe systemd[1]: Failed to start Networking for netctl profile wlp3s0x2dYoYo.
6月 18 12:01:38 lethe systemd[1]: Unit [email protected] entered failed state.
journalctl -xn显示
solcomo@lethe:/home/solcomo> sudo journalctl -xn 13-06-18 12:05
-- Logs begin at 日 2013-06-09 05:17:57 CST, end at 二 2013-06-18 12:05:01 CST. --
6月 18 12:03:11 lethe sudo[2619]: pam_unix(sudo:session): session opened for user root by solcomo(uid=0)
6月 18 12:03:11 lethe sudo[2619]: pam_unix(sudo:session): session closed for user root
6月 18 12:03:15 lethe sudo[2621]: solcomo : TTY=pts/1 ; PWD=/home/solcomo ; USER=root ; COMMAND=/usr/bin/systemctl status [email protected]
6月 18 12:03:15 lethe sudo[2621]: pam_unix(sudo:session): session opened for user root by solcomo(uid=0)
6月 18 12:03:15 lethe sudo[2621]: pam_unix(sudo:session): session closed for user root
lethe
帖子: 98
注册时间: 2008-04-29 18:59

Re: 无线网络netctl不能设置静态ip?

#2

帖子 lethe »

求助啊
L2TP/IPsec VPN设置需要
openswan要固定ip
alanfly
帖子: 334
注册时间: 2007-12-19 16:15

Re: 无线网络netctl不能设置静态ip?

#3

帖子 alanfly »

仔细看范例,在 /etc/netctl/examples下,address行的格式是

代码: 全选

Address='192.168.1.100/101'
最后一位要填两个,连接时会使用100这个ip,至于为何要填两个就不清楚了。
lethe
帖子: 98
注册时间: 2008-04-29 18:59

Re: 无线网络netctl不能设置静态ip?

#4

帖子 lethe »

一样的错误 :em20
回复