Static wireless netcfg profile

Hi,

I'm trying to create a netcfg profile with a static ip. The profile connects and I can ping internal IP's but not external. The dhcp one created with wifi-menu works fine and the info appears to be the same. The gateway and DNS are the correct ip addresses.

Heres the config file

CONNECTION='wireless'DESCRIPTION='A simple WPA encrypted wireless connection using a static IP'INTERFACE='wlp5s0'SECURITY='wpa'ESSID='virginmedia'KEY='password'IP='static' # Any other CONNECTION='ethernet' options may be used.ADDR='192.168.0.23'GATEWAY='192.168.0.1'DNS=('192.168.4.100')# Uncomment this if your ssid is hidden#HIDDEN=yes

Re: Static wireless netcfg profile

The example files are missing a NETMASK entry. Just add the lineNETMASK=24right after the ADDR line (it could go anywhere I suppose, but that's the sensible place for it).I took a guess as to what your NETMASK value should actually be, but I could have guessed wrong. Adjust accordingly.

Re: Static wireless netcfg profile

Also, you are making your profile too complicated. You don't need to use every option for a typical connection. I would try to simplify it to only what you need to make a connection and thus make troubleshooting easier.

Re: Static wireless netcfg profile

hawaiicharles wrote:

The example files are missing a NETMASK entry. Just add the lineNETMASK=24right after the ADDR line (it could go anywhere I suppose, but that's the sensible place for it).I took a guess as to what your NETMASK value should actually be, but I could have guessed wrong. Adjust accordingly.

No I dont think that's it. I tried that and it didnt work. DHCP is using /24 I have noticed a difference in the ip route output between static and dhcp. When on dhcp it shows "metric 303" but I cant find out what this is or how to set it?

Re: Static wireless netcfg profile

Not sure what your problem is... have you tired netctl from the AUR? It should replace netcfg in not too long. After installing it, here is the profile template for your needs which is very similar, although not identical to the netcfg example:

Re: Static wireless netcfg profile

fixles wrote:

hawaiicharles wrote:

The example files are missing a NETMASK entry. Just add the lineNETMASK=24right after the ADDR line (it could go anywhere I suppose, but that's the sensible place for it).I took a guess as to what your NETMASK value should actually be, but I could have guessed wrong. Adjust accordingly.

No I dont think that's it. I tried that and it didnt work. DHCP is using /24 I have noticed a difference in the ip route output between static and dhcp. When on dhcp it shows "metric 303" but I cant find out what this is or how to set it?

No DHCP

I'm a little confused about the DNS server you have configured in your static example. Is that a DNS server that you're running yourself on a different subnet?If you're not running your own DNS server, then that entry isn't correct.Can you ping any outside hosts by IP address with your current static setup?