You are not logged in.

#1 2013-03-29 14:09:09

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 143
Website

[solved] Problem Setting Static ip on WLAN0

I am trying to set a static ip to a card on wlan0 using netcfg. In /etc/network.d I have:

ethernet-static:

CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth0'
IP='static'
ADDR='192.168.0.60'
#ROUTES=('192.168.0.0/24 via 192.168.1.2')
GATEWAY='192.168.0.1'
DNS=('192.168.0.1')

and wireless-wpa:

CONNECTION='wireless'
DESCRIPTION='Automatically generated profile by wifi-menu'
INTERFACE='wlan0'
SECURITY='wpa'
ESSID=archpi
IP='10.0.0.1'
GATEWAY='10.0.0.1'
DNS=('8.8.8.8')
KEY=testing123

If I run ifconfig I get:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.60  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::ba27:ebff:fe07:e7d8  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:07:e7:d8  txqueuelen 1000  (Ethernet)
        RX packets 82  bytes 8804 (8.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 62  bytes 8377 (8.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 4  bytes 240 (240.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 240 (240.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 7c:dd:90:30:99:02  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Note that wlan0 doesn't appear to get an ipv4 address. However, I can ping its ip address 10.0.0.1.

Last edited by geekinthesticks (2013-03-29 19:23:08)

Offline

#2 2013-03-29 17:48:38

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,491

Re: [solved] Problem Setting Static ip on WLAN0

This:

geekinthesticks wrote:

IP='10.0.0.1'
GATEWAY='10.0.0.1'

does not make sense.

Offline

#3 2013-03-29 19:22:39

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 143
Website

Re: [solved] Problem Setting Static ip on WLAN0

Strike0 wrote:

This:

geekinthesticks wrote:

IP='10.0.0.1'
GATEWAY='10.0.0.1'

does not make sense.

True, I missed a 0 when typing the IP:) However, I have found a solution at https://bbs.archlinux.org/viewtopic.php?pid=1226510 , so I will mark this as solved.

Offline

Board footer

Powered by FluxBB